2001-08-16 00:50:02 +00:00
|
|
|
#ifndef DS_CMEDIASAMPLE_H
|
|
|
|
#define DS_CMEDIASAMPLE_H
|
2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
#include "interfaces.h"
|
|
|
|
#include "guids.h"
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
typedef struct _CMediaSample CMediaSample;
|
|
|
|
struct _CMediaSample
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
IMediaSample_vt* vt;
|
2001-03-20 00:05:27 +00:00
|
|
|
IMemAllocator* all;
|
|
|
|
int size;
|
|
|
|
int actual_size;
|
|
|
|
char* block;
|
2001-08-16 00:50:02 +00:00
|
|
|
char* own_block;
|
2001-03-20 00:05:27 +00:00
|
|
|
int refcount;
|
|
|
|
int isPreroll;
|
|
|
|
int isSyncPoint;
|
|
|
|
AM_MEDIA_TYPE media_type;
|
|
|
|
int type_valid;
|
2001-11-21 19:12:39 +00:00
|
|
|
void ( *SetPointer) (CMediaSample* This,char* pointer);
|
|
|
|
void ( *ResetPointer) (CMediaSample* This); // FIXME replace with Set & 0
|
2001-03-20 00:05:27 +00:00
|
|
|
};
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int _size);
|
|
|
|
// called from allocator
|
|
|
|
void CMediaSample_Destroy(CMediaSample* This);
|
|
|
|
|
2001-08-16 00:50:02 +00:00
|
|
|
#endif /* DS_CMEDIASAMPLE_H */
|