xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
qt_decoder.c File Reference
#include <stdlib.h>
#include <string.h>
#include "bswap.h"
#include <xine/xine_internal.h>
#include <xine/audio_out.h>
#include <xine/buffer.h>
#include "group_w32.h"
#include "qtx/qtxsdk/components.h"
#include "wine/win32.h"
#include "wine/windef.h"
#include "wine/ldt_keeper.h"
#include "common.c"

Data Structures

struct  SoundComponentData
 
struct  qta_decoder_s
 
struct  qtv_decoder_s
 

Macros

#define LOG_MODULE   "qt_decoder"
 
#define LOG_VERBOSE
 
#define FOUR_CHAR_CODE   BE_FOURCC
 
#define BUFSIZE   1024*1024
 

Typedefs

typedef struct OpaqueSoundConverter * SoundConverter
 
typedef unsigned long UnsignedFixed
 
typedef uint8_t Byte
 
typedef struct SoundComponentData SoundComponentData
 
typedef int(__cdecl * LPFUNC1) (long flag)
 
typedef int(__cdecl * LPFUNC2) (const SoundComponentData *, const SoundComponentData *, SoundConverter *)
 
typedef int(__cdecl * LPFUNC3) (SoundConverter sc)
 
typedef int(__cdecl * LPFUNC4) (void)
 
typedef int(__cdecl * LPFUNC5) (SoundConverter sc, OSType selector, void *infoPtr)
 
typedef int(__cdecl * LPFUNC6) (SoundConverter sc, unsigned long inputBytesTarget, unsigned long *inputFrames, unsigned long *inputBytes, unsigned long *outputBytes)
 
typedef int(__cdecl * LPFUNC7) (SoundConverter sc, const void *inputPtr, unsigned long inputFrames, void *outputPtr, unsigned long *outputFrames, unsigned long *outputBytes)
 
typedef int(__cdecl * LPFUNC8) (SoundConverter sc, void *outputPtr, unsigned long *outputFrames, unsigned long *outputBytes)
 
typedef int(__cdecl * LPFUNC9) (SoundConverter sc)
 
typedef struct qta_decoder_s qta_decoder_t
 
typedef struct qtv_decoder_s qtv_decoder_t
 

Functions

HMODULE WINAPI LoadLibraryA (LPCSTR)
 
FARPROC WINAPI GetProcAddress (HMODULE, LPCSTR)
 
int WINAPI FreeLibrary (HMODULE)
 
static void init_routine (void)
 
static void qta_init_driver (qta_decoder_t *this, buf_element_t *buf)
 
static void qta_decode_data (audio_decoder_t *this_gen, buf_element_t *buf)
 
static void qta_reset (audio_decoder_t *this_gen)
 
static void qta_discontinuity (audio_decoder_t *this_gen)
 
static void qta_dispose (audio_decoder_t *this_gen)
 
static audio_decoder_tqta_open_plugin (audio_decoder_class_t *class_gen, xine_stream_t *stream)
 
void * qta_init_class (xine_t *xine, const void *data)
 
static void qtv_init_driver (qtv_decoder_t *this, buf_element_t *buf)
 
static void qtv_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
 
static void qtv_flush (video_decoder_t *this_gen)
 
static void qtv_reset (video_decoder_t *this_gen)
 
static void qtv_discontinuity (video_decoder_t *this_gen)
 
static void qtv_dispose (video_decoder_t *this_gen)
 
static video_decoder_tqtv_open_plugin (video_decoder_class_t *class_gen, xine_stream_t *stream)
 
void * qtv_init_class (xine_t *xine, const void *data)
 

Variables

static pthread_once_t once_control = PTHREAD_ONCE_INIT
 
static pthread_mutex_t win32_codec_mutex
 

Macro Definition Documentation

◆ BUFSIZE

#define BUFSIZE   1024*1024

◆ FOUR_CHAR_CODE

#define FOUR_CHAR_CODE   BE_FOURCC

◆ LOG_MODULE

#define LOG_MODULE   "qt_decoder"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Typedef Documentation

◆ Byte

typedef uint8_t Byte

◆ LPFUNC1

typedef int(__cdecl * LPFUNC1) (long flag)

◆ LPFUNC2

typedef int(__cdecl * LPFUNC2) (const SoundComponentData *, const SoundComponentData *, SoundConverter *)

◆ LPFUNC3

typedef int(__cdecl * LPFUNC3) (SoundConverter sc)

◆ LPFUNC4

typedef int(__cdecl * LPFUNC4) (void)

◆ LPFUNC5

typedef int(__cdecl * LPFUNC5) (SoundConverter sc, OSType selector, void *infoPtr)

◆ LPFUNC6

typedef int(__cdecl * LPFUNC6) (SoundConverter sc, unsigned long inputBytesTarget, unsigned long *inputFrames, unsigned long *inputBytes, unsigned long *outputBytes)

◆ LPFUNC7

typedef int(__cdecl * LPFUNC7) (SoundConverter sc, const void *inputPtr, unsigned long inputFrames, void *outputPtr, unsigned long *outputFrames, unsigned long *outputBytes)

◆ LPFUNC8

typedef int(__cdecl * LPFUNC8) (SoundConverter sc, void *outputPtr, unsigned long *outputFrames, unsigned long *outputBytes)

◆ LPFUNC9

typedef int(__cdecl * LPFUNC9) (SoundConverter sc)

◆ qta_decoder_t

typedef struct qta_decoder_s qta_decoder_t

◆ qtv_decoder_t

typedef struct qtv_decoder_s qtv_decoder_t

◆ SoundComponentData

◆ SoundConverter

typedef struct OpaqueSoundConverter* SoundConverter

◆ UnsignedFixed

typedef unsigned long UnsignedFixed

Function Documentation

◆ FreeLibrary()

int WINAPI FreeLibrary ( HMODULE  )

◆ GetProcAddress()

FARPROC WINAPI GetProcAddress ( HMODULE  ,
LPCSTR   
)

◆ init_routine()

static void init_routine ( void  )
static

◆ LoadLibraryA()

HMODULE WINAPI LoadLibraryA ( LPCSTR  )

◆ qta_decode_data()

static void qta_decode_data ( audio_decoder_t this_gen,
buf_element_t buf 
)
static

◆ qta_discontinuity()

static void qta_discontinuity ( audio_decoder_t this_gen)
static

Referenced by qta_open_plugin().

◆ qta_dispose()

static void qta_dispose ( audio_decoder_t this_gen)
static

References lprintf, and NULL.

Referenced by qta_open_plugin().

◆ qta_init_class()

void * qta_init_class ( xine_t xine,
const void *  data 
)

◆ qta_init_driver()

static void qta_init_driver ( qta_decoder_t this,
buf_element_t buf 
)
static

◆ qta_open_plugin()

static audio_decoder_t * qta_open_plugin ( audio_decoder_class_t class_gen,
xine_stream_t stream 
)
static

◆ qta_reset()

static void qta_reset ( audio_decoder_t this_gen)
static

Referenced by qta_open_plugin().

◆ qtv_decode_data()

static void qtv_decode_data ( video_decoder_t this_gen,
buf_element_t buf 
)
static

◆ qtv_discontinuity()

static void qtv_discontinuity ( video_decoder_t this_gen)
static

Referenced by qtv_open_plugin().

◆ qtv_dispose()

static void qtv_dispose ( video_decoder_t this_gen)
static

References lprintf, and NULL.

Referenced by qtv_open_plugin().

◆ qtv_flush()

static void qtv_flush ( video_decoder_t this_gen)
static

References lprintf.

Referenced by qtv_open_plugin().

◆ qtv_init_class()

void * qtv_init_class ( xine_t xine,
const void *  data 
)

◆ qtv_init_driver()

static void qtv_init_driver ( qtv_decoder_t this,
buf_element_t buf 
)
static

◆ qtv_open_plugin()

static video_decoder_t * qtv_open_plugin ( video_decoder_class_t class_gen,
xine_stream_t stream 
)
static

◆ qtv_reset()

static void qtv_reset ( video_decoder_t this_gen)
static

Referenced by qtv_open_plugin().

Variable Documentation

◆ once_control

pthread_once_t once_control = PTHREAD_ONCE_INIT
static

◆ win32_codec_mutex

pthread_mutex_t win32_codec_mutex
static