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
|
|
|
|
|
|
|
struct CMediaSample: public IMediaSample
|
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;
|
|
|
|
CMediaSample(IMemAllocator* allocator, long _size);
|
|
|
|
~CMediaSample();
|
2001-08-16 00:50:02 +00:00
|
|
|
void SetPointer(char* pointer) { block = pointer; }
|
|
|
|
void ResetPointer() { block = own_block; }
|
2001-03-20 00:05:27 +00:00
|
|
|
};
|
2001-08-16 00:50:02 +00:00
|
|
|
|
|
|
|
#endif /* DS_CMEDIASAMPLE_H */
|