xine-lib: xine-lib-1.2.13/src/libw32dll/DirectShow/cmediasample.h Source File

xine-lib 1.2.13-20230125hg15249

cmediasample.h
Go to the documentation of this file.
1#ifndef DS_CMEDIASAMPLE_H
2#define DS_CMEDIASAMPLE_H
3
4#include "interfaces.h"
5#include "guids.h"
6
7 typedef struct _CMediaSample CMediaSample;
8 struct _CMediaSample
9{
10 IMediaSample_vt* vt;
11 DECLARE_IUNKNOWN();
12 IMemAllocator* all;
13 int size;
14 int actual_size;
15 char* block;
16 char* own_block;
17 int isPreroll;
18 int isSyncPoint;
19 int isDiscontinuity;
20 LONGLONG time_start;
21 LONGLONG time_end;
22 AM_MEDIA_TYPE media_type;
23 int type_valid;
24 void ( *SetPointer) (CMediaSample* This, char* pointer);
25 void ( *ResetPointer) (CMediaSample* This); // FIXME replace with Set & 0
26};
27
28 CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int _size);
29// called from allocator
30void CMediaSample_Destroy(CMediaSample* This);
31
32#endif /* DS_CMEDIASAMPLE_H */
CMediaSample_Destroy
void CMediaSample_Destroy(CMediaSample *This)
Definition cmediasample.c:43
CMediaSampleCreate
CMediaSample * CMediaSampleCreate(IMemAllocator *allocator, int _size)
Definition cmediasample.c:264
guids.h
AM_MEDIA_TYPE
AM_MEDIA_TYPE
Definition guids.h:23
interfaces.h
DECLARE_IUNKNOWN
#define DECLARE_IUNKNOWN()
Definition iunk.h:11
IMediaSample_vt
Definition interfaces.h:121
_CMediaSample
Definition cmediasample.h:9
_CMediaSample::time_start
LONGLONG time_start
Definition cmediasample.h:20
_CMediaSample::type_valid
int type_valid
Definition cmediasample.h:23
_CMediaSample::time_end
LONGLONG time_end
Definition cmediasample.h:21
_CMediaSample::own_block
char * own_block
Definition cmediasample.h:16
_CMediaSample::block
char * block
Definition cmediasample.h:15
_CMediaSample::isSyncPoint
int isSyncPoint
Definition cmediasample.h:18
_CMediaSample::actual_size
int actual_size
Definition cmediasample.h:14
_CMediaSample::size
int size
Definition cmediasample.h:13
_CMediaSample::vt
IMediaSample_vt * vt
Definition cmediasample.h:10
_CMediaSample::all
IMemAllocator * all
Definition cmediasample.h:12
_CMediaSample::isDiscontinuity
int isDiscontinuity
Definition cmediasample.h:19
_CMediaSample::ResetPointer
void(* ResetPointer)(CMediaSample *This)
Definition cmediasample.h:25
_CMediaSample::isPreroll
int isPreroll
Definition cmediasample.h:17
_CMediaSample::SetPointer
void(* SetPointer)(CMediaSample *This, char *pointer)
Definition cmediasample.h:24
_CMediaSample::media_type
AM_MEDIA_TYPE media_type
Definition cmediasample.h:22
_IMemAllocator
Definition interfaces.h:244