Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
COMXVideo Class Reference

#include <OMXVideo.h>

Public Member Functions

 COMXVideo (CRenderManager &renderManager, CProcessInfo &processInfo)
 
 ~COMXVideo ()
 
bool SendDecoderConfig ()
 
bool Open (CDVDStreamInfo &hints, OMXClock *clock, bool hdmi_clock_sync=false)
 
bool PortSettingsChanged (ResolutionUpdateInfo &resinfo)
 
void RegisterResolutionUpdateCallBack (void *ctx, ResolutionUpdateCallBackFn callback)
 
void Close (void)
 
unsigned int GetFreeSpace ()
 
unsigned int GetSize ()
 
int Decode (uint8_t *pData, int iSize, double dts, double pts, bool &settings_changed)
 
void Reset (void)
 
void SetDropState (bool bDrop)
 
std::string GetDecoderName () const
 
void SetVideoRect (const CRect &SrcRect, const CRect &DestRect, RENDER_STEREO_MODE video_mode, RENDER_STEREO_MODE display_mode, bool stereo_invert)
 
int GetInputBufferSize ()
 
bool GetPlayerInfo (double &match, double &phase, double &pll)
 
void SubmitEOS ()
 
bool IsEOS ()
 
bool SubmittedEOS () const
 
bool BadState ()
 

Static Protected Member Functions

static bool NaluFormatStartCodes (enum AVCodecID codec, uint8_t *in_extradata, int in_extrasize)
 

Protected Attributes

bool m_drop_state
 
unsigned int m_decoded_width
 
unsigned int m_decoded_height
 
OMX_VIDEO_CODINGTYPE m_codingType
 
COMXCoreComponent m_omx_decoder
 
COMXCoreComponent m_omx_render
 
COMXCoreComponent m_omx_sched
 
COMXCoreComponent m_omx_image_fx
 
COMXCoreComponentm_omx_clock
 
OMXClockm_av_clock
 
COMXCoreTunnel m_omx_tunnel_decoder
 
COMXCoreTunnel m_omx_tunnel_clock
 
COMXCoreTunnel m_omx_tunnel_sched
 
COMXCoreTunnel m_omx_tunnel_image_fx
 
bool m_is_open
 
bool m_setStartTime
 
uint8_tm_extradata
 
int m_extrasize
 
std::string m_video_codec_name
 
bool m_deinterlace
 
bool m_hdmi_clock_sync
 
ResolutionUpdateCallBackFn m_res_callback
 
voidm_res_ctx
 
bool m_submitted_eos
 
bool m_failed_eos
 
OMX_DISPLAYTRANSFORMTYPE m_transform
 
bool m_settings_changed
 
bool m_isPi1
 
CRenderManagerm_renderManager
 
CProcessInfom_processInfo
 
CCriticalSection m_critSection
 

Constructor & Destructor Documentation

◆ COMXVideo()

COMXVideo::COMXVideo ( CRenderManager renderManager,
CProcessInfo processInfo 
)

◆ ~COMXVideo()

COMXVideo::~COMXVideo ( )

Member Function Documentation

◆ BadState()

bool COMXVideo::BadState ( )
inline

◆ Close()

void COMXVideo::Close ( void  )

◆ Decode()

int COMXVideo::Decode ( uint8_t pData,
int  iSize,
double  dts,
double  pts,
bool &  settings_changed 
)

◆ GetDecoderName()

std::string COMXVideo::GetDecoderName ( ) const
inline

◆ GetFreeSpace()

unsigned int COMXVideo::GetFreeSpace ( )

◆ GetInputBufferSize()

int COMXVideo::GetInputBufferSize ( )

◆ GetPlayerInfo()

bool COMXVideo::GetPlayerInfo ( double &  match,
double &  phase,
double &  pll 
)

◆ GetSize()

unsigned int COMXVideo::GetSize ( )

◆ IsEOS()

bool COMXVideo::IsEOS ( )

◆ NaluFormatStartCodes()

bool COMXVideo::NaluFormatStartCodes ( enum AVCodecID  codec,
uint8_t in_extradata,
int  in_extrasize 
)
staticprotected

◆ Open()

bool COMXVideo::Open ( CDVDStreamInfo hints,
OMXClock clock,
bool  hdmi_clock_sync = false 
)

◆ PortSettingsChanged()

bool COMXVideo::PortSettingsChanged ( ResolutionUpdateInfo resinfo)

◆ RegisterResolutionUpdateCallBack()

void COMXVideo::RegisterResolutionUpdateCallBack ( void ctx,
ResolutionUpdateCallBackFn  callback 
)
inline

◆ Reset()

void COMXVideo::Reset ( void  )

◆ SendDecoderConfig()

bool COMXVideo::SendDecoderConfig ( )

◆ SetDropState()

void COMXVideo::SetDropState ( bool  bDrop)

◆ SetVideoRect()

void COMXVideo::SetVideoRect ( const CRect SrcRect,
const CRect DestRect,
RENDER_STEREO_MODE  video_mode,
RENDER_STEREO_MODE  display_mode,
bool  stereo_invert 
)

◆ SubmitEOS()

void COMXVideo::SubmitEOS ( )

◆ SubmittedEOS()

bool COMXVideo::SubmittedEOS ( ) const
inline

Member Data Documentation

◆ m_av_clock

OMXClock* COMXVideo::m_av_clock
protected

◆ m_codingType

OMX_VIDEO_CODINGTYPE COMXVideo::m_codingType
protected

◆ m_critSection

CCriticalSection COMXVideo::m_critSection
protected

◆ m_decoded_height

unsigned int COMXVideo::m_decoded_height
protected

◆ m_decoded_width

unsigned int COMXVideo::m_decoded_width
protected

◆ m_deinterlace

bool COMXVideo::m_deinterlace
protected

◆ m_drop_state

bool COMXVideo::m_drop_state
protected

◆ m_extradata

uint8_t* COMXVideo::m_extradata
protected

◆ m_extrasize

int COMXVideo::m_extrasize
protected

◆ m_failed_eos

bool COMXVideo::m_failed_eos
protected

◆ m_hdmi_clock_sync

bool COMXVideo::m_hdmi_clock_sync
protected

◆ m_is_open

bool COMXVideo::m_is_open
protected

◆ m_isPi1

bool COMXVideo::m_isPi1
protected

◆ m_omx_clock

COMXCoreComponent* COMXVideo::m_omx_clock
protected

◆ m_omx_decoder

COMXCoreComponent COMXVideo::m_omx_decoder
protected

◆ m_omx_image_fx

COMXCoreComponent COMXVideo::m_omx_image_fx
protected

◆ m_omx_render

COMXCoreComponent COMXVideo::m_omx_render
protected

◆ m_omx_sched

COMXCoreComponent COMXVideo::m_omx_sched
protected

◆ m_omx_tunnel_clock

COMXCoreTunnel COMXVideo::m_omx_tunnel_clock
protected

◆ m_omx_tunnel_decoder

COMXCoreTunnel COMXVideo::m_omx_tunnel_decoder
protected

◆ m_omx_tunnel_image_fx

COMXCoreTunnel COMXVideo::m_omx_tunnel_image_fx
protected

◆ m_omx_tunnel_sched

COMXCoreTunnel COMXVideo::m_omx_tunnel_sched
protected

◆ m_processInfo

CProcessInfo& COMXVideo::m_processInfo
protected

◆ m_renderManager

CRenderManager& COMXVideo::m_renderManager
protected

◆ m_res_callback

ResolutionUpdateCallBackFn COMXVideo::m_res_callback
protected

◆ m_res_ctx

void* COMXVideo::m_res_ctx
protected

◆ m_setStartTime

bool COMXVideo::m_setStartTime
protected

◆ m_settings_changed

bool COMXVideo::m_settings_changed
protected

◆ m_submitted_eos

bool COMXVideo::m_submitted_eos
protected

◆ m_transform

OMX_DISPLAYTRANSFORMTYPE COMXVideo::m_transform
protected

◆ m_video_codec_name

std::string COMXVideo::m_video_codec_name
protected

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