MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
PrivateDecoderCrystalHD Class Reference

#include <privatedecoder_crystalhd.h>

Inheritance diagram for PrivateDecoderCrystalHD:
Inheritance graph
[legend]
Collaboration diagram for PrivateDecoderCrystalHD:
Collaboration graph
[legend]

Public Member Functions

 PrivateDecoderCrystalHD ()
 
virtual ~PrivateDecoderCrystalHD ()
 
QString GetName (void) override
 
bool Init (const QString &decoder, PlayerFlags flags, AVCodecContext *avctx) override
 
bool Reset (void) override
 
int GetFrame (AVStream *stream, AVFrame *picture, int *got_picture_ptr, AVPacket *pkt) override
 
bool HasBufferedFrames (void) override
 
bool NeedsReorderedPTS (void) override
 
- Public Member Functions inherited from PrivateDecoder
 PrivateDecoder ()=default
 
virtual ~PrivateDecoder ()=default
 

Static Public Member Functions

static void GetDecoders (render_opts &opts)
 
- Static Public Member Functions inherited from PrivateDecoder
static void GetDecoders (render_opts &opts)
 
static PrivateDecoderCreate (const QString &decoder, PlayerFlags flags, AVCodecContext *avctx)
 

Private Member Functions

void FetchFrames (void)
 
bool StartFetcherThread (void)
 
int ProcessPacket (AVStream *stream, AVPacket *pkt)
 
bool CreateFilter (AVCodecContext *avctx)
 
void FillFrame (BC_DTS_PROC_OUT *out)
 
void AddFrameToQueue (void)
 
void CheckProcOutput (BC_DTS_PROC_OUT *out)
 
void CheckPicInfo (BC_DTS_PROC_OUT *out)
 
void CheckStatus (void)
 
int GetTxFreeSize (bool hwsel)
 

Private Attributes

HANDLE m_device
 
BC_DEVICE_TYPE m_device_type
 
BC_OUTPUT_FORMAT m_pix_fmt
 
QList< VideoFrame * > m_decoded_frames
 
QList< PacketBuffer * > m_packet_buffers
 
QMutex m_decoded_frames_lock
 
FetcherThreadm_fetcher_thread
 
bool m_fetcher_pause
 
bool m_fetcher_paused
 
bool m_fetcher_stop
 
VideoFramem_frame
 
AVBitStreamFilterContext * m_filter
 

Friends

class FetcherThread
 

Additional Inherited Members

- Protected Attributes inherited from PrivateDecoder
MythAVCopy m_copyCtx
 

Detailed Description

Definition at line 47 of file privatedecoder_crystalhd.h.

Constructor & Destructor Documentation

◆ PrivateDecoderCrystalHD()

PrivateDecoderCrystalHD::PrivateDecoderCrystalHD ( )

Definition at line 49 of file privatedecoder_crystalhd.cpp.

◆ ~PrivateDecoderCrystalHD()

PrivateDecoderCrystalHD::~PrivateDecoderCrystalHD ( )
virtual

Definition at line 57 of file privatedecoder_crystalhd.cpp.

Member Function Documentation

◆ GetDecoders()

void PrivateDecoderCrystalHD::GetDecoders ( render_opts opts)
static

Definition at line 41 of file privatedecoder_crystalhd.cpp.

Referenced by PrivateDecoder::GetDecoders().

◆ GetName()

QString PrivateDecoderCrystalHD::GetName ( void  )
inlineoverridevirtual

Implements PrivateDecoder.

Definition at line 55 of file privatedecoder_crystalhd.h.

◆ Init()

bool PrivateDecoderCrystalHD::Init ( const QString &  decoder,
PlayerFlags  flags,
AVCodecContext *  avctx 
)
overridevirtual

Implements PrivateDecoder.

Definition at line 95 of file privatedecoder_crystalhd.cpp.

Referenced by PrivateDecoder::Create().

◆ Reset()

bool PrivateDecoderCrystalHD::Reset ( void  )
overridevirtual

Implements PrivateDecoder.

Definition at line 381 of file privatedecoder_crystalhd.cpp.

Referenced by Init(), and ~PrivateDecoderCrystalHD().

◆ GetFrame()

int PrivateDecoderCrystalHD::GetFrame ( AVStream *  stream,
AVFrame picture,
int *  got_picture_ptr,
AVPacket *  pkt 
)
overridevirtual

Implements PrivateDecoder.

Definition at line 511 of file privatedecoder_crystalhd.cpp.

◆ HasBufferedFrames()

bool PrivateDecoderCrystalHD::HasBufferedFrames ( void  )
overridevirtual

Reimplemented from PrivateDecoder.

Definition at line 417 of file privatedecoder_crystalhd.cpp.

◆ NeedsReorderedPTS()

bool PrivateDecoderCrystalHD::NeedsReorderedPTS ( void  )
inlineoverridevirtual

Reimplemented from PrivateDecoder.

Definition at line 66 of file privatedecoder_crystalhd.h.

◆ FetchFrames()

void PrivateDecoderCrystalHD::FetchFrames ( void  )
private

Definition at line 566 of file privatedecoder_crystalhd.cpp.

Referenced by FetcherThread::run().

◆ StartFetcherThread()

bool PrivateDecoderCrystalHD::StartFetcherThread ( void  )
private

Definition at line 614 of file privatedecoder_crystalhd.cpp.

Referenced by GetFrame().

◆ ProcessPacket()

int PrivateDecoderCrystalHD::ProcessPacket ( AVStream *  stream,
AVPacket *  pkt 
)
private

Definition at line 425 of file privatedecoder_crystalhd.cpp.

Referenced by GetFrame().

◆ CreateFilter()

bool PrivateDecoderCrystalHD::CreateFilter ( AVCodecContext *  avctx)
private

Definition at line 331 of file privatedecoder_crystalhd.cpp.

Referenced by Init().

◆ FillFrame()

void PrivateDecoderCrystalHD::FillFrame ( BC_DTS_PROC_OUT *  out)
private

Definition at line 629 of file privatedecoder_crystalhd.cpp.

Referenced by FetchFrames().

◆ AddFrameToQueue()

void PrivateDecoderCrystalHD::AddFrameToQueue ( void  )
private

Definition at line 706 of file privatedecoder_crystalhd.cpp.

Referenced by FillFrame().

◆ CheckProcOutput()

void PrivateDecoderCrystalHD::CheckProcOutput ( BC_DTS_PROC_OUT *  out)
private

Definition at line 716 of file privatedecoder_crystalhd.cpp.

Referenced by FetchFrames().

◆ CheckPicInfo()

void PrivateDecoderCrystalHD::CheckPicInfo ( BC_DTS_PROC_OUT *  out)
private

Definition at line 749 of file privatedecoder_crystalhd.cpp.

Referenced by CheckProcOutput().

◆ CheckStatus()

void PrivateDecoderCrystalHD::CheckStatus ( void  )
private

Definition at line 781 of file privatedecoder_crystalhd.cpp.

◆ GetTxFreeSize()

int PrivateDecoderCrystalHD::GetTxFreeSize ( bool  hwsel)
private

Definition at line 819 of file privatedecoder_crystalhd.cpp.

Referenced by ProcessPacket().

Friends And Related Function Documentation

◆ FetcherThread

friend class FetcherThread
friend

Definition at line 49 of file privatedecoder_crystalhd.h.

Referenced by StartFetcherThread().

Member Data Documentation

◆ m_device

HANDLE PrivateDecoderCrystalHD::m_device
private

◆ m_device_type

BC_DEVICE_TYPE PrivateDecoderCrystalHD::m_device_type
private

Definition at line 83 of file privatedecoder_crystalhd.h.

Referenced by Init(), Reset(), and ~PrivateDecoderCrystalHD().

◆ m_pix_fmt

BC_OUTPUT_FORMAT PrivateDecoderCrystalHD::m_pix_fmt
private

Definition at line 84 of file privatedecoder_crystalhd.h.

Referenced by FillFrame(), and Init().

◆ m_decoded_frames

QList<VideoFrame*> PrivateDecoderCrystalHD::m_decoded_frames
private

Definition at line 85 of file privatedecoder_crystalhd.h.

Referenced by AddFrameToQueue(), GetFrame(), HasBufferedFrames(), and Reset().

◆ m_packet_buffers

QList<PacketBuffer*> PrivateDecoderCrystalHD::m_packet_buffers
private

Definition at line 86 of file privatedecoder_crystalhd.h.

Referenced by ProcessPacket(), and Reset().

◆ m_decoded_frames_lock

QMutex PrivateDecoderCrystalHD::m_decoded_frames_lock
private

Definition at line 87 of file privatedecoder_crystalhd.h.

Referenced by AddFrameToQueue(), GetFrame(), HasBufferedFrames(), and Reset().

◆ m_fetcher_thread

FetcherThread* PrivateDecoderCrystalHD::m_fetcher_thread
private

Definition at line 88 of file privatedecoder_crystalhd.h.

Referenced by Reset(), StartFetcherThread(), and ~PrivateDecoderCrystalHD().

◆ m_fetcher_pause

bool PrivateDecoderCrystalHD::m_fetcher_pause
private

◆ m_fetcher_paused

bool PrivateDecoderCrystalHD::m_fetcher_paused
private

Definition at line 90 of file privatedecoder_crystalhd.h.

Referenced by FetchFrames(), and Reset().

◆ m_fetcher_stop

bool PrivateDecoderCrystalHD::m_fetcher_stop
private

Definition at line 91 of file privatedecoder_crystalhd.h.

Referenced by FetchFrames(), and ~PrivateDecoderCrystalHD().

◆ m_frame

VideoFrame* PrivateDecoderCrystalHD::m_frame
private

Definition at line 92 of file privatedecoder_crystalhd.h.

Referenced by AddFrameToQueue(), FillFrame(), and Reset().

◆ m_filter

AVBitStreamFilterContext* PrivateDecoderCrystalHD::m_filter
private

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