annotate loader/dshow/cmediasample.h @ 33958:b4593947fc31

Set WinID early and once. Set WinID once in guiInit(), not each time MPlayer calls gui(GUI_SETUP_VIDEO_WINDOW, 0).
author ib
date Thu, 01 Sep 2011 19:08:07 +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_CMEDIASAMPLE_H
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
2 #define MPLAYER_CMEDIASAMPLE_H
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
3
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
4 #include "interfaces.h"
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
5 #include "guids.h"
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
6
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 3467
diff changeset
7 typedef struct CMediaSample CMediaSample;
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 3467
diff changeset
8 struct CMediaSample
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
9 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
10 IMediaSample_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
11 DECLARE_IUNKNOWN();
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
12 IMemAllocator* all;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
13 int size;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
14 int actual_size;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
15 char* block;
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
16 char* own_block;
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
17 int isPreroll;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
18 int isSyncPoint;
3467
e3bbf44dbab2 avifile sync
arpi
parents: 3130
diff changeset
19 int isDiscontinuity;
e3bbf44dbab2 avifile sync
arpi
parents: 3130
diff changeset
20 LONGLONG time_start;
e3bbf44dbab2 avifile sync
arpi
parents: 3130
diff changeset
21 LONGLONG time_end;
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
22 AM_MEDIA_TYPE media_type;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
23 int type_valid;
3467
e3bbf44dbab2 avifile sync
arpi
parents: 3130
diff changeset
24 void ( *SetPointer) (CMediaSample* This, char* pointer);
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
25 void ( *ResetPointer) (CMediaSample* This); // FIXME replace with Set & 0
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
26 };
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
27
25794
2c8cdb9123b8 Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents: 3467
diff changeset
28 CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int size);
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
29 // called from allocator
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
30 void CMediaSample_Destroy(CMediaSample* This);
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_CMEDIASAMPLE_H */