annotate loader/dshow/cmediasample.h @ 11964:d051cf39331e

- Cleaned up the Makefile, added some *.o's - Added some declarations of variable's in netstream.c Patch by Anton Verburg <anton@frog.nl>
author gabucino
date Tue, 17 Feb 2004 11:22:32 +0000
parents e3bbf44dbab2
children 2c8cdb9123b8
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: 713
diff changeset
1 #ifndef DS_CMEDIASAMPLE_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
2 #define DS_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
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
7 typedef struct _CMediaSample CMediaSample;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
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
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
28 CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int _size);
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
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
32 #endif /* DS_CMEDIASAMPLE_H */