Guiliani  Version 2.5 revision 7293 (documentation build 13)
CGUIVideoDecoderMJPEG Class Reference

#include <GUIVideoDecoderMJPEG.h>

Inheritance diagram for CGUIVideoDecoderMJPEG:

Public Member Functions

virtual eC_Bool Decode (CGUIVideoData &pImageData, eC_File *pTempImageFile)
 
virtual void DecodeFrame (const eC_UByte *const pkData, const eC_UInt &uiLength, eC_UByte *pkDestination)
 
eC_UInt GetCurrentFrame () const
 
virtual void SetBPP (const eC_UByte &ubBPP)
 
virtual void SetDestinationFormat (const CGUICommonEnums::ImageType_t &eDestinationFormat)
 
- Public Member Functions inherited from CGUIVideoDecoder
virtual ~CGUIVideoDecoder ()
 
virtual eC_Bool Decode (CGUIVideoData &kImageData, eC_File *pTmpImgFile)=0
 
virtual void DecodeFrame (const eC_UByte *const pkData, const eC_UInt &uiLength, eC_UByte *pkDestination)=0
 
virtual void SetBPP (const eC_UByte &ubBPP)=0
 
virtual void SetDestinationFormat (const CGUICommonEnums::ImageType_t &eDestinationFormat)=0
 

Static Public Attributes

static const eC_UInt LISTck = 0x5453494c
 ID for list 'LIST'.
 
static const eC_UShort STREAM0 = 0x3030
 ID for stream-no. 0 '00'.
 
static const eC_UShort TYPEDC = 0x6364
 ID for Video-stream 'dc'.
 

Additional Inherited Members

- Protected Member Functions inherited from CGUIVideoDecoder
 CGUIVideoDecoder ()
 
void SwapEndianess16 (eC_UShort &ubData)
 
void SwapEndianess32 (eC_UInt &uiData)
 

Detailed Description

Reads a raw-image

Member Function Documentation

◆ Decode()

virtual eC_Bool CGUIVideoDecoderMJPEG::Decode ( CGUIVideoData kImageData,
eC_File *  pTmpImgFile 
)
virtual

Must be implemented in each derived class to decode an image.

Parameters
kImageDataThe decoded image has to be stored here by each derived implementation.
pTmpImgFilePointer to image file to load.
Returns
Implementations must return True if the image was decoded successfully, False if anything went wrong and the contents of kImageData are invalid.

Implements CGUIVideoDecoder.

◆ DecodeFrame()

virtual void CGUIVideoDecoderMJPEG::DecodeFrame ( const eC_UByte *const  pkData,
const eC_UInt &  uiLength,
eC_UByte *  pkDestination 
)
virtual

Decode a single frame

Parameters
pkDatapointer to data
uiLengthlength of frame
pkDestinationdestination-address

Implements CGUIVideoDecoder.

◆ GetCurrentFrame()

eC_UInt CGUIVideoDecoderMJPEG::GetCurrentFrame ( ) const
inline

Get currently set frame

Returns
current frame

◆ SetBPP()

virtual void CGUIVideoDecoderMJPEG::SetBPP ( const eC_UByte &  ubBPP)
virtual

Set bytes per pixel

Parameters
ubBPP

Implements CGUIVideoDecoder.

◆ SetDestinationFormat()

virtual void CGUIVideoDecoderMJPEG::SetDestinationFormat ( const CGUICommonEnums::ImageType_t eDestinationFormat)
virtual

Set destination color-format. This will be used to convert the video data to the appropriate format.

Parameters
eDestinationFormat

Implements CGUIVideoDecoder.


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