FFmpeg  4.0
Public Member Functions | Data Fields | Private Attributes
decklink_frame Class Reference
Inheritance diagram for decklink_frame:

Public Member Functions

 decklink_frame (struct decklink_ctx *ctx, AVFrame *avframe, AVCodecID codec_id, int height, int width)
 
 decklink_frame (struct decklink_ctx *ctx, AVPacket *avpacket, AVCodecID codec_id, int height, int width)
 
virtual long STDMETHODCALLTYPE GetWidth (void)
 
virtual long STDMETHODCALLTYPE GetHeight (void)
 
virtual long STDMETHODCALLTYPE GetRowBytes (void)
 
virtual BMDPixelFormat STDMETHODCALLTYPE GetPixelFormat (void)
 
virtual BMDFrameFlags STDMETHODCALLTYPE GetFlags (void)
 
virtual HRESULT STDMETHODCALLTYPE GetBytes (void **buffer)
 
virtual HRESULT STDMETHODCALLTYPE GetTimecode (BMDTimecodeFormat format, IDeckLinkTimecode **timecode)
 
virtual HRESULT STDMETHODCALLTYPE GetAncillaryData (IDeckLinkVideoFrameAncillary **ancillary)
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID iid, LPVOID *ppv)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 

Data Fields

struct decklink_ctx_ctx
 
AVFrame_avframe
 
AVPacket_avpacket
 
AVCodecID _codec_id
 
int _height
 
int _width
 

Private Attributes

std::atomic< int_refs
 

Detailed Description

Definition at line 44 of file decklink_enc.cpp.

Constructor & Destructor Documentation

◆ decklink_frame() [1/2]

decklink_frame::decklink_frame ( struct decklink_ctx ctx,
AVFrame avframe,
AVCodecID  codec_id,
int  height,
int  width 
)
inline

Definition at line 47 of file decklink_enc.cpp.

Referenced by decklink_write_video_packet().

◆ decklink_frame() [2/2]

decklink_frame::decklink_frame ( struct decklink_ctx ctx,
AVPacket avpacket,
AVCodecID  codec_id,
int  height,
int  width 
)
inline

Definition at line 49 of file decklink_enc.cpp.

Member Function Documentation

◆ GetWidth()

virtual long STDMETHODCALLTYPE decklink_frame::GetWidth ( void  )
inlinevirtual

Definition at line 52 of file decklink_enc.cpp.

Referenced by GetRowBytes().

◆ GetHeight()

virtual long STDMETHODCALLTYPE decklink_frame::GetHeight ( void  )
inlinevirtual

Definition at line 53 of file decklink_enc.cpp.

◆ GetRowBytes()

virtual long STDMETHODCALLTYPE decklink_frame::GetRowBytes ( void  )
inlinevirtual

Definition at line 54 of file decklink_enc.cpp.

◆ GetPixelFormat()

virtual BMDPixelFormat STDMETHODCALLTYPE decklink_frame::GetPixelFormat ( void  )
inlinevirtual

Definition at line 61 of file decklink_enc.cpp.

◆ GetFlags()

virtual BMDFrameFlags STDMETHODCALLTYPE decklink_frame::GetFlags ( void  )
inlinevirtual

Definition at line 68 of file decklink_enc.cpp.

◆ GetBytes()

virtual HRESULT STDMETHODCALLTYPE decklink_frame::GetBytes ( void **  buffer)
inlinevirtual

Definition at line 76 of file decklink_enc.cpp.

◆ GetTimecode()

virtual HRESULT STDMETHODCALLTYPE decklink_frame::GetTimecode ( BMDTimecodeFormat  format,
IDeckLinkTimecode **  timecode 
)
inlinevirtual

Definition at line 89 of file decklink_enc.cpp.

◆ GetAncillaryData()

virtual HRESULT STDMETHODCALLTYPE decklink_frame::GetAncillaryData ( IDeckLinkVideoFrameAncillary **  ancillary)
inlinevirtual

Definition at line 90 of file decklink_enc.cpp.

◆ QueryInterface()

virtual HRESULT STDMETHODCALLTYPE decklink_frame::QueryInterface ( REFIID  iid,
LPVOID ppv 
)
inlinevirtual

Definition at line 92 of file decklink_enc.cpp.

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE decklink_frame::AddRef ( void  )
inlinevirtual

Definition at line 93 of file decklink_enc.cpp.

◆ Release()

virtual ULONG STDMETHODCALLTYPE decklink_frame::Release ( void  )
inlinevirtual

Definition at line 94 of file decklink_enc.cpp.

Field Documentation

◆ _ctx

struct decklink_ctx* decklink_frame::_ctx

Definition at line 105 of file decklink_enc.cpp.

Referenced by decklink_output_callback::ScheduledFrameCompleted().

◆ _avframe

AVFrame* decklink_frame::_avframe

◆ _avpacket

AVPacket* decklink_frame::_avpacket

◆ _codec_id

AVCodecID decklink_frame::_codec_id

Definition at line 108 of file decklink_enc.cpp.

Referenced by GetBytes(), GetFlags(), GetPixelFormat(), and GetRowBytes().

◆ _height

int decklink_frame::_height

Definition at line 109 of file decklink_enc.cpp.

Referenced by GetHeight().

◆ _width

int decklink_frame::_width

Definition at line 110 of file decklink_enc.cpp.

Referenced by GetWidth().

◆ _refs

std::atomic<int> decklink_frame::_refs
private

Definition at line 113 of file decklink_enc.cpp.

Referenced by AddRef(), and Release().


The documentation for this class was generated from the following file: