view loader/dshow/cmediasample.h @ 17361:62dd9493d896

1.1193: [does not apply] 1.1192: minor grammar/punctuation on lavc's keyint option 1.1191: further wording fix for uspp 1.1190: Support vme=8 (iterative overlapped block). 1.1189: Include the snow wavelet comparison functions from DOCS/tech/snow.txt 1.1188: wording 1.1187: Add bidir_refine to lavc's set of options, and document it.
author kraymer
date Wed, 11 Jan 2006 23:03:50 +0000
parents e3bbf44dbab2
children 2c8cdb9123b8
line wrap: on
line source

#ifndef DS_CMEDIASAMPLE_H
#define DS_CMEDIASAMPLE_H

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

typedef struct _CMediaSample CMediaSample;
struct _CMediaSample
{
    IMediaSample_vt* vt;
    DECLARE_IUNKNOWN();
    IMemAllocator* all;
    int size;
    int actual_size;
    char* block;
    char* own_block;
    int isPreroll;
    int isSyncPoint;
    int isDiscontinuity;
    LONGLONG time_start;
    LONGLONG time_end;
    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 */