summaryrefslogtreecommitdiff
path: root/src/libw32dll/DirectShow/cmediasample.h
blob: 061566cc10c01445d8abdd8d72a50b4214adc6b6 (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
30
31
32
33
34
#ifndef DS_CMEDIASAMPLE_H
#define DS_CMEDIASAMPLE_H

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

typedef 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;
    
    /*
    CMediaSample(IMemAllocator* allocator, long _size);
    ~CMediaSample();
    */ 
    
    void (*SetPointer)(struct _CMediaSample *this, char* pointer);
    void (*ResetPointer)(struct _CMediaSample *this);
} CMediaSample;

CMediaSample * CMediaSample_Create(IMemAllocator* allocator, long _size);
void CMediaSample_Destroy(CMediaSample *this);

#endif /* DS_CMEDIASAMPLE_H */