comparison loader/dshow/DS_VideoDecoder.h @ 3946:c00db356082f

headers cleanup
author arpi
date Wed, 02 Jan 2002 17:11:09 +0000
parents 0c0042de1f95
children e9bd97d5c5cc
comparison
equal deleted inserted replaced
3945:d30207dfe25a 3946:c00db356082f
1 #ifndef AVIFILE_DS_VIDEODECODER_H 1 #ifndef AVIFILE_DS_VIDEODECODER_H
2 #define AVIFILE_DS_VIDEODECODER_H 2 #define AVIFILE_DS_VIDEODECODER_H
3 3
4 #ifndef NOAVIFILE_HEADERS 4 typedef struct _DS_VideoDecoder DS_VideoDecoder;
5 #include "videodecoder.h"
6 #else
7 #include "libwin32.h"
8 #endif
9 #include "DS_Filter.h"
10
11 typedef struct _DS_VideoDecoder
12 {
13 IVideoDecoder iv;
14
15 DS_Filter* m_pDS_Filter;
16 AM_MEDIA_TYPE m_sOurType, m_sDestType;
17 VIDEOINFOHEADER* m_sVhdr;
18 VIDEOINFOHEADER* m_sVhdr2;
19 int m_Caps;//CAPS m_Caps; // capabilities of DirectShow decoder
20 int m_iLastQuality; // remember last quality as integer
21 int m_iMinBuffers;
22 int m_iMaxAuto;
23 int m_bIsDivX; // for speed
24 int m_bIsDivX4; // for speed
25 }DS_VideoDecoder;
26
27
28 5
29 int DS_VideoDecoder_GetCapabilities(DS_VideoDecoder *this); 6 int DS_VideoDecoder_GetCapabilities(DS_VideoDecoder *this);
30 7
31 DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto); 8 DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto);
32 9
40 17
41 /* 18 /*
42 * bits == 0 - leave unchanged 19 * bits == 0 - leave unchanged
43 */ 20 */
44 //int SetDestFmt(DS_VideoDecoder * this, int bits = 24, fourcc_t csp = 0); 21 //int SetDestFmt(DS_VideoDecoder * this, int bits = 24, fourcc_t csp = 0);
45 int DS_VideoDecoder_SetDestFmt(DS_VideoDecoder *this, int bits, fourcc_t csp); 22 int DS_VideoDecoder_SetDestFmt(DS_VideoDecoder *this, int bits, unsigned int csp);
46
47
48 int DS_VideoDecoder_SetDirection(DS_VideoDecoder *this, int d); 23 int DS_VideoDecoder_SetDirection(DS_VideoDecoder *this, int d);
49 24 int DS_VideoDecoder_GetValue(DS_VideoDecoder *this, const char* name, int* value);
50 HRESULT DS_VideoDecoder_GetValue(DS_VideoDecoder *this, const char* name, int* value); 25 int DS_VideoDecoder_SetValue(DS_VideoDecoder *this, const char* name, int value);
51
52 HRESULT DS_VideoDecoder_SetValue(DS_VideoDecoder *this, const char* name, int value);
53 26
54 27
55 #endif /* AVIFILE_DS_VIDEODECODER_H */ 28 #endif /* AVIFILE_DS_VIDEODECODER_H */