The IAAFRGBADescriptor2 interface is implemented by objects which describe video content data formatted using RGBA formatting. More...
Public Member Functions | |
HRESULT | SetPixelLayout ([in] aafUInt32 numberElements,[in] aafRGBAComponent_t *PixelLayoutArray) |
Sets the layout and structure of the components in a single pixel. | |
HRESULT | CountPixelLayoutElements ([out] aafUInt32 *pResult) |
This function returns the number of components in a pixel. | |
HRESULT | GetPixelLayout ([in] aafUInt32 numberElements,[out, size_is(numberElements)] aafRGBAComponent_t *PixelLayoutArray) |
Gets the layout and structure of the components in a single pixel. | |
HRESULT | SetPalette ([in] aafUInt32 numberElements,[in, size_is(numberElements)] aafUInt8 *pPalette) |
Sets the palette property. | |
HRESULT | GetPalette ([in] aafUInt32 numberRecords,[out, size_is(numberRecords)] aafUInt8 *pPalette) |
Sets the palette property. | |
HRESULT | GetPaletteSize ([out] aafUInt32 *pNumberBytes) |
Get the number of bytes in the VideoLineMap property array. | |
HRESULT | CountPaletteLayoutElements ([out] aafUInt32 *pResult) |
This function returns the number of components in a pixel. | |
HRESULT | SetPaletteLayout ([in] aafUInt32 numberElements,[in] aafRGBAComponent_t *PaletteLayoutArray) |
Sets the layout and structure of the components in a single pixel. | |
HRESULT | GetPaletteLayout ([in] aafUInt32 numberElements,[out, size_is(numberElements)] aafRGBAComponent_t *PaletteLayoutArray) |
/// The layout array is an Array of 8 aafRGBAComponent_t. | |
HRESULT | SetComponentMaxRef ([in] aafUInt32 componentMaxRef) |
Sets the ComponentMaxRef property. | |
HRESULT | GetComponentMaxRef ([out] aafUInt32 *pComponentMaxRef) |
Gets the ComponentMaxRef property. | |
HRESULT | SetComponentMinRef ([in] aafUInt32 componentMinRef) |
Sets the ComponentMinRef property. | |
HRESULT | GetComponentMinRef ([out] aafUInt32 *pComponentMinRef) |
Gets the ComponentMinRef property. | |
HRESULT | SetAlphaMaxRef ([in] aafUInt32 alphaMaxRef) |
Sets the AlphaMaxRef property. | |
HRESULT | GetAlphaMaxRef ([out] aafUInt32 *pAlphaMaxRef) |
Gets the AlphaMaxRef property. | |
HRESULT | SetAlphaMinRef ([in] aafUInt32 alphaMinRef) |
Sets the AlphaMinRef property. | |
HRESULT | GetAlphaMinRef ([out] aafUInt32 *pAlphaMinRef) |
Gets the AlphaMinRef property. | |
HRESULT | SetScanningDirection ([in] aafScanningDirection_t scanningDirection) |
Sets the ScanningDirection property. | |
HRESULT | GetScanningDirection ([out] aafScanningDirection_t *pScanningDirection) |
Gets the ScanningDirection property. |
The IAAFRGBADescriptor2 interface is implemented by objects which describe video content data formatted using RGBA formatting.
In addition to the parameters inherited from AAFDigitalImageDescriptor, this interface adds Pixel layout (order of R, B, G, alpha) PixelStructure (sizes of the various components), Palette, Palette Layout, and Palette Structure.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
AAFRESULT_NOT_INITIALIZED
Objects that implement IAAFRGBADescriptor2 also implement the following interfaces:
HRESULT IAAFRGBADescriptor2::CountPaletteLayoutElements | ( | [out] aafUInt32 * | pResult | ) |
This function returns the number of components in a pixel.
Succeeds if all of the following are true:
If this method fails no state is changed.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pResult | [out] Number of components |
HRESULT IAAFRGBADescriptor2::CountPixelLayoutElements | ( | [out] aafUInt32 * | pResult | ) |
This function returns the number of components in a pixel.
Succeeds if all of the following are true:
If this method fails no state is changed.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pResult | [out] Number of components |
HRESULT IAAFRGBADescriptor2::GetAlphaMaxRef | ( | [out] aafUInt32 * | pAlphaMaxRef | ) |
Gets the AlphaMaxRef property.
Succeeds if all of the following are true:
If this method fails, pAlphaMaxRef will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pAlphaMaxRef | [out] Optional. |
HRESULT IAAFRGBADescriptor2::GetAlphaMinRef | ( | [out] aafUInt32 * | pAlphaMinRef | ) |
Gets the AlphaMinRef property.
Succeeds if all of the following are true:
If this method fails, pAlphaMinRef will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pAlphaMinRef | [out] Optional. |
HRESULT IAAFRGBADescriptor2::GetComponentMaxRef | ( | [out] aafUInt32 * | pComponentMaxRef | ) |
Gets the ComponentMaxRef property.
Succeeds if all of the following are true:
If this method fails, pComponentMaxRef will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pComponentMaxRef | [out] Optional. |
HRESULT IAAFRGBADescriptor2::GetComponentMinRef | ( | [out] aafUInt32 * | pComponentMinRef | ) |
Gets the ComponentMinRef property.
Succeeds if all of the following are true:
If this method fails, pComponentMinRef will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pComponentMinRef | [out] Optional. |
HRESULT IAAFRGBADescriptor2::GetPalette | ( | [in] aafUInt32 | numberRecords, |
[out, size_is(numberRecords)] aafUInt8 * | pPalette | ||
) |
Sets the palette property.
The palette must be in the form specified by the palette layout and palette structure parameters. The values are written to the array specified by pPalette, which is of size numberElements. The required size may be found by calling GetPaletteSize().
Succeeds if all of the following are true:
If this method fails, pPalette will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_SMALLBUF
numberRecords | [in] The number of bytes in the array |
pPalette | [out, size_is(numberRecords)] Array to hold the palette information |
HRESULT IAAFRGBADescriptor2::GetPaletteLayout | ( | [in] aafUInt32 | numberElements, |
[out, size_is(numberElements)] aafRGBAComponent_t * | PaletteLayoutArray | ||
) |
/// The layout array is an Array of 8 aafRGBAComponent_t.
The 'Code' field of the struct is from the set:
kAAFCompAlpha
The 'Size' field of the struct is the component size in bits.
If you Get more entries than were set, the extra entries will be padded with kAAFCompNone and a size of zero.
If this method fails, PaletteLayoutArray will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_SMALLBUF
numberElements | [in] The number of elements in each array |
PaletteLayoutArray | [out, size_is(numberElements)] Array to hold 8 aafRGBAComponent_t indicating component order and size. |
HRESULT IAAFRGBADescriptor2::GetPaletteSize | ( | [out] aafUInt32 * | pNumberBytes | ) |
Get the number of bytes in the VideoLineMap property array.
Succeeds if all of the following are true:
If this method fails, *pNumberBytes will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pNumberBytes | [out] The number of bytes in the array |
HRESULT IAAFRGBADescriptor2::GetPixelLayout | ( | [in] aafUInt32 | numberElements, |
[out, size_is(numberElements)] aafRGBAComponent_t * | PixelLayoutArray | ||
) |
Gets the layout and structure of the components in a single pixel.
The layout array is an Array of 8 aafRGBAComponent_t. The 'Code' field of the struct is from the set:
kAAFCompAlpha
The 'Size' field of the struct is the component size in bits.
If you Get more entries than were set, the extra entries will be padded with kAAFCompNone and a size of zero.
If this method fails, PixelLayoutArray will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_SMALLBUF
numberElements | [in] The number of elements in the array |
PixelLayoutArray | [out, size_is(numberElements)] Array to hold up to 8 aafRGBAComponent_t indicating component order and size. |
HRESULT IAAFRGBADescriptor2::GetScanningDirection | ( | [out] aafScanningDirection_t * | pScanningDirection | ) |
Gets the ScanningDirection property.
This property is optional.
Succeeds if all of the following are true:
If this method fails, pScanningDirection not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pScanningDirection | [out] Scanning direction value. |
HRESULT IAAFRGBADescriptor2::SetAlphaMaxRef | ( | [in] aafUInt32 | alphaMaxRef | ) |
Sets the AlphaMaxRef property.
Succeeds if all of the following are true:
If this method fails, the AlphaMaxRef property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
alphaMaxRef | [in] Optional. |
HRESULT IAAFRGBADescriptor2::SetAlphaMinRef | ( | [in] aafUInt32 | alphaMinRef | ) |
Sets the AlphaMinRef property.
Succeeds if all of the following are true:
If this method fails, the AlphaMinRef property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
alphaMinRef | [in] Optional. |
HRESULT IAAFRGBADescriptor2::SetComponentMaxRef | ( | [in] aafUInt32 | componentMaxRef | ) |
Sets the ComponentMaxRef property.
Succeeds if all of the following are true:
If this method fails, the ComponentMaxRef property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
componentMaxRef | [in] Optional. |
HRESULT IAAFRGBADescriptor2::SetComponentMinRef | ( | [in] aafUInt32 | componentMinRef | ) |
Sets the ComponentMinRef property.
Succeeds if all of the following are true:
If this method fails, the ComponentMinRef property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
componentMinRef | [in] Optional. |
HRESULT IAAFRGBADescriptor2::SetPalette | ( | [in] aafUInt32 | numberElements, |
[in, size_is(numberElements)] aafUInt8 * | pPalette | ||
) |
Sets the palette property.
The palette must be in the form specified by the palette layout and palette structure parameters.
Succeeds if all of the following are true:
If this method fails, the palette property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
numberElements | [in] The number of bytes in the array |
pPalette | [in, size_is(numberElements)] Array to hold the palette information |
HRESULT IAAFRGBADescriptor2::SetPaletteLayout | ( | [in] aafUInt32 | numberElements, |
[in] aafRGBAComponent_t * | PaletteLayoutArray | ||
) |
Sets the layout and structure of the components in a single pixel.
The layout array is an Array of 8 aafRGBAComponent_t. The 'Code' field of the struct is from the set:
kAAFCompAlpha
The 'Size' field of the struct is the component size in bits.
If you set less than 8 entries, the remaining entries will be padded with kAAFCompNone and a size of zero. If this method fails the PaletteLayout property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
numberElements | [in] The number of elements in the array |
PaletteLayoutArray | [in] Array of up to 8 bytes indicating component size, matching layout, and terminated by a zero byte. |
HRESULT IAAFRGBADescriptor2::SetPixelLayout | ( | [in] aafUInt32 | numberElements, |
[in] aafRGBAComponent_t * | PixelLayoutArray | ||
) |
Sets the layout and structure of the components in a single pixel.
The layout array is an Array of 8 aafRGBAComponent_t. The 'Code' field of the struct is from the set:
kAAFCompAlpha
The 'Size' field of the struct is the component size in bits.
If you set less than 8 entries, the remaining entries will be padded with kAAFCompNone and a size of zero. If this method fails the PixelLayout property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
numberElements | [in] The number of elements in each array |
PixelLayoutArray | [in] Array of up to 8 aafRGBAComponent_t indicating component order and size. |
HRESULT IAAFRGBADescriptor2::SetScanningDirection | ( | [in] aafScanningDirection_t | scanningDirection | ) |
Sets the ScanningDirection property.
This property is optional.
Succeeds if all of the following are true:
If this method fails, the ScanningDirection property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_AAFRESULT_INVALID_ENUM_VALUE
scanningDirection | [in] Scanning direction value. |