|
ADTF
|
Use this Stream Meta Type for describing a video stream with single frames and there format and set the values with set_stream_type_image_format. More...
#include <streammetatypeimage.h>
Inherits adtf::streaming::ant::stream_meta_type_image.
Static Public Member Functions | |
| static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
| static tResult | IsCompatible (const adtf::streaming::ant::IStreamType &oTypeToCheck, const adtf::streaming::ant::IStreamType &oTypeExpected) |
Compares the oTypeExpected Stream Type with the oTypeToCheck. | |
Static Public Member Functions inherited from adtf::streaming::ant::stream_meta_type_image | |
| static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
Additional Inherited Members | |
Static Public Attributes inherited from adtf::streaming::ant::stream_meta_type_image | |
| static constexpr const tChar *const | MetaTypeName = "adtf/image" |
| StreamMetaTypeName for imagetype (video stream). | |
| static constexpr const tChar *const | FormatName = "format_name" |
| Name for the Property of the format name. | |
| static constexpr const tChar *const | MaxByteSize = "max_byte_size" |
| Name for the Property of the max byte size. | |
| static constexpr const tChar *const | PixelWidth = "pixel_width" |
| Name for the Property of the pixel width. | |
| static constexpr const tChar *const | PixelHeight = "pixel_height" |
| Name for the Property of the pixel height. | |
| static constexpr const tChar *const | DataEndianess = "data_endianess" |
| Name for the Property of the data endianess (usually pixel endianess). | |
Use this Stream Meta Type for describing a video stream with single frames and there format and set the values with set_stream_type_image_format.
Concept template to create the "adtf/image" Stream Meta Type for the generator template stream_meta_type.
|
static |
Compares the oTypeExpected Stream Type with the oTypeToCheck.
This implementation of IsCompatible will accept all other Meta Types and will return ERR_NOERROR only if:
If a format is set, each property value describing the format must be equal except MaxByteSize which follows thease rules:
0 in oTypeExpected - it is dynamic and will be accepted oTypeExpected than in oTypeToCheck -> it will fit for any prellocations and will be accepted oTypeExpected is lower than in oTypeToCheck -> it is not compatible 0 in oTypeToCheck, we need also 0 in oTypeExpected to be compatible
If no format was set, it will return ERR_NOERROR only if the MetaTypeName is equal independently by properties content.
| [in] | oTypeToCheck | The incoming type to check. |
| [in] | oTypeExpected | The expected type which values are more significant. |
| ERR_NOERROR | types are compatible |
|
inlinestatic |
Sets the default properties to the given pProperties.
| pProperties | The properties where to set the default properties to |