summaryrefslogtreecommitdiffstats
path: root/loader/dshow/cmediasample.h
blob: 569b230907c07934012d04a20a39e9e14f689c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef DS_CMEDIASAMPLE_H
#define DS_CMEDIASAMPLE_H

#include "interfaces.h"
#include "guids.h"

typedef struct _CMediaSample CMediaSample;
struct _CMediaSample
{
    IMediaSample_vt* vt;
    IMemAllocator* all;
    int size;
    int actual_size;
    char* block;
    char* own_block;
    int refcount;
    int isPreroll;
    int isSyncPoint;
    AM_MEDIA_TYPE media_type;
    int type_valid;
    void ( *SetPointer) (CMediaSample* This,char* pointer);
    void ( *ResetPointer) (CMediaSample* This); // FIXME replace with Set & 0
};

CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int _size);
// called from allocator
void CMediaSample_Destroy(CMediaSample* This);

#endif /* DS_CMEDIASAMPLE_H */