Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
ilibav::CLibAvVideoDecoderComp Class Reference

Implementation of imm::IVideoController and icam::IBitmapAcquisition interfaces using LibAv library. More...

#include <CLibAvVideoDecoderComp.h>

Inheritance diagram for ilibav::CLibAvVideoDecoderComp:
ilog::TLoggerCompWrap< Base > icam::IBitmapAcquisition imeas::ISampleAcquisition imm::IVideoController ilog::TLoggerWrap< Base > iproc::IProcessor iproc::IProcessor imm::IMediaController imm::IVideoInfo ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic istd::IChangeable ifile::IFileTypeInfo istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

enum  MessageId { MI_CANNOT_OPEN = 0x56a20, MI_FORMAT_PROBLEM }
 
typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from imm::IVideoController
enum  SupportedFeatures
 
- Public Types inherited from imm::IMediaController
enum  ChangeFlags
 
enum  SupportedFeatures
 

Public Member Functions

 CLibAvVideoDecoderComp ()
 
virtual ~CLibAvVideoDecoderComp ()
 
virtual istd::CIndex2d GetBitmapSize (const iprm::IParamsSet *paramsPtr) const
 
virtual double GetSamplingRate (const iprm::IParamsSet *paramsPtr) const
 
virtual int GetProcessorState (const iprm::IParamsSet *paramsPtr) const
 
virtual bool AreParamsAccepted (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const
 
virtual int DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 
virtual int BeginTask (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 
virtual int WaitTaskFinished (int taskId=-1, double timeoutTime=-1, bool killOnTimeout=true)
 
virtual void CancelTask (int taskId=-1)
 
virtual int GetReadyTask ()
 
virtual int GetTaskState (int taskId=-1) const
 
virtual void InitProcessor (const iprm::IParamsSet *paramsPtr)
 
virtual QString GetOpenedMediumUrl () const
 
virtual bool OpenMediumUrl (const QString &url, bool autoPlay=true)
 
virtual void CloseMedium ()
 
virtual bool IsPlaying () const
 
virtual bool SetPlaying (bool state=true)
 
virtual double GetMediumLength () const
 
virtual double GetCurrentPosition () const
 
virtual bool SetCurrentPosition (double position)
 
virtual int GetSupportedFeatures () const
 
virtual int GetFramesCount () const
 
virtual double GetFrameIntervall () const
 
virtual istd::CIndex2d GetFrameSize () const
 
virtual double GetPixelAspectRatio () const
 
virtual int GetCurrentFrame () const
 
virtual bool SetCurrentFrame (int frameIndex)
 
virtual bool GetFileExtensions (QStringList &result, int flags=-1, bool doAppend=false) const
 
virtual QString GetTypeDescription (const QString *extensionPtr=NULL) const
 
- Public Member Functions inherited from ilog::ILoggable
virtual void SetLogPtr (IMessageConsumer *logPtr)=0
 
virtual IMessageConsumerGetLogPtr () const =0
 
virtual void SetTracingEnabled (bool trace)=0
 
virtual bool IsTracingEnabled () const =0
 

Protected Types

enum  FrameType {
  FT_ERROR = -1, FT_END, FT_AUDIO_SAMPLE, FT_IMAGE,
  FT_SKIPPED_AUDIO_SAMPLE, FT_SKIPPED_IMAGE
}
 

Protected Member Functions

FrameType ReadNextFrame (iimg::IBitmap *bitmapPtr, imeas::IDataSequence *audioSequencePtr, int minimalImageFrame=-1, int minimalAudioFrame=-1)
 
bool ReadNextPacket ()
 Read next packet from stream. More...
 
int FinishNextTask ()
 Fininsh single task and return its ID. More...
 
bool TryTracePosition (int minimalImageFrame=-1, int minimalAudioFrame=-1)
 
void OnComponentCreated ()
 
void OnComponentDestroyed ()
 

Detailed Description

Implementation of imm::IVideoController and icam::IBitmapAcquisition interfaces using LibAv library.

Definition at line 38 of file CLibAvVideoDecoderComp.h.

Member Typedef Documentation

Definition at line 45 of file CLibAvVideoDecoderComp.h.

Member Enumeration Documentation

Enumerator
FT_ERROR 
FT_END 
FT_AUDIO_SAMPLE 
FT_IMAGE 
FT_SKIPPED_AUDIO_SAMPLE 
FT_SKIPPED_IMAGE 

Definition at line 128 of file CLibAvVideoDecoderComp.h.

Enumerator
MI_CANNOT_OPEN 
MI_FORMAT_PROBLEM 

Definition at line 47 of file CLibAvVideoDecoderComp.h.

Constructor & Destructor Documentation

ilibav::CLibAvVideoDecoderComp::CLibAvVideoDecoderComp ( )
virtual ilibav::CLibAvVideoDecoderComp::~CLibAvVideoDecoderComp ( )
virtual

Member Function Documentation

virtual bool ilibav::CLibAvVideoDecoderComp::AreParamsAccepted ( const iprm::IParamsSet paramsPtr,
const istd::IPolymorphic inputPtr,
const istd::IChangeable outputPtr 
) const
virtual
virtual int ilibav::CLibAvVideoDecoderComp::BeginTask ( const iprm::IParamsSet paramsPtr,
const istd::IPolymorphic inputPtr,
istd::IChangeable outputPtr,
ibase::IProgressManager progressManagerPtr = NULL 
)
virtual
virtual void ilibav::CLibAvVideoDecoderComp::CancelTask ( int  taskId = -1)
virtual
virtual void ilibav::CLibAvVideoDecoderComp::CloseMedium ( )
virtual

Implements imm::IMediaController.

virtual int ilibav::CLibAvVideoDecoderComp::DoProcessing ( const iprm::IParamsSet paramsPtr,
const istd::IPolymorphic inputPtr,
istd::IChangeable outputPtr,
ibase::IProgressManager progressManagerPtr = NULL 
)
virtual
int ilibav::CLibAvVideoDecoderComp::FinishNextTask ( )
protected

Fininsh single task and return its ID.

virtual istd::CIndex2d ilibav::CLibAvVideoDecoderComp::GetBitmapSize ( const iprm::IParamsSet paramsPtr) const
virtual
virtual int ilibav::CLibAvVideoDecoderComp::GetCurrentFrame ( ) const
virtual

Implements imm::IVideoController.

virtual double ilibav::CLibAvVideoDecoderComp::GetCurrentPosition ( ) const
virtual

Implements imm::IMediaController.

virtual bool ilibav::CLibAvVideoDecoderComp::GetFileExtensions ( QStringList &  result,
int  flags = -1,
bool  doAppend = false 
) const
virtual
virtual double ilibav::CLibAvVideoDecoderComp::GetFrameIntervall ( ) const
virtual

Implements imm::IVideoController.

virtual int ilibav::CLibAvVideoDecoderComp::GetFramesCount ( ) const
virtual

Implements imm::IVideoController.

virtual istd::CIndex2d ilibav::CLibAvVideoDecoderComp::GetFrameSize ( ) const
virtual

Implements imm::IVideoController.

virtual double ilibav::CLibAvVideoDecoderComp::GetMediumLength ( ) const
virtual

Implements imm::IMediaController.

virtual QString ilibav::CLibAvVideoDecoderComp::GetOpenedMediumUrl ( ) const
virtual

Implements imm::IMediaController.

virtual double ilibav::CLibAvVideoDecoderComp::GetPixelAspectRatio ( ) const
virtual

Implements imm::IVideoController.

virtual int ilibav::CLibAvVideoDecoderComp::GetProcessorState ( const iprm::IParamsSet paramsPtr) const
virtual
virtual int ilibav::CLibAvVideoDecoderComp::GetReadyTask ( )
virtual
virtual double ilibav::CLibAvVideoDecoderComp::GetSamplingRate ( const iprm::IParamsSet paramsPtr) const
virtual
virtual int ilibav::CLibAvVideoDecoderComp::GetSupportedFeatures ( ) const
virtual

Implements imm::IMediaController.

virtual int ilibav::CLibAvVideoDecoderComp::GetTaskState ( int  taskId = -1) const
virtual
virtual QString ilibav::CLibAvVideoDecoderComp::GetTypeDescription ( const QString *  extensionPtr = NULL) const
virtual
virtual void ilibav::CLibAvVideoDecoderComp::InitProcessor ( const iprm::IParamsSet paramsPtr)
virtual
virtual bool ilibav::CLibAvVideoDecoderComp::IsPlaying ( ) const
virtual

Implements imm::IMediaController.

void ilibav::CLibAvVideoDecoderComp::OnComponentCreated ( )
protected
void ilibav::CLibAvVideoDecoderComp::OnComponentDestroyed ( )
protected
virtual bool ilibav::CLibAvVideoDecoderComp::OpenMediumUrl ( const QString &  url,
bool  autoPlay = true 
)
virtual

Implements imm::IMediaController.

FrameType ilibav::CLibAvVideoDecoderComp::ReadNextFrame ( iimg::IBitmap bitmapPtr,
imeas::IDataSequence audioSequencePtr,
int  minimalImageFrame = -1,
int  minimalAudioFrame = -1 
)
protected
bool ilibav::CLibAvVideoDecoderComp::ReadNextPacket ( )
protected

Read next packet from stream.

virtual bool ilibav::CLibAvVideoDecoderComp::SetCurrentFrame ( int  frameIndex)
virtual

Implements imm::IVideoController.

virtual bool ilibav::CLibAvVideoDecoderComp::SetCurrentPosition ( double  position)
virtual

Implements imm::IMediaController.

virtual bool ilibav::CLibAvVideoDecoderComp::SetPlaying ( bool  state = true)
virtual

Implements imm::IMediaController.

bool ilibav::CLibAvVideoDecoderComp::TryTracePosition ( int  minimalImageFrame = -1,
int  minimalAudioFrame = -1 
)
protected
virtual int ilibav::CLibAvVideoDecoderComp::WaitTaskFinished ( int  taskId = -1,
double  timeoutTime = -1,
bool  killOnTimeout = true 
)
virtual

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

© 2007-2011 Witold Gantzke and Kirill Lepskiy