aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader/dshow/cmediasample.h
blob: 0ac96aadb89ec8af282dad5c5ab0303fb7c8e13f (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
#ifndef DS_CMEDIASAMPLE_H
#define DS_CMEDIASAMPLE_H

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

struct CMediaSample: public IMediaSample
{
    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(char* pointer) { block = pointer; }
    void ResetPointer() { block = own_block; }
};

#endif /* DS_CMEDIASAMPLE_H */