Dirac - A Video Codec

Created by the British Broadcasting Corporation.


dirac::InputStreamBuffer Class Reference

Input Stream Buffer Class.

#include <dirac_cppparser.h>

Inheritance diagram for dirac::InputStreamBuffer:
Collaboration diagram for dirac::InputStreamBuffer:

Public Member Functions

 InputStreamBuffer ()
 Constructor.
 ~InputStreamBuffer ()
 Destructor.
std::ios::pos_type Rewind ()
 Rewind buffer to start of data.
std::ios::pos_type Seek (std::ios::pos_type bytes, std::ios::seekdir pos=std::ios::cur)
 Seek to position specified by bytes offset from pos.
std::ios::pos_type Tell ()
 Return the current read position in the buffer.
void Copy (char *start, int bytes)
 Copy data into buffer.
void PurgeProcessedData ()
 Delete all processed data from buffer.

Private Member Functions

 InputStreamBuffer (const InputStreamBuffer &inbuf)
 Private body-less copy constructor.
InputStreamBufferoperator= (const InputStreamBuffer &inbuf)
 Private body-less assignment operator.

Private Attributes

char * m_chunk_buffer
 Buffere.

Static Private Attributes

static const int m_buffer_size = 1232896
 Buffer size.

Constructor & Destructor Documentation

◆ InputStreamBuffer() [1/2]

dirac::InputStreamBuffer::InputStreamBuffer ( )

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

◆ ~InputStreamBuffer()

dirac::InputStreamBuffer::~InputStreamBuffer ( )

◆ InputStreamBuffer() [2/2]

dirac::InputStreamBuffer::InputStreamBuffer ( const InputStreamBuffer & inbuf)
private

References InputStreamBuffer().

Member Function Documentation

◆ Copy()

void dirac::InputStreamBuffer::Copy ( char * start,
int bytes )

Copy take

Parameters
startmemory area start
bytesnumber of bytes to copy starting from start

◆ operator=()

InputStreamBuffer & dirac::InputStreamBuffer::operator= ( const InputStreamBuffer & inbuf)
private

References InputStreamBuffer().

◆ PurgeProcessedData()

void dirac::InputStreamBuffer::PurgeProcessedData ( )

◆ Rewind()

std::ios::pos_type dirac::InputStreamBuffer::Rewind ( )

◆ Seek()

std::ios::pos_type dirac::InputStreamBuffer::Seek ( std::ios::pos_type bytes,
std::ios::seekdir pos = std::ios::cur )

Seek takes

Parameters
bytesoffset in bytes
posthe position from which the offset is applied

◆ Tell()

std::ios::pos_type dirac::InputStreamBuffer::Tell ( )

Member Data Documentation

◆ m_buffer_size

const int dirac::InputStreamBuffer::m_buffer_size = 1232896
staticprivate

◆ m_chunk_buffer

char* dirac::InputStreamBuffer::m_chunk_buffer
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.