annotate loader/dshow/outputpin.h @ 36075:b14ea6320969

Ensure we call init_vo at the end of get_format to ensure the vo is properly initialized. This seems to fix bug #2135.
author reimar
date Fri, 05 Apr 2013 14:24:54 +0000
parents a8ea87c71d18
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
1 #ifndef MPLAYER_OUTPUTPIN_H
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
2 #define MPLAYER_OUTPUTPIN_H
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
3
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
4 /* "output pin" - the one that connects to output of filter. */
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
5
713
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
6 #include "allocator.h"
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
7
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 22398
diff changeset
8 typedef struct COutputMemPin COutputMemPin;
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 22398
diff changeset
9 typedef struct COutputPin COutputPin;
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
10
22398
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
11 /**
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
12 Callback routine for copying samples from pin into filter
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
13 \param pUserData pointer to user's data
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
14 \param sample IMediaSample
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
15 */
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
16 typedef HRESULT STDCALL (*SAMPLEPROC)(void* pUserData,IMediaSample*sample);
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
17
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 22398
diff changeset
18 struct COutputPin
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
19 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
20 IPin_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
21 DECLARE_IUNKNOWN();
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
22 COutputMemPin* mempin;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
23 AM_MEDIA_TYPE type;
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
24 IPin* remote;
22398
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
25 SAMPLEPROC SampleProc;
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
26 void* pUserData;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
27 void ( *SetNewFormat )(COutputPin*, const AM_MEDIA_TYPE* a);
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
28 };
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
29
22398
49f01f8fbd60 Rework of copying samples from directshow codecs.
voroshil
parents: 7386
diff changeset
30 COutputPin* COutputPinCreate(const AM_MEDIA_TYPE* amt,SAMPLEPROC SampleProc,void* pUserData);
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
31
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
32 #endif /* MPLAYER_OUTPUTPIN_H */