Dirac - A Video Codec

Created by the British Broadcasting Corporation.


dirac::StreamFrameInput Class Reference

#include <pic_io.h>

Inheritance diagram for dirac::StreamFrameInput:
Collaboration diagram for dirac::StreamFrameInput:

Public Member Functions

 StreamFrameInput ()
 Default Constructor.
 StreamFrameInput (std::istream *ip_pic_ptr, const SourceParams &sparams)
 Constructor.
virtual ~StreamFrameInput ()
 Destructor.
virtual void Skip (const int n)
 Skip n frames of input.
virtual bool ReadNextPicture (Picture &myframe)
 Read the next frame from the file.
Public Member Functions inherited from dirac::StreamPicInput
 StreamPicInput ()
 Default Constructor.
 StreamPicInput (std::istream *ip_pic_ptr, const SourceParams &sparams)
 Constructor.
virtual ~StreamPicInput ()
 Destructor.
SourceParamsGetSourceParams () const
 Get the source parameters.
bool End () const
 Returns true if we're at the end of the input, false otherwise.

Private Member Functions

bool ReadFrameComponent (PicArray &pic_data, const CompSort &cs)
 Read a Frame component from the file.

Additional Inherited Members

Protected Attributes inherited from dirac::StreamPicInput
SourceParams m_sparams
 Source parameters.
std::istream * m_ip_pic_ptr
 Input stream.

Constructor & Destructor Documentation

◆ StreamFrameInput() [1/2]

dirac::StreamFrameInput::StreamFrameInput ( )

◆ StreamFrameInput() [2/2]

dirac::StreamFrameInput::StreamFrameInput ( std::istream * ip_pic_ptr,
const SourceParams & sparams )

Constructor, takes

Parameters
ip_pic_ptrinput stream to read from
sparamsSource parameters

◆ ~StreamFrameInput()

virtual dirac::StreamFrameInput::~StreamFrameInput ( )
virtual

Member Function Documentation

◆ ReadFrameComponent()

bool dirac::StreamFrameInput::ReadFrameComponent ( PicArray & pic_data,
const CompSort & cs )
private

◆ ReadNextPicture()

virtual bool dirac::StreamFrameInput::ReadNextPicture ( Picture & myframe)
virtual

Implements dirac::StreamPicInput.

◆ Skip()

virtual void dirac::StreamFrameInput::Skip ( const int n)
virtual

Implements dirac::StreamPicInput.


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

© 2004 British Broadcasting Corporation. Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.