Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dirac::MemoryStreamInput Class Reference

#include <pic_io.h>

Collaboration diagram for dirac::MemoryStreamInput:
Collaboration graph
[legend]

Classes

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

Public Member Functions

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

Protected Member Functions

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

Private Attributes

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

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

§ ~MemoryStreamInput()

dirac::MemoryStreamInput::~MemoryStreamInput ( )

§ MemoryStreamInput() [2/2]

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

Member Function Documentation

§ GetSourceParams()

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

§ GetStream()

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

§ operator=()

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

§ 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

§ 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.