Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Protected Attributes | List of all members
Decoder Class Referenceabstract

A Virtual class for decoders. More...

#include <decoder.h>

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

Public Member Functions

 Decoder ()
 Default constructor.
 
virtual ~Decoder ()
 Default destructor.
 
void input (Frame *f)
 Create a copy of the frame into the internal storage of the decoder (i.e. to Decoder::in_frame)
 
long int getMsTimestamp ()
 
virtual Frameoutput ()=0
 < Return in_frame timestamp More...
 
virtual void releaseOutput ()
 Decoder might want to know that it's ok to overwrite the frame.
 
virtual void flush ()=0
 Reset decoder state. How to flush depends on the decoder library.
 
virtual bool pull ()=0
 Decode in_frame to out_frame. Return true if decoder returned a new frame (into out_frame), otherwise false. Implementation depends on the decoder library.
 
virtual bool isOk ()
 The thread that uses this decoder can check if it has gone sour.
 
bool hasFrame ()
 

Protected Attributes

BasicFrame in_frame
 Payload data to be decoded.
 
bool has_frame
 

Detailed Description

A Virtual class for decoders.

Inspects Frame in_frame, does something, and writes to Frame out_frame out_frame class depends on the kind of Decoder, so that is defined in the subclasses

Member Function Documentation

◆ output()

virtual Frame* Decoder::output ( )
pure virtual

< Return in_frame timestamp

Return a reference to the internal storage of the decoder where the decoded frame is. The exact frametype depends on the Decoder class (and decoder library)

Implemented in VideoDecoder, HwVideoDecoder, and DummyDecoder.


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