forked from voc/decklink-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMutableVideoFrame.h
More file actions
35 lines (27 loc) · 936 Bytes
/
MutableVideoFrame.h
File metadata and controls
35 lines (27 loc) · 936 Bytes
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
35
#ifndef __MutableVideoFrame__
#define __MutableVideoFrame__
#include "DeckLinkAPI.h"
class MutableVideoFrame : public IDeckLinkVideoFrame
{
public:
MutableVideoFrame(long width, long height, BMDPixelFormat pixelFormat);
virtual ULONG AddRef(void);
virtual ULONG Release(void);
virtual long GetWidth (void);
virtual long GetHeight (void);
virtual long GetRowBytes (void);
virtual BMDPixelFormat GetPixelFormat (void);
virtual BMDFrameFlags GetFlags (void);
virtual HRESULT GetBytes (/* out */ void **buffer);
HRESULT QueryInterface(REFIID iid, LPVOID *ppv);
virtual HRESULT GetTimecode (/* in */ BMDTimecodeFormat format, /* out */ IDeckLinkTimecode **timecode);
virtual HRESULT GetAncillaryData (/* out */ IDeckLinkVideoFrameAncillary **ancillary);
private:
int GetBytesPerPixel(BMDPixelFormat pixelFormat);
long m_width;
long m_height;
BMDPixelFormat m_pixelFormat;
int32_t m_refCount;
char* m_buf;
};
#endif