Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Private Attributes | List of all members
dirac::SourceParams Class Reference

Parameters relating to the source material being encoded/decoded.

#include <common.h>

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

Public Member Functions

 SourceParams (const VideoFormat &vf=VIDEO_FORMAT_CUSTOM, bool set_defaults=true)
 default constructor More...
 
VideoFormat GetVideoFormat () const
 Returns video-format. More...
 
unsigned int Xl () const
 Returns the picture width. More...
 
unsigned int Yl () const
 Returns the picture height. More...
 
ChromaFormat CFormat () const
 Returns the chroma format of the sequence (420, 422, 444) More...
 
int ChromaWidth () const
 Returns the chroma width. More...
 
int ChromaHeight () const
 Returns the chroma height. More...
 
unsigned int SourceSampling () const
 Returns the source sampling field of the source scan format. More...
 
bool TopFieldFirst () const
 Returns true if top field comes first in time. More...
 
Rational FrameRate () const
 Return the number for frames per second. More...
 
FrameRateType FrameRateIndex () const
 Return the type from the frame rate table. More...
 
Rational PixelAspectRatio () const
 Return the pixel aspect ratio. More...
 
PixelAspectRatioType PixelAspectRatioIndex () const
 Return the type from the pixel aspect ratio table. More...
 
unsigned int CleanWidth () const
 Return the Clean area width. More...
 
unsigned int CleanHeight () const
 Return the Clean area height. More...
 
unsigned int LeftOffset () const
 Return the Clean area left offset. More...
 
unsigned int TopOffset () const
 Return the Clean area top offset. More...
 
SignalRangeType SignalRangeIndex () const
 Return the type from the signal range table. More...
 
unsigned int LumaOffset () const
 Return the luma offset. More...
 
unsigned int LumaExcursion () const
 Return the luma excursion. More...
 
unsigned int ChromaOffset () const
 Return the chroma offset. More...
 
unsigned int ChromaExcursion () const
 Return the chroma excursion. More...
 
unsigned int ColourSpecificationIndex () const
 Return the index into the colour specification table. More...
 
ColourPrimaries ColourPrimariesIndex () const
 Return the colour primaries index. More...
 
ColourMatrix ColourMatrixIndex () const
 Return the colour matrix index. More...
 
TransferFunction TransferFunctionIndex () const
 Return the transfer function index. More...
 
void SetXl (unsigned int xlen)
 Sets the picture width. More...
 
void SetYl (unsigned int ylen)
 Sets the picture height. More...
 
void SetCFormat (ChromaFormat cf)
 Sets the chroma format (Y only, 420, 422 etc) More...
 
void SetSourceSampling (unsigned int source_sampling)
 Set if the source sampling field of the scan format. More...
 
void SetTopFieldFirst (bool tff)
 Set Topfield first. True if top field comes first in time. More...
 
void SetVideoFormat (VideoFormat vf)
 Sets the video format. More...
 
void SetFrameRate (const Rational &frate)
 Set the frame rate. More...
 
void SetFrameRate (unsigned int fr_num, unsigned int fr_denom)
 Set the frame rate. More...
 
void SetFrameRate (FrameRateType fr)
 Set the frame rate. More...
 
void SetPixelAspectRatio (const Rational &pix_asr)
 Set the pixel aspect ratio. More...
 
void SetPixelAspectRatio (unsigned int pix_as_num, unsigned int pix_as_denom)
 Set the pixel aspect ratio. More...
 
void SetPixelAspectRatio (PixelAspectRatioType pixel_aspect_ratio)
 Set the Pixel Aspect Ratio. More...
 
void SetCleanWidth (unsigned int clean_width)
 Set the Clean area width. More...
 
void SetCleanHeight (unsigned int clean_height)
 Set the Clean area height. More...
 
void SetLeftOffset (unsigned int left_offset)
 Set the Clean area left offset. More...
 
void SetTopOffset (unsigned int top_offset)
 Set the Clean area top offset. More...
 
void SetSignalRange (SignalRangeType sr)
 Set the Signal Range parameters. More...
 
void SetLumaOffset (unsigned int luma_offset)
 Set the luma offset. More...
 
void SetLumaExcursion (unsigned int luma_exc)
 Set the luma excursion. More...
 
void SetChromaOffset (unsigned int chroma_off)
 Set the chroma offset. More...
 
void SetChromaExcursion (unsigned int chroma_exc)
 Set the chroma excursion. More...
 
void SetColourSpecification (unsigned int cs_idx)
 Set the Colour specification. More...
 
void SetColourPrimariesIndex (unsigned int cp)
 Set the colour primaries index. More...
 
void SetColourMatrixIndex (unsigned int cm)
 Set the colour matrix index. More...
 
void SetTransferFunctionIndex (unsigned int tf)
 Set the transfer function index. More...
 

Private Attributes

VideoFormat m_video_format
 Video-format. More...
 
unsigned int m_xl
 Width of video. More...
 
unsigned int m_yl
 Height of video. More...
 
ChromaFormat m_cformat
 Presence of chroma and/or chroma sampling structure. More...
 
unsigned int m_source_sampling
 Source sampling field : 0 - progressive, 1 - interlaced. More...
 
bool m_topfieldfirst
 If m_source_sampling=1, true if the top field is first in temporal order. More...
 
FrameRateType m_fr_idx
 Index into frame rate table. More...
 
Rational m_framerate
 Frame Rate i.e number of frames per second. More...
 
PixelAspectRatioType m_pix_asr_idx
 Index into pixel aspect ratio table. More...
 
Rational m_pixel_aspect_ratio
 Pixel Aspect Ratio. More...
 
unsigned int m_clean_width
 Clean area width. More...
 
unsigned int m_clean_height
 Clean area height. More...
 
unsigned int m_left_offset
 Clean area left offset. More...
 
unsigned int m_top_offset
 Clean area top offset. More...
 
SignalRangeType m_sr_idx
 Index into signal range table. More...
 
unsigned int m_luma_offset
 Luma offset. More...
 
unsigned int m_luma_excursion
 Luma excursion. More...
 
unsigned int m_chroma_offset
 Chroma offset. More...
 
unsigned int m_chroma_excursion
 Chroma excursion. More...
 
unsigned int m_cs_idx
 Index into colour spec table. More...
 
ColourPrimaries m_col_primary
 Colour Primaries Index. More...
 
ColourMatrix m_col_matrix
 
TransferFunction m_transfer_func
 

Constructor & Destructor Documentation

dirac::SourceParams::SourceParams ( const VideoFormat vf = VIDEO_FORMAT_CUSTOM,
bool  set_defaults = true 
)

Member Function Documentation

ChromaFormat dirac::SourceParams::CFormat ( ) const
inline
unsigned int dirac::SourceParams::ChromaExcursion ( ) const
inline
int dirac::SourceParams::ChromaHeight ( ) const
unsigned int dirac::SourceParams::ChromaOffset ( ) const
inline
int dirac::SourceParams::ChromaWidth ( ) const
unsigned int dirac::SourceParams::CleanHeight ( ) const
inline
unsigned int dirac::SourceParams::CleanWidth ( ) const
inline
ColourMatrix dirac::SourceParams::ColourMatrixIndex ( ) const
inline
ColourPrimaries dirac::SourceParams::ColourPrimariesIndex ( ) const
inline
unsigned int dirac::SourceParams::ColourSpecificationIndex ( ) const
inline
Rational dirac::SourceParams::FrameRate ( ) const
inline
FrameRateType dirac::SourceParams::FrameRateIndex ( ) const
inline
VideoFormat dirac::SourceParams::GetVideoFormat ( ) const
inline
unsigned int dirac::SourceParams::LeftOffset ( ) const
inline
unsigned int dirac::SourceParams::LumaExcursion ( ) const
inline
unsigned int dirac::SourceParams::LumaOffset ( ) const
inline
Rational dirac::SourceParams::PixelAspectRatio ( ) const
inline
PixelAspectRatioType dirac::SourceParams::PixelAspectRatioIndex ( ) const
inline
void dirac::SourceParams::SetCFormat ( ChromaFormat  cf)
inline
void dirac::SourceParams::SetChromaExcursion ( unsigned int  chroma_exc)
inline

References SIGNAL_RANGE_CUSTOM.

void dirac::SourceParams::SetChromaOffset ( unsigned int  chroma_off)
inline

References SIGNAL_RANGE_CUSTOM.

void dirac::SourceParams::SetCleanHeight ( unsigned int  clean_height)
inline
void dirac::SourceParams::SetCleanWidth ( unsigned int  clean_width)
inline
void dirac::SourceParams::SetColourMatrixIndex ( unsigned int  cm)
void dirac::SourceParams::SetColourPrimariesIndex ( unsigned int  cp)
void dirac::SourceParams::SetColourSpecification ( unsigned int  cs_idx)
void dirac::SourceParams::SetFrameRate ( const Rational frate)
inline

References FRAMERATE_CUSTOM.

void dirac::SourceParams::SetFrameRate ( unsigned int  fr_num,
unsigned int  fr_denom 
)
inline

References FRAMERATE_CUSTOM.

void dirac::SourceParams::SetFrameRate ( FrameRateType  fr)
void dirac::SourceParams::SetLeftOffset ( unsigned int  left_offset)
inline
void dirac::SourceParams::SetLumaExcursion ( unsigned int  luma_exc)
inline

References SIGNAL_RANGE_CUSTOM.

void dirac::SourceParams::SetLumaOffset ( unsigned int  luma_offset)
inline

References SIGNAL_RANGE_CUSTOM.

void dirac::SourceParams::SetPixelAspectRatio ( const Rational pix_asr)
inline
void dirac::SourceParams::SetPixelAspectRatio ( unsigned int  pix_as_num,
unsigned int  pix_as_denom 
)
inline
void dirac::SourceParams::SetPixelAspectRatio ( PixelAspectRatioType  pixel_aspect_ratio)
void dirac::SourceParams::SetSignalRange ( SignalRangeType  sr)
void dirac::SourceParams::SetSourceSampling ( unsigned int  source_sampling)
inline
void dirac::SourceParams::SetTopFieldFirst ( bool  tff)
inline
void dirac::SourceParams::SetTopOffset ( unsigned int  top_offset)
inline
void dirac::SourceParams::SetTransferFunctionIndex ( unsigned int  tf)
void dirac::SourceParams::SetVideoFormat ( VideoFormat  vf)
inline
void dirac::SourceParams::SetXl ( unsigned int  xlen)
inline
void dirac::SourceParams::SetYl ( unsigned int  ylen)
inline
SignalRangeType dirac::SourceParams::SignalRangeIndex ( ) const
inline
unsigned int dirac::SourceParams::SourceSampling ( ) const
inline
bool dirac::SourceParams::TopFieldFirst ( ) const
inline
unsigned int dirac::SourceParams::TopOffset ( ) const
inline
TransferFunction dirac::SourceParams::TransferFunctionIndex ( ) const
inline
unsigned int dirac::SourceParams::Xl ( ) const
inline
unsigned int dirac::SourceParams::Yl ( ) const
inline

Member Data Documentation

ChromaFormat dirac::SourceParams::m_cformat
private
unsigned int dirac::SourceParams::m_chroma_excursion
private
unsigned int dirac::SourceParams::m_chroma_offset
private
unsigned int dirac::SourceParams::m_clean_height
private
unsigned int dirac::SourceParams::m_clean_width
private
ColourMatrix dirac::SourceParams::m_col_matrix
private
ColourPrimaries dirac::SourceParams::m_col_primary
private
unsigned int dirac::SourceParams::m_cs_idx
private
FrameRateType dirac::SourceParams::m_fr_idx
private
Rational dirac::SourceParams::m_framerate
private
unsigned int dirac::SourceParams::m_left_offset
private
unsigned int dirac::SourceParams::m_luma_excursion
private
unsigned int dirac::SourceParams::m_luma_offset
private
PixelAspectRatioType dirac::SourceParams::m_pix_asr_idx
private
Rational dirac::SourceParams::m_pixel_aspect_ratio
private
unsigned int dirac::SourceParams::m_source_sampling
private
SignalRangeType dirac::SourceParams::m_sr_idx
private
unsigned int dirac::SourceParams::m_top_offset
private
bool dirac::SourceParams::m_topfieldfirst
private
TransferFunction dirac::SourceParams::m_transfer_func
private
VideoFormat dirac::SourceParams::m_video_format
private
unsigned int dirac::SourceParams::m_xl
private
unsigned int dirac::SourceParams::m_yl
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.