Dirac - A Video Codec

Created by the British Broadcasting Corporation.


dirac::MemoryStreamInput Class Reference

#include <pic_io.h>

Collaboration diagram for dirac::MemoryStreamInput:

Classes

class  InputMemoryBuffer
 Class that defines the Input Stream Memory Buffer. More...

Public Member Functions

 MemoryStreamInput (SourceParams &sparams, bool field_input)
 Constructor.
 ~MemoryStreamInput ()
 Destructor.
SourceParamsGetSourceParams ()
void SetMembufReference (unsigned char *buf, int buf_size)
 Set Memory buffer.
StreamPicInputGetStream ()
 Return the input stream.

Protected Member Functions

 MemoryStreamInput (const MemoryStreamInput &)
 Body-less copy constructor.
MemoryStreamInputoperator= (const MemoryStreamInput &)
 Body-less assignment operator.

Private Attributes

InputMemoryBuffer m_membuf
 Input stream buffer.
StreamPicInputm_inp_str
 Input Stream Object.
std::istream * m_ip_pic_ptr
 Input stream.

Detailed Description

Class for reading picture data from memory

Constructor & Destructor Documentation

◆ MemoryStreamInput() [1/2]

dirac::MemoryStreamInput::MemoryStreamInput ( SourceParams & sparams,
bool field_input )

Create a MemoryStreamInput object

Parameters
sparamsSource parameters
field_inputTreat input as fields, not frames

Referenced by MemoryStreamInput(), and operator=().

◆ ~MemoryStreamInput()

dirac::MemoryStreamInput::~MemoryStreamInput ( )

◆ MemoryStreamInput() [2/2]

dirac::MemoryStreamInput::MemoryStreamInput ( const MemoryStreamInput & )
protected

References MemoryStreamInput().

Member Function Documentation

◆ GetSourceParams()

SourceParams & dirac::MemoryStreamInput::GetSourceParams ( )
inline

References m_inp_str.

◆ GetStream()

StreamPicInput * dirac::MemoryStreamInput::GetStream ( )
inline

References m_inp_str.

◆ operator=()

MemoryStreamInput & dirac::MemoryStreamInput::operator= ( const MemoryStreamInput & )
protected

References MemoryStreamInput().

◆ SetMembufReference()

void dirac::MemoryStreamInput::SetMembufReference ( unsigned char * buf,
int buf_size )

Set the input memory buffer variables

Parameters
bufInput Buffer to read data from
buf_sizeInput buffer size

Member Data Documentation

◆ m_inp_str

StreamPicInput* dirac::MemoryStreamInput::m_inp_str
private

Referenced by GetSourceParams(), and GetStream().

◆ m_ip_pic_ptr

std::istream* dirac::MemoryStreamInput::m_ip_pic_ptr
private

◆ m_membuf

InputMemoryBuffer dirac::MemoryStreamInput::m_membuf
private

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.