ADTF
3.18.2
|
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...
Static Public Member Functions | |
static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
Sets the default properties to the given pProperties . More... | |
static tResult | IsCompatible (const adtf::streaming::ant::IStreamType &oTypeToCheck, const adtf::streaming::ant::IStreamType &oTypeExpected) |
Compares the oTypeExpected Stream Type with the oTypeToCheck - see Default Stream Meta Types in ADTF for a summary of implementations. More... | |
Static Public Member Functions inherited from stream_meta_type_image | |
static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
Sets the default properties to the given pProperties . More... | |
Additional Inherited Members | |
Static Public Attributes inherited from 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 - see imageformat_definition and Generic Pixel Format. More... | |
static constexpr const tChar *const | MaxByteSize = "max_byte_size" |
Name for the Property of the max byte size. More... | |
static constexpr const tChar *const | PixelWidth = "pixel_width" |
Name for the Property of the pixel width. More... | |
static constexpr const tChar *const | PixelHeight = "pixel_height" |
Name for the Property of the pixel height. More... | |
static constexpr const tChar *const | DataEndianess = "data_endianess" |
Name for the Property of the data endianess (usually pixel endianess). More... | |
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.
Definition at line 102 of file streammetatypeimage.h.
|
static |
Compares the oTypeExpected
Stream Type with the oTypeToCheck
- see Default Stream Meta Types in ADTF for a summary of implementations.
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 |
Definition at line 109 of file streammetatypeimage.h.
References stream_meta_type_image::SetProperties().