annotate loader/dshow/DS_VideoDecoder.h @ 3059:24fa494bedb1

imported from xine
author arpi
date Wed, 21 Nov 2001 23:42:06 +0000
parents da26060c81ef
children 004e3199fee0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
1 #ifndef AVIFILE_DS_VIDEODECODER_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
2 #define AVIFILE_DS_VIDEODECODER_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
3
3059
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
4 #ifndef NOAVIFILE_HEADERS
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
5 #include "videodecoder.h"
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
6 #else
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
7 #include "../libwin32.h"
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
8 #endif
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
9 #include "DS_Filter.h"
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
10
3059
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
11 typedef struct _DS_VideoDecoder
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
12 {
3059
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
13 IVideoDecoder iv;
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
14
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
15 DS_Filter* m_pDS_Filter;
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
16 AM_MEDIA_TYPE m_sOurType, m_sDestType;
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
17 VIDEOINFOHEADER* m_sVhdr;
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
18 VIDEOINFOHEADER* m_sVhdr2;
3059
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
19 int m_Caps;//CAPS m_Caps; // capabilities of DirectShow decoder
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
20 int m_iLastQuality; // remember last quality as integer
3059
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
21 int m_iMinBuffers;
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
22 int m_iMaxAuto;
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
23 int m_bIsDivX; // for speed
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
24 int m_bIsDivX4; // for speed
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
25 }DS_VideoDecoder;
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
26
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
27
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
28
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
29 int DS_VideoDecoder_GetCapabilities(DS_VideoDecoder *this);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
30
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
31 DS_VideoDecoder * DS_VideoDecoder_Create(CodecInfo * info, BITMAPINFOHEADER * format, int flip, int maxauto);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
32
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
33 void DS_VideoDecoder_Destroy(DS_VideoDecoder *this);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
34
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
35 void DS_VideoDecoder_StartInternal(DS_VideoDecoder *this);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
36
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
37 void DS_VideoDecoder_StopInternal(DS_VideoDecoder *this);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
38
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
39 int DS_VideoDecoder_DecodeInternal(DS_VideoDecoder *this, const void* src, int size, int is_keyframe, CImage* pImage);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
40
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
41 /*
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
42 * bits == 0 - leave unchanged
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
43 */
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
44 //int SetDestFmt(DS_VideoDecoder * this, int bits = 24, fourcc_t csp = 0);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
45 int DS_VideoDecoder_SetDestFmt(DS_VideoDecoder *this, int bits, fourcc_t csp);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
46
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
47
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
48 int DS_VideoDecoder_SetDirection(DS_VideoDecoder *this, int d);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
49
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
50 HRESULT DS_VideoDecoder_GetValue(DS_VideoDecoder *this, const char* name, int* value);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
51
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
52 HRESULT DS_VideoDecoder_SetValue(DS_VideoDecoder *this, const char* name, int value);
24fa494bedb1 imported from xine
arpi
parents: 1545
diff changeset
53
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
54
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
55 #endif /* AVIFILE_DS_VIDEODECODER_H */