#include "guids.h"
#include "interfaces.h"
#include "videodecoder.h"
#include "DS_Filter.h"
#include "DS_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>
|
int | DS_VideoDecoder_GetCapabilities (DS_VideoDecoder *this) |
|
DS_VideoDecoder * | DS_VideoDecoder_Open (const char *dllname, GUID *guid, BITMAPINFOHEADER *format, int flip, int maxauto) |
|
void | DS_VideoDecoder_Destroy (DS_VideoDecoder *this) |
|
void | DS_VideoDecoder_StartInternal (DS_VideoDecoder *this) |
|
void | DS_VideoDecoder_StopInternal (DS_VideoDecoder *this) |
|
int | DS_VideoDecoder_DecodeInternal (DS_VideoDecoder *this, const void *src, int size, int is_keyframe, char *pImage) |
|
int | DS_VideoDecoder_SetDestFmt (DS_VideoDecoder *this, int bits, unsigned int csp) |
|
int | DS_VideoDecoder_SetDirection (DS_VideoDecoder *this, int d) |
|
int | DS_VideoDecoder_GetValue (DS_VideoDecoder *this, const char *name, int *value) |
|
int | DS_VideoDecoder_SetValue (DS_VideoDecoder *this, const char *name, int value) |
|
◆ __MODULE__
#define __MODULE__ "DirectShow_VideoDecoder" |
◆ false
◆ true
◆ VFW_E_NOT_RUNNING
#define VFW_E_NOT_RUNNING 0x80040226 |
◆ ct
◆ DS_VideoDecoder_DecodeInternal()
int DS_VideoDecoder_DecodeInternal |
( |
DS_VideoDecoder * |
this, |
|
|
const void * |
src, |
|
|
int |
size, |
|
|
int |
is_keyframe, |
|
|
char * |
pImage |
|
) |
| |
References Debug, DS_VideoDecoder_GetValue(), DS_VideoDecoder_SetValue(), IMediaSample_vt::GetPointer, IHidden_vt::GetSmth2, IMediaSample_vt::Release, IMediaSample_vt::SetActualDataLength, IMediaSample_vt::SetPreroll, IHidden_vt::SetSmth, IMediaSample_vt::SetSyncPoint, _IMediaSample::vt, and _IHidden::vt.
Referenced by w32v_decode_data().
◆ DS_VideoDecoder_Destroy()
◆ DS_VideoDecoder_GetCapabilities()
◆ DS_VideoDecoder_GetValue()
int DS_VideoDecoder_GetValue |
( |
DS_VideoDecoder * |
this, |
|
|
const char * |
name, |
|
|
int * |
value |
|
) |
| |
References Debug, fccIV50, IHidden_vt::GetSmth2, IHidden_vt::GetSmth3, IHidden_vt::GetSmth4, IHidden_vt::GetSmth5, IHidden_vt::GetSmth6, IID_IDivxFilterInterface, IID_Iv50Hidden, name, START, VFW_E_NOT_RUNNING, and _IHidden::vt.
Referenced by DS_VideoDecoder_DecodeInternal().
◆ DS_VideoDecoder_Open()
DS_VideoDecoder* DS_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, DS_FilterCreate(), _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().
◆ DS_VideoDecoder_SetDestFmt()
int DS_VideoDecoder_SetDestFmt |
( |
DS_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, DS_VideoDecoder_StartInternal(), DS_VideoDecoder_StopInternal(), 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, START, STOP, and VIDEOINFOHEADER.
Referenced by w32v_init_ds_dmo_codec().
◆ DS_VideoDecoder_SetDirection()
◆ DS_VideoDecoder_SetValue()
int DS_VideoDecoder_SetValue |
( |
DS_VideoDecoder * |
this, |
|
|
const char * |
name, |
|
|
int |
value |
|
) |
| |
References Debug, fccIV50, IID_IDivxFilterInterface, IID_Iv50Hidden, name, NULL, IHidden_vt::SetSmth, IHidden_vt::SetSmth2, IHidden_vt::SetSmth3, IHidden_vt::SetSmth4, IHidden_vt::SetSmth5, START, VFW_E_NOT_RUNNING, and _IHidden::vt.
Referenced by DS_VideoDecoder_DecodeInternal().
◆ DS_VideoDecoder_StartInternal()
◆ DS_VideoDecoder_StopInternal()
◆ check
const GUID MEDIASUBTYPE_YV12
Definition: guids.c:61
const GUID MEDIASUBTYPE_YVYU
Definition: guids.c:55
#define fccYUY2
Definition: libwin32.h:254
@ CAP_YV12
Definition: libwin32.h:86
@ CAP_YUY2
Definition: libwin32.h:85
#define fccI420
Definition: libwin32.h:256
#define fccYVYU
Definition: libwin32.h:259
NULL
Definition: xine_plugin.c:78
const GUID MEDIASUBTYPE_UYVY
Definition: guids.c:57
@ CAP_YVYU
Definition: libwin32.h:89
@ CAP_UYVY
Definition: libwin32.h:88
#define fccYVU9
Definition: libwin32.h:260
#define fccYV12
Definition: libwin32.h:255
#define fccIYUV
Definition: libwin32.h:257
@ CAP_IYUV
Definition: libwin32.h:87
const GUID MEDIASUBTYPE_YUY2
Definition: guids.c:53
const GUID MEDIASUBTYPE_I420
Definition: guids.c:63
#define fccUYVY
Definition: libwin32.h:258
const GUID MEDIASUBTYPE_YVU9
Definition: guids.c:47
@ CAP_I420
Definition: libwin32.h:90
const GUID MEDIASUBTYPE_IYUV
Definition: guids.c:45
@ CAP_YVU9
Definition: libwin32.h:91