xine-lib 1.2.13-20230125hg15249
|
#include "DirectShow/guids.h"
#include "DirectShow/interfaces.h"
#include "registry.h"
#include "videodecoder.h"
#include "DMO_Filter.h"
#include "DMO_VideoDecoder.h"
#include "../wine/winerror.h"
#include "fourcc.h"
#include "except.h"
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
Data Structures | |
struct | _DMO_VideoDecoder |
struct | _ct |
Macros | |
#define | VFW_E_NOT_RUNNING 0x80040226 |
#define | __MODULE__ "DirectShow_VideoDecoder" |
#define | false 0 |
#define | true 1 |
Typedefs | |
typedef struct _ct | ct |
Functions | |
DMO_VideoDecoder * | DMO_VideoDecoder_Open (const char *dllname, GUID *guid, BITMAPINFOHEADER *format, int flip, int maxauto) |
void | DMO_VideoDecoder_Destroy (DMO_VideoDecoder *this) |
void | DMO_VideoDecoder_StartInternal (DMO_VideoDecoder *this) |
void | DMO_VideoDecoder_StopInternal (DMO_VideoDecoder *this) |
int | DMO_VideoDecoder_DecodeInternal (DMO_VideoDecoder *this, const void *src, int size, int is_keyframe, char *imdata) |
int | DMO_VideoDecoder_SetDestFmt (DMO_VideoDecoder *this, int bits, unsigned int csp) |
int | DMO_VideoDecoder_SetDirection (DMO_VideoDecoder *this, int d) |
Variables | |
static ct | check [] |
#define __MODULE__ "DirectShow_VideoDecoder" |
#define false 0 |
#define true 1 |
#define VFW_E_NOT_RUNNING 0x80040226 |
int DMO_VideoDecoder_DecodeInternal | ( | DMO_VideoDecoder * | this, |
const void * | src, | ||
int | size, | ||
int | is_keyframe, | ||
char * | imdata ) |
References CMediaBufferCreate(), Debug, DMO_E_NOTACCEPTING, DMO_INPUT_DATA_BUFFERF_SYNCPOINT, DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER, _DMO_OUTPUT_DATA_BUFFER::dwStatus, _DMO_OUTPUT_DATA_BUFFER::pBuffer, _DMO_OUTPUT_DATA_BUFFER::rtTimelength, _DMO_OUTPUT_DATA_BUFFER::rtTimestamp, and _CMediaBuffer::vt.
Referenced by w32v_decode_data().
void DMO_VideoDecoder_Destroy | ( | DMO_VideoDecoder * | this | ) |
References DMO_Filter_Destroy(), DMO_VideoDecoder_StopInternal(), and STOP.
Referenced by w32v_dispose().
DMO_VideoDecoder * DMO_VideoDecoder_Open | ( | const char * | dllname, |
GUID * | guid, | ||
BITMAPINFOHEADER * | format, | ||
int | flip, | ||
int | maxauto ) |
References _ct::bits, _ct::cap, CAP_NONE, CAP_UYVY, CAP_YUY2, check, DIRECT, DMO_FilterCreate(), DMO_SET_TYPEF_TEST_ONLY, _ct::fcc, fccDIV3, fccDIV4, fccDIV5, fccDIV6, fccMP42, fccWMV2, FORMAT_VideoInfo, MEDIASUBTYPE_RGB24, MEDIATYPE_Video, STOP, _ct::subtype, and VIDEOINFOHEADER.
Referenced by w32v_init_ds_dmo_codec().
int DMO_VideoDecoder_SetDestFmt | ( | DMO_VideoDecoder * | this, |
int | bits, | ||
unsigned int | csp ) |
References abs, bits, CAP_I420, CAP_IYUV, CAP_UYVY, CAP_YUY2, CAP_YV12, CAP_YVU9, CAP_YVYU, Debug, DMO_SET_TYPEF_TEST_ONLY, fccI420, fccIYUV, fccUYVY, fccYUY2, fccYV12, fccYVU9, fccYVYU, MEDIASUBTYPE_I420, MEDIASUBTYPE_IYUV, MEDIASUBTYPE_RGB24, MEDIASUBTYPE_RGB32, MEDIASUBTYPE_RGB555, MEDIASUBTYPE_RGB565, MEDIASUBTYPE_UYVY, MEDIASUBTYPE_YUY2, MEDIASUBTYPE_YV12, MEDIASUBTYPE_YVU9, MEDIASUBTYPE_YVYU, and VIDEOINFOHEADER.
Referenced by w32v_init_ds_dmo_codec().
int DMO_VideoDecoder_SetDirection | ( | DMO_VideoDecoder * | this, |
int | d ) |
void DMO_VideoDecoder_StartInternal | ( | DMO_VideoDecoder * | this | ) |
References _AllocatorProperties::cbAlign, _AllocatorProperties::cbBuffer, _AllocatorProperties::cbPrefix, _AllocatorProperties::cBuffers, Debug, and START.
Referenced by w32v_init_ds_dmo_codec().
void DMO_VideoDecoder_StopInternal | ( | DMO_VideoDecoder * | this | ) |
Referenced by DMO_VideoDecoder_Destroy().
|
static |
Referenced by DMO_VideoDecoder_Open().