Created by the British Broadcasting Corporation.
Parameters relating to the source material being encoded/decoded.
#include <common.h>
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 |
dirac::SourceParams::SourceParams | ( | const VideoFormat & | vf = VIDEO_FORMAT_CUSTOM , |
bool | set_defaults = true |
||
) |
|
inline |
References m_cformat.
|
inline |
References m_chroma_excursion.
int dirac::SourceParams::ChromaHeight | ( | ) | const |
|
inline |
References m_chroma_offset.
int dirac::SourceParams::ChromaWidth | ( | ) | const |
|
inline |
References m_clean_height.
|
inline |
References m_clean_width.
|
inline |
References m_col_matrix.
|
inline |
References m_col_primary.
|
inline |
References m_cs_idx.
|
inline |
References m_framerate.
|
inline |
References m_fr_idx.
|
inline |
References m_video_format.
|
inline |
References m_left_offset.
|
inline |
References m_luma_excursion.
|
inline |
References m_luma_offset.
|
inline |
References m_pixel_aspect_ratio.
|
inline |
References m_pix_asr_idx.
|
inline |
References m_cformat.
|
inline |
References m_chroma_excursion, m_sr_idx, and SIGNAL_RANGE_CUSTOM.
|
inline |
References m_chroma_offset, m_sr_idx, and SIGNAL_RANGE_CUSTOM.
|
inline |
References m_clean_height.
|
inline |
References m_clean_width.
void dirac::SourceParams::SetColourMatrixIndex | ( | unsigned int | cm | ) |
void dirac::SourceParams::SetColourPrimariesIndex | ( | unsigned int | cp | ) |
void dirac::SourceParams::SetColourSpecification | ( | unsigned int | cs_idx | ) |
|
inline |
References FRAMERATE_CUSTOM, m_fr_idx, and m_framerate.
void dirac::SourceParams::SetFrameRate | ( | FrameRateType | fr | ) |
|
inline |
References FRAMERATE_CUSTOM, dirac::Rational::m_denom, m_fr_idx, m_framerate, and dirac::Rational::m_num.
|
inline |
References m_left_offset.
|
inline |
References m_luma_excursion, m_sr_idx, and SIGNAL_RANGE_CUSTOM.
|
inline |
References m_luma_offset, m_sr_idx, and SIGNAL_RANGE_CUSTOM.
|
inline |
References m_pix_asr_idx, m_pixel_aspect_ratio, and PIXEL_ASPECT_RATIO_CUSTOM.
void dirac::SourceParams::SetPixelAspectRatio | ( | PixelAspectRatioType | pixel_aspect_ratio | ) |
|
inline |
void dirac::SourceParams::SetSignalRange | ( | SignalRangeType | sr | ) |
|
inline |
References m_source_sampling.
|
inline |
References m_topfieldfirst.
|
inline |
References m_top_offset.
void dirac::SourceParams::SetTransferFunctionIndex | ( | unsigned int | tf | ) |
|
inline |
References m_video_format.
|
inline |
References m_xl.
|
inline |
References m_yl.
|
inline |
References m_sr_idx.
|
inline |
References m_source_sampling.
|
inline |
References m_topfieldfirst.
|
inline |
References m_top_offset.
|
inline |
References m_transfer_func.
|
inline |
References m_xl.
|
inline |
References m_yl.
|
private |
Referenced by CFormat(), and SetCFormat().
|
private |
Referenced by ChromaExcursion(), and SetChromaExcursion().
|
private |
Referenced by ChromaOffset(), and SetChromaOffset().
|
private |
Referenced by CleanHeight(), and SetCleanHeight().
|
private |
Referenced by CleanWidth(), and SetCleanWidth().
|
private |
Referenced by ColourMatrixIndex().
|
private |
Referenced by ColourPrimariesIndex().
|
private |
Referenced by ColourSpecificationIndex().
|
private |
Referenced by FrameRateIndex(), and SetFrameRate().
|
private |
Referenced by FrameRate(), and SetFrameRate().
|
private |
Referenced by LeftOffset(), and SetLeftOffset().
|
private |
Referenced by LumaExcursion(), and SetLumaExcursion().
|
private |
Referenced by LumaOffset(), and SetLumaOffset().
|
private |
Referenced by PixelAspectRatioIndex(), and SetPixelAspectRatio().
|
private |
Referenced by PixelAspectRatio(), and SetPixelAspectRatio().
|
private |
Referenced by SetSourceSampling(), and SourceSampling().
|
private |
Referenced by SetChromaExcursion(), SetChromaOffset(), SetLumaExcursion(), SetLumaOffset(), and SignalRangeIndex().
|
private |
Referenced by SetTopOffset(), and TopOffset().
|
private |
Referenced by SetTopFieldFirst(), and TopFieldFirst().
|
private |
Referenced by TransferFunctionIndex().
|
private |
Referenced by GetVideoFormat(), and SetVideoFormat().
© 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.