Storage and utility class for AJA_PixelFormat defines. This class provides a means of storing and querying facts about the various AJA_PixelFormat values.
More...
#include "streams/common/pixelformat.h"
|
static uint32_t | QueryBitDepth (AJA_PixelFormat format) |
|
static AJASubSampleType | QuerySubSampleType (AJA_PixelFormat format) |
|
static uint32_t | QueryPlaneCount (AJA_PixelFormat format) |
|
static bool | QueryIsValid (AJA_PixelFormat format) |
|
static int | QueryNumberPossibleFormats () |
|
static bool | QueryFormatAtIndex (int index, AJAPixelFormat &fmt) |
|
static bool | QueryIsScalable (uint32_t bitmapWidth, uint32_t wireWidth, uint32_t xAspect, uint32_t yAspect, AJA_PixelFormat *pMatchingFormat, AJA_PixelFormat *pScalingFormat) |
|
static bool | ConvertWidth (AJAScaleType scaleType, int xIn, int &xOut) |
|
static bool | ConvertAspect (AJAScaleType scaleType, int hIn, int vIn, int &hOut, int &vOut) |
|
static bool | QueryScaleType (int xWire, int xBitmap, AJA_PixelFormat &primaryFormat, AJAScaleType &scaleType) |
|
static int | QueryFullScaleWidth (int scaledWidth, int height) |
|
static AJA_PixelFormat | QueryScaledPixelFormat (int scaledWidth, int height) |
|
Storage and utility class for AJA_PixelFormat defines. This class provides a means of storing and querying facts about the various AJA_PixelFormat values.
Definition at line 43 of file pixelformat.h.
◆ AJAPixelFormat() [1/2]
AJAPixelFormat::AJAPixelFormat |
( |
| ) |
|
◆ AJAPixelFormat() [2/2]
◆ ~AJAPixelFormat()
AJAPixelFormat::~AJAPixelFormat |
( |
| ) |
|
|
virtual |
◆ ConvertAspect()
bool AJAPixelFormat::ConvertAspect |
( |
AJAScaleType |
scaleType, |
|
|
int |
hIn, |
|
|
int |
vIn, |
|
|
int & |
hOut, |
|
|
int & |
vOut |
|
) |
| |
|
static |
Static method to convert aspect ratio from wire to bitmap
- Parameters
-
[in] | scaleType | Type of scaling to be done |
[in] | hIn | Horizontal value to convert |
[in] | vIn | Vertical value to convert |
[out] | hOut | Converted horizontal value |
[out] | vOut | Converted vertical value |
- Returns
- True if conversion occurred
Definition at line 304 of file pixelformat.cpp.
◆ ConvertWidth()
bool AJAPixelFormat::ConvertWidth |
( |
AJAScaleType |
scaleType, |
|
|
int |
xIn, |
|
|
int & |
xOut |
|
) |
| |
|
static |
Static method to convert scaled x resolution
- Parameters
-
[in] | scaleType | type of scaling to be done |
[in] | xIn | either the wire or bitmap resolution |
[out] | xOut | the corrected resolution |
- Returns
- returns true if conversion occurred
Definition at line 252 of file pixelformat.cpp.
◆ Query()
Query current format value.
- Returns
- current AJA_PixelFormat value.
Definition at line 111 of file pixelformat.cpp.
◆ QueryBitDepth() [1/2]
uint32_t AJAPixelFormat::QueryBitDepth |
( |
| ) |
|
Query max bit depth per component for specified format
- Returns
- bit depth per component for specified format
Definition at line 131 of file pixelformat.cpp.
◆ QueryBitDepth() [2/2]
◆ QueryDisplayName()
const char * AJAPixelFormat::QueryDisplayName |
( |
void |
| ) |
|
Query display name.
- Returns
- current display name.
Definition at line 121 of file pixelformat.cpp.
◆ QueryFormatAtIndex()
bool AJAPixelFormat::QueryFormatAtIndex |
( |
int |
index, |
|
|
AJAPixelFormat & |
fmt |
|
) |
| |
|
static |
Static method to get a format out of table of all possible formats
- Parameters
-
[in] | index | Zero-based index value. |
[out] | fmt | Receives format for index. Unmodified if index out of bounds. |
- Returns
- true if index within bounds
Definition at line 187 of file pixelformat.cpp.
◆ QueryFourCC()
uint32_t AJAPixelFormat::QueryFourCC |
( |
void |
| ) |
|
Query current fourCC value.
- Returns
- current FourCC value.
Definition at line 116 of file pixelformat.cpp.
◆ QueryFullScaleWidth()
int AJAPixelFormat::QueryFullScaleWidth |
( |
int |
scaledWidth, |
|
|
int |
height |
|
) |
| |
|
static |
Static method to provide expanded width for width-scaled rasters (e.g. DVCPro, HDV)
- Parameters
-
[in] | scaledWidth | width of scaled raster prior to full-width video expansion |
[in] | height | height of scaled raster |
- Returns
- returns expanded width if input raster size matches known scaled raster type, otherwise returns input (scaledWidth)
Definition at line 357 of file pixelformat.cpp.
◆ QueryIsScalable()
bool AJAPixelFormat::QueryIsScalable |
( |
uint32_t |
bitmapWidth, |
|
|
uint32_t |
wireWidth, |
|
|
uint32_t |
xAspect, |
|
|
uint32_t |
yAspect, |
|
|
AJA_PixelFormat * |
pMatchingFormat, |
|
|
AJA_PixelFormat * |
pScalingFormat |
|
) |
| |
|
static |
Static method to see if a source and target resolution are scalable
- Parameters
-
[in] | bitmapWidth | width of the bitmap in PC memory |
[in] | wireWidth | width of the bitmap in Kona memory |
[in] | xAspect | Horizontal component of aspect ratio |
[in] | yAspect | Vertical component of aspect ratio |
[in] | pMatchingFormat | Pixel format used for matching |
[out] | pScalingFormat | Receives scaling pixel format |
- Returns
- returns true if one of the pixel formats will suffice for scaling
Definition at line 201 of file pixelformat.cpp.
◆ QueryIsValid() [1/2]
bool AJAPixelFormat::QueryIsValid |
( |
| ) |
|
Query is valid
- Returns
- true if AJA pixel format is valid
Definition at line 167 of file pixelformat.cpp.
◆ QueryIsValid() [2/2]
◆ QueryNumberPossibleFormats()
int AJAPixelFormat::QueryNumberPossibleFormats |
( |
| ) |
|
|
static |
Static method to get number of possible formats Useful for filling out GUI's
- Returns
- number of possible formats
Definition at line 182 of file pixelformat.cpp.
◆ QueryPlaneCount() [1/2]
uint32_t AJAPixelFormat::QueryPlaneCount |
( |
| ) |
|
◆ QueryPlaneCount() [2/2]
◆ QueryRgb()
bool AJAPixelFormat::QueryRgb |
( |
void |
| ) |
|
Query RGB.
- Returns
- whether or not current format is RGB.
Definition at line 126 of file pixelformat.cpp.
◆ QueryScaledPixelFormat()
AJA_PixelFormat AJAPixelFormat::QueryScaledPixelFormat |
( |
int |
scaledWidth, |
|
|
int |
height |
|
) |
| |
|
static |
Static method to provide associated pixel format (e.g. DVCPro, HDV)
- Parameters
-
[in] | scaledWidth | width of scaled raster prior to full-width video expansion |
[in] | height | height of scaled raster |
- Returns
- returns associated pixel format
Definition at line 374 of file pixelformat.cpp.
◆ QueryScaleType() [1/2]
Static method to provide a suggested scaling type and primary pixel format
- Parameters
-
[in] | xWire | wire resolution |
[in] | xBitmap | bitmap resolution |
[out] | primaryFormat | unscaled pixel format |
[out] | scaleType | type of scaling that needs to occur |
- Returns
- returns true if conversion occurred
Definition at line 330 of file pixelformat.cpp.
◆ QueryScaleType() [2/2]
Query Scale Type.
- Returns
- what type of scale format uses if any.
Definition at line 177 of file pixelformat.cpp.
◆ QuerySubSampleType() [1/2]
Query chroma sub-sample type
- Returns
- chroma sub-sample type
Definition at line 143 of file pixelformat.cpp.
◆ QuerySubSampleType() [2/2]
◆ Set()
Set current format value.
- Parameters
-
[in] | format | new AJA_PixelFormat. |
Definition at line 104 of file pixelformat.cpp.
◆ m_format
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/common/pixelformat.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/common/pixelformat.cpp