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 | |
VideoFormat | GetVideoFormat () const |
Returns video-format. | |
unsigned int | Xl () const |
Returns the picture width. | |
unsigned int | Yl () const |
Returns the picture height. | |
ChromaFormat | CFormat () const |
Returns the chroma format of the sequence (420, 422, 444) | |
int | ChromaWidth () const |
Returns the chroma width. | |
int | ChromaHeight () const |
Returns the chroma height. | |
unsigned int | SourceSampling () const |
Returns the source sampling field of the source scan format. | |
bool | TopFieldFirst () const |
Returns true if top field comes first in time. | |
Rational | FrameRate () const |
Return the number for frames per second. | |
FrameRateType | FrameRateIndex () const |
Return the type from the frame rate table. | |
Rational | PixelAspectRatio () const |
Return the pixel aspect ratio. | |
PixelAspectRatioType | PixelAspectRatioIndex () const |
Return the type from the pixel aspect ratio table. | |
unsigned int | CleanWidth () const |
Return the Clean area width. | |
unsigned int | CleanHeight () const |
Return the Clean area height. | |
unsigned int | LeftOffset () const |
Return the Clean area left offset. | |
unsigned int | TopOffset () const |
Return the Clean area top offset. | |
SignalRangeType | SignalRangeIndex () const |
Return the type from the signal range table. | |
unsigned int | LumaOffset () const |
Return the luma offset. | |
unsigned int | LumaExcursion () const |
Return the luma excursion. | |
unsigned int | ChromaOffset () const |
Return the chroma offset. | |
unsigned int | ChromaExcursion () const |
Return the chroma excursion. | |
unsigned int | ColourSpecificationIndex () const |
Return the index into the colour specification table. | |
ColourPrimaries | ColourPrimariesIndex () const |
Return the colour primaries index. | |
ColourMatrix | ColourMatrixIndex () const |
Return the colour matrix index. | |
TransferFunction | TransferFunctionIndex () const |
Return the transfer function index. | |
void | SetXl (unsigned int xlen) |
Sets the picture width. | |
void | SetYl (unsigned int ylen) |
Sets the picture height. | |
void | SetCFormat (ChromaFormat cf) |
Sets the chroma format (Y only, 420, 422 etc) | |
void | SetSourceSampling (unsigned int source_sampling) |
Set if the source sampling field of the scan format. | |
void | SetTopFieldFirst (bool tff) |
Set Topfield first. True if top field comes first in time. | |
void | SetVideoFormat (VideoFormat vf) |
Sets the video format. | |
void | SetFrameRate (const Rational &frate) |
Set the frame rate. | |
void | SetFrameRate (unsigned int fr_num, unsigned int fr_denom) |
Set the frame rate. | |
void | SetFrameRate (FrameRateType fr) |
Set the frame rate. | |
void | SetPixelAspectRatio (const Rational &pix_asr) |
Set the pixel aspect ratio. | |
void | SetPixelAspectRatio (unsigned int pix_as_num, unsigned int pix_as_denom) |
Set the pixel aspect ratio. | |
void | SetPixelAspectRatio (PixelAspectRatioType pixel_aspect_ratio) |
Set the Pixel Aspect Ratio. | |
void | SetCleanWidth (unsigned int clean_width) |
Set the Clean area width. | |
void | SetCleanHeight (unsigned int clean_height) |
Set the Clean area height. | |
void | SetLeftOffset (unsigned int left_offset) |
Set the Clean area left offset. | |
void | SetTopOffset (unsigned int top_offset) |
Set the Clean area top offset. | |
void | SetSignalRange (SignalRangeType sr) |
Set the Signal Range parameters. | |
void | SetLumaOffset (unsigned int luma_offset) |
Set the luma offset. | |
void | SetLumaExcursion (unsigned int luma_exc) |
Set the luma excursion. | |
void | SetChromaOffset (unsigned int chroma_off) |
Set the chroma offset. | |
void | SetChromaExcursion (unsigned int chroma_exc) |
Set the chroma excursion. | |
void | SetColourSpecification (unsigned int cs_idx) |
Set the Colour specification. | |
void | SetColourPrimariesIndex (unsigned int cp) |
Set the colour primaries index. | |
void | SetColourMatrixIndex (unsigned int cm) |
Set the colour matrix index. | |
void | SetTransferFunctionIndex (unsigned int tf) |
Set the transfer function index. |
Private Attributes | |
VideoFormat | m_video_format |
Video-format. | |
unsigned int | m_xl |
Width of video. | |
unsigned int | m_yl |
Height of video. | |
ChromaFormat | m_cformat |
Presence of chroma and/or chroma sampling structure. | |
unsigned int | m_source_sampling |
Source sampling field : 0 - progressive, 1 - interlaced. | |
bool | m_topfieldfirst |
If m_source_sampling=1, true if the top field is first in temporal order. | |
FrameRateType | m_fr_idx |
Index into frame rate table. | |
Rational | m_framerate |
Frame Rate i.e number of frames per second. | |
PixelAspectRatioType | m_pix_asr_idx |
Index into pixel aspect ratio table. | |
Rational | m_pixel_aspect_ratio |
Pixel Aspect Ratio. | |
unsigned int | m_clean_width |
Clean area width. | |
unsigned int | m_clean_height |
Clean area height. | |
unsigned int | m_left_offset |
Clean area left offset. | |
unsigned int | m_top_offset |
Clean area top offset. | |
SignalRangeType | m_sr_idx |
Index into signal range table. | |
unsigned int | m_luma_offset |
Luma offset. | |
unsigned int | m_luma_excursion |
Luma excursion. | |
unsigned int | m_chroma_offset |
Chroma offset. | |
unsigned int | m_chroma_excursion |
Chroma excursion. | |
unsigned int | m_cs_idx |
Index into colour spec table. | |
ColourPrimaries | m_col_primary |
Colour Primaries Index. | |
ColourMatrix | m_col_matrix |
TransferFunction | m_transfer_func |
dirac::SourceParams::SourceParams | ( | const VideoFormat & | vf = VIDEO_FORMAT_CUSTOM, |
bool | set_defaults = true ) |
|
inline |
|
inline |
int dirac::SourceParams::ChromaHeight | ( | ) | const |
|
inline |
int dirac::SourceParams::ChromaWidth | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void dirac::SourceParams::SetColourMatrixIndex | ( | unsigned int | cm | ) |
void dirac::SourceParams::SetColourPrimariesIndex | ( | unsigned int | cp | ) |
void dirac::SourceParams::SetColourSpecification | ( | unsigned int | cs_idx | ) |
|
inline |
void dirac::SourceParams::SetFrameRate | ( | FrameRateType | fr | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void dirac::SourceParams::SetPixelAspectRatio | ( | PixelAspectRatioType | pixel_aspect_ratio | ) |
|
inline |
void dirac::SourceParams::SetSignalRange | ( | SignalRangeType | sr | ) |
|
inline |
|
inline |
|
inline |
void dirac::SourceParams::SetTransferFunctionIndex | ( | unsigned int | tf | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
© 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.