Guiliani  Version 2.5 revision 6773 (build 33)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CGUIVideoDecoder Class Referenceabstract

Base class for the video-decoders. More...

#include <GUIVideoDecoder.h>

Inheritance diagram for CGUIVideoDecoder:

Public Member Functions

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
 

Protected Member Functions

 CGUIVideoDecoder ()
 
void SwapEndianess16 (eC_UShort &ubData)
 
void SwapEndianess32 (eC_UInt &uiData)
 

Detailed Description

Base class for the video-decoders.

All decoder classes must be derived from this class.

Constructor & Destructor Documentation

virtual CGUIVideoDecoder::~CGUIVideoDecoder ( )
inlinevirtual

Virtual destructor.

CGUIVideoDecoder::CGUIVideoDecoder ( )
inlineprotected

Constructor of CGUIImageDecoder, which sets all supported image types to False.

Member Function Documentation

virtual eC_Bool CGUIVideoDecoder::Decode ( CGUIVideoData kImageData,
eC_File *  pTmpImgFile 
)
pure 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.

Implemented in CGUIVideoDecoderMJPEG.

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

Decode a single frame

Parameters
pkDatapointer to data
uiLengthlength of frame
pkDestinationdestination-address

Implemented in CGUIVideoDecoderMJPEG.

virtual void CGUIVideoDecoder::SetBPP ( const eC_UByte &  ubBPP)
pure virtual

Set bytes per pixel

Parameters
ubBPP

Implemented in CGUIVideoDecoderMJPEG.

virtual void CGUIVideoDecoder::SetDestinationFormat ( const CGUICommonEnums::ImageType_t eDestinationFormat)
pure virtual

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

Parameters
eDestinationFormat

Implemented in CGUIVideoDecoderMJPEG.

void CGUIVideoDecoder::SwapEndianess16 ( eC_UShort &  ubData)
inlineprotected

Swaps 16-bit endianess of the referenced value.

Parameters
[in,out]ubDataGiven value.
void CGUIVideoDecoder::SwapEndianess32 ( eC_UInt &  uiData)
inlineprotected

Swaps 32-bit endianess of the referenced value.

Parameters
[in,out]uiDataGiven value.

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