Dirac - A Video Codec

Created by the British Broadcasting Corporation.


BasicOutputManager Class Reference

Class for managing bit- and byte-oriented output. More...

#include <bit_manager.h>

List of all members.

Public Member Functions

Private Member Functions

Private Attributes


Detailed Description

A class for managing bit- and byte-oriented output. Wraps around an ostream object but stores data in memory until told told to write out in order to support data re-ordering - for example writing a header once the subsequent data has been obtained. Implementation to be reviewed in future. TJD 13 April 2004.


Constructor & Destructor Documentation

BasicOutputManager::BasicOutputManager std::ostream *  out_data  ) 
 

Constructor requires an ostream object pointer. /param OutData the output stream object pointer

BasicOutputManager::~BasicOutputManager  )  [inline]
 


Member Function Documentation

void BasicOutputManager::FlushOutput  )  [private]
 

size_t BasicOutputManager::GetNumBytes  )  const [inline]
 

Return the number of bytes last output to file.

void BasicOutputManager::InitOutputStream  )  [private]
 

void BasicOutputManager::OutputBit const bool &  bit,
int &  count
 

Write a bit out to the internal data cache and increment the count of bits written.

void BasicOutputManager::OutputBit const bool &  bit  ) 
 

Write a bit out to the internal data cache.

void BasicOutputManager::OutputByte const char &  byte  ) 
 

Write a byte out to the internal data cache.

void BasicOutputManager::OutputBytes char *  str_array,
int  num
 

Write a number of bytes out to the internal data cache.

void BasicOutputManager::OutputBytes char *  str_array  ) 
 

Write a null-terminated set of bytes out to the internal data cache.

void BasicOutputManager::OutputSkipInterpretStartPrefixByte  )  [private]
 

Write a skip interpret start prefix byte out to the internal data cache.

size_t BasicOutputManager::Size  )  const [inline]
 

Size of the internal data cache in bytes.

void BasicOutputManager::WriteToFile  )  [private]
 

Dump the internal data cache to the internal ostream object.


Member Data Documentation

std::vector<char> BasicOutputManager::m_buffer [private]
 

char BasicOutputManager::m_current_byte [private]
 

size_t BasicOutputManager::m_num_out_bytes [private]
 

std::ostream* BasicOutputManager::m_op_ptr [private]
 

int BasicOutputManager::m_output_mask [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.