|
ADTF
|
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0. More...
Namespaces | |
| namespace | detail |
| Namespace for all internally used functionality implemented. | |
| namespace | imageformat_definition |
| Namespace to sort pixelformat descriptions. | |
Typedefs | |
| using | cDynamicSampleReader = sample_reader<cDynamicSampleReaderQueue> |
| The cDynamicSampleReader will create a sample reader which will create a internal sample queue with unlimited size. | |
| template<tTimeStamp TIME_RANGE, bool STORELASTSAMPLE = true> | |
| using | time_limited_sample_reader = sample_reader<time_limited_sample_reader_queue<TIME_RANGE>, STORELASTSAMPLE> |
| template<size_t MAX_SIZE, bool STORELASTSAMPLE = true> | |
| using | size_limited_sample_reader = sample_reader<size_limited_sample_reader_queue<MAX_SIZE>, STORELASTSAMPLE> |
| using | cSingleSampleReader = size_limited_sample_reader<1> |
| The cSingleSampleReader will create a sample reader which will create a internal sample queue with only one sample which holds the last received sample always. | |
| typedef adtf_util::stack_string_base< ADTF_STREAMING_DEFAULT_SIZE_OF_STREAM_IMAGE_FORMATNAME, adtf_util::assert_out_of_range > | cStreamFormatStorageType |
| formatname storage type (max byte size defined by ADTF_STREAMING_DEFAULT_SIZE_OF_STREAM_IMAGE_FORMATNAME) | |
| typedef adtf_util::string_base< cStreamFormatStorageType > | tStreamImageFormatName |
| formatname type as stack string (max byte size defined by ADTF_STREAMING_DEFAULT_SIZE_OF_STREAM_IMAGE_FORMATNAME) | |
Functions | |
| template<typename DATABINDING_BEHAVIOUR_CLASS> | |
| tResult | create_inner_pipe (DATABINDING_BEHAVIOUR_CLASS &oComponent, adtf_util::cStringList lstItems) |
| template<typename DATABINDING_BEHAVIOUR_CLASS, typename RUN_FUNC> | |
| tResult | create_inner_pipe (DATABINDING_BEHAVIOUR_CLASS &oComponent, const adtf_util::cString &strNameOfRunner, const adtf_util::cString &strSource, RUN_FUNC &&oRunFunc) |
| template<typename INTERFACE> | |
| tResult | create_server (cFilterBase &oFilter, const char *strServerName, const adtf::ucom::iobject_ptr< INTERFACE > &pServerInterface) |
| template<typename INTERFACE> | |
| tResult | create_client (cFilterBase &oFilter, const char *strClientName) |
| tResult | create_runner (cFilterBase &oFilter, const char *strNameOfRunner, adtf::base::ant::IRunnable &oRunnable) |
| tResult | get_named_graph_object_from_graph (IGraph &oGraph, const char *strName, ucom::ant::iobject_ptr< ucom::ant::IObject > &pObjectFound) |
| adtf_util::cString | get_named_graph_object_full_name (const INamedGraphObject &oGraphObject) |
| adtf_util::cString | get_named_graph_object_full_name (const INamedGraphObject &oGraphObject, const char *strSeperator) |
| template<typename DATA_BINDING_IMPL_TYPE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleWriter &oWriter, const char *strNameOfWriterAndPin, const ucom::iobject_ptr< const IStreamType > &pStreamType, ucom::iobject_ptr< IOutPin > &pPinCreated) |
| template<typename DATA_BINDING_IMPL_TYPE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleWriter &oWriter, const char *strNameOfWriterAndPin, const adtf::ucom::iobject_ptr< const IStreamType > &pStreamType) |
| template<typename DATA_BINDING_IMPL_TYPE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleWriter &oWriter, const char *strNameOfWriterAndPin, const adtf::ucom::iobject_ptr< IStreamType > &pStreamType) |
| template<typename DATA_BINDING_IMPL_TYPE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleReader &oReader, const char *strNameOfReaderAndPin, const ucom::iobject_ptr< const IStreamType > &pStreamType, ucom::iobject_ptr< IInPin > &pPinCreated) |
| template<typename DATA_BINDING_IMPL_TYPE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleReader &oReader, const char *strNameOfReaderAndPin, const ucom::iobject_ptr< const IStreamType > &pStreamType) |
| template<typename DATA_BINDING_IMPL_TYPE> | |
| tResult | create_pin (DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleReader &oReader, const char *strNameOfReaderAndPin, const adtf::ucom::iobject_ptr< IStreamType > &pStreamType) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSampleObject, const char *strSampleCID) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample, const char *strSampleCID, tTimeStamp nTimeStamp) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ISample > &pSample) |
| tResult | alloc_sample (ucom::ant::iobject_ptr< ISample > &pSample, tTimeStamp nTimeStamp) |
| template<typename T> | |
| tResult | read_from_sample (const ISample &oSample, T &oValue) |
| template<typename T> | |
| tResult | write_to_sample (ISample &oSample, const T &oValue) |
| tResult | get_default_buffer_factory (adtf::ucom::iobject_ptr< ISampleBufferFactory > &pFactory) |
| tResult | get_reference_buffer_factory (adtf::ucom::iobject_ptr< ISampleBufferFactory > &pFactory) |
| adtf::util::cVariant | get_sample_info (const ISampleInfo &oSampleInfo, const ISampleInfo::tHashKey &oHash, const adtf::util::cVariant oDefault) |
| adtf::util::cVariant | get_sample_info (const ISampleInfo &oSampleInfo, const ISampleInfo::tHashKey &oHash) |
| adtf::util::cVariant | get_sample_info (const ISample &oSample, const ISampleInfo::tHashKey &oHash, const adtf::util::cVariant oDefault) |
| adtf::util::cVariant | get_sample_info (const ISample &oSample, const ISampleInfo::tHashKey &oHash) |
| tResult | set_sample_info (ISampleInfo &oSampleInfo, const ISampleInfo::tHashKey &oHash, const adtf::util::cVariant oValue) |
| tResult | set_sample_info (ISample &oSample, const ISampleInfo::tHashKey &oHash, const adtf::util::cVariant oValue) |
| ISampleInfo::tHashKey | create_sample_info_hash_key (const char *strToHash) |
| const ISampleInStream & | operator>> (const ISampleInStream &oStreamReader, IStreamItem &oItem) |
| ISampleOutStream & | operator<< (ISampleOutStream &oStreamWriter, const adtf::ucom::ant::iobject_ptr< const ISample > &pSample) |
| ISampleOutStream & | operator<< (ISampleOutStream &oStreamWriter, const adtf::ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
| ISampleOutStream & | operator<< (ISampleOutStream &oStreamWriter, const adtf::ucom::ant::iobject_ptr< IStreamType > &pStreamType) |
| ISampleOutStream & | operator<< (ISampleOutStream &oStreamWriter, ISampleOutStream &(*pStreamfunc)(ISampleOutStream &)) |
| ISampleOutStream & | operator<< (ISampleOutStream &oStreamWriter, const tResult &oErr) |
| cSampleReader & | operator>> (cSampleReader &oSampleReader, ucom::ant::iobject_ptr< const ISample > &pSample) |
| template<typename DATATYPE> | |
| cSampleReader & | operator>> (cSampleReader &oSampleReader, sample_data< DATATYPE > &oSampleData) |
| cSampleReader & | operator>> (cSampleReader &oSampleReader, ucom::ant::iobject_ptr< const IStreamType > &pType) |
| cSampleReader & | operator>> (cSampleReader &oSampleReader, cSampleReader &(*pStreamfunc)(cSampleReader &)) |
| tResult | make_sample_reader (cSampleReader &oReader, const char *strNameOfReader, const ucom::iobject_ptr< const IStreamType > &pStreamType) |
| cSampleWriter & | operator<< (cSampleWriter &oSampleWriter, const ucom::ant::iobject_ptr< const ISample > &pSample) |
| cSampleWriter & | operator<< (cSampleWriter &oSampleWriter, const ucom::ant::iobject_ptr< ISample > &pSample) |
| cSampleWriter & | operator<< (cSampleWriter &oSampleWriter, const ucom::ant::iobject_ptr< const IStreamType > &pType) |
| cSampleWriter & | operator<< (cSampleWriter &oSampleWriter, cSampleWriter &(*pStreamfunc)(cSampleWriter &)) |
| cSampleWriter & | operator<< (cSampleWriter &oSampleWriter, const tResult &oError) |
| template<typename DATA_TYPE> | |
| sample_writer< DATA_TYPE > & | operator<< (sample_writer< DATA_TYPE > &oSampleWriter, const DATA_TYPE &oSampleData) |
| cSampleReader & | operator>> (cSampleReader &oSampleReader, cSampleWriter &oSampleWriter) |
| tResult | make_sample_writer (cSampleWriter &oWriter, const char *strNameOfWriter, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
| bool | operator!= (const tStreamImageFormat &sLeft, const tStreamImageFormat &sRight) |
| bool | operator== (const tStreamImageFormat &sLeft, const tStreamImageFormat &sRight) |
| ADTF_DEFINE_STREAM_IMAGE_FORMAT (RGB_8, "R(3)G(3)B(2)") ADTF_DEFINE_STREAM_IMAGE_FORMAT(RGB_555 | |
| Format definition. | |
| R (5) G(5) B(5)(1)") ADTF_DEFINE_STREAM_IMAGE_FORMAT(RGB_565 | |
| Format definition. | |
| R (8) G(8) B(8)") ADTF_DEFINE_STREAM_IMAGE_FORMAT(BGR_24 | |
| Format definition. | |
| B (8) G(8) R(8)") ADTF_DEFINE_STREAM_IMAGE_FORMAT(RGB_32 | |
| A (8) B(8) G(8) R(8)") ADTF_DEFINE_STREAM_IMAGE_FORMAT(ARGB_32 | |
| A (8) R(8) G(8) B(8)") bool stream_image_format_is_generic_greyscale( const tStreamImageFormat & strFormat) | |
| Format definition. | |
| bool | stream_image_format_is_generic_rgb (const tStreamImageFormat &strFormat) |
| bool | stream_image_format_is_generic (const tStreamImageFormat &strFormat) |
| unsigned int | stream_image_format_get_generic_pixel_size (const tStreamImageFormat &strFormat) |
| uint32_t | stream_image_format_get_generic_mask (const char *strChannel, const tStreamImageFormat &strFormat) |
| template<typename WRITER_TYPE> | |
| WRITER_TYPE & | flush (WRITER_TYPE &oWriter) |
| template<typename WRITER_TYPE> | |
| WRITER_TYPE & | trigger (WRITER_TYPE &oWriter) |
| tResult | get_streaming_graph_object (const IStreamingGraph &oGraph, ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject) |
| tResult | get_streaming_graph_objects (const IStreamingGraph &oGraph, ucom::ant::iobject_enum< ucom::ant::IObject > &lstObjects) |
| tResult | set_stream_type_image_format (IStreamType &oType, const tStreamImageFormat &oFormat) |
| tResult | get_stream_type_image_format (tStreamImageFormat &oFormat, const IStreamType &oType) |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tBool, "BOOL") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt8, "INT8") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt8, "UINT8") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt16, "INT16") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt16, "UINT16") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt32, "INT32") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt32, "UINT32") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt64, "INT64") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt64, "UINT64") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tFloat32, "FLOAT32") | |
| ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tFloat64, "FLOAT64") | |
| template<typename T> | |
| bool | operator== (const IStreamType &oStreamType, T) |
The equality operator returns true only if the given oStreamType is an instance of the stream_meta_type in T. It will compare the unique meta type name. | |
| template<typename T> | |
| bool | operator!= (const IStreamType &oStreamType, T oValue) |
The not-equality operator returns false only if the given oStreamType is not an instance of the stream_meta_type in T. It will compare the unique meta type name. | |
| bool | operator== (const IStreamType &oStreamTypeLeft, const IStreamType &oStreamTypeRight) |
The equality operator returns true only if the given oStreamTypeLeft has the exact same properties and property values as oStreamTypeRight. This works in both ways. | |
| bool | operator!= (const IStreamType &oStreamTypeLeft, const IStreamType &oStreamTypeRight) |
The not-equality operator returns false only if the given oStreamTypeLeft has the exact same properties and property values as oStreamTypeRight. This works in both ways. | |
| template<typename VALUETYPE> | |
| tResult | set_property (IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oValue) |
| tResult | set_property (IStreamType &oStreamType, const char *strNameOfValue, const char *poValue) |
| template<typename VALUETYPE> | |
| VALUETYPE | get_property (const IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oDefaultValue) |
| template<typename VALUETYPE> | |
| VALUETYPE | get_property (const IStreamType &oStreamType, const char *strNameOfValue) |
| template<typename T, typename std::enable_if_t< flash::is_stream_meta_type< T >::value, int > = 0> | |
| bool | operator== (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType, const T &oValue) |
The equality operator returns true only if the given pStreamType is an instance of the stream_meta_type in T. It will compare the unique meta type name. | |
| template<typename T, typename std::enable_if_t< flash::is_stream_meta_type< T >::value, int > = 0> | |
| bool | operator!= (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType, const T &oValue) |
The equality operator returns true only if the given pStreamType is an instance of the stream_meta_type in T. It will compare the unique meta type name. | |
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
The cDynamicSampleReader will create a sample reader which will create a internal sample queue with unlimited size.
This implementation uses the cDynamicSampleReaderQueue as dynamic sample queue implementation.
| using adtf::streaming::ant::size_limited_sample_reader = sample_reader<size_limited_sample_reader_queue<MAX_SIZE>, STORELASTSAMPLE> |
The size_limited_sample_reader will create a sample reader which will create a internal sample queue that is sample count item limited by the given TimeRange.
| MAX_SIZE | The count in amount of samples (has to be set while compile time!). |
| STORELASTSAMPLE | Option if the last sample received will be hold.
|
| using adtf::streaming::ant::time_limited_sample_reader = sample_reader<time_limited_sample_reader_queue<TIME_RANGE>, STORELASTSAMPLE> |
The time_limited_sample_reader will create a sample reader which will create a internal sample queue that is time limited by the given TimeRange.
| TIME_RANGE | The timerange in micro seconds (has to be set while compile time!). |
| STORELASTSAMPLE | Option if the last sample received will be hold.
|
| adtf::streaming::ant::A | ( | 8 | ) |
Format definition this description means always first in lowest bit of lowest byte
| adtf::streaming::ant::A | ( | 8 | ) | const & |
Format definition.
Format definition this description means always first in lowest bit of lowest byte Check if GREY component is available.
| strFormat | a generic stream image format. |
| adtf::streaming::ant::ADTF_DEFINE_STREAM_IMAGE_FORMAT | ( | RGB_8 | , |
| "R(3)G(3)B(2)" | ) |
Format definition.
BYTE ORDER FORMAT DESCRIPTION Format definition Format definition Format definition Format definition Format definition
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tBool | , |
| "BOOL" | ) |
defines a stream_type_plain for the c-type bool
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tFloat32 | , |
| "FLOAT32" | ) |
defines a stream_type_plain for the c-type float
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tFloat64 | , |
| "FLOAT64" | ) |
defines a stream_type_plain for the c-type double
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tInt16 | , |
| "INT16" | ) |
defines a stream_type_plain for the c-type int16_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tInt32 | , |
| "INT32" | ) |
defines a stream_type_plain for the c-type int32_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tInt64 | , |
| "INT64" | ) |
defines a stream_type_plain for the c-type int64_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tInt8 | , |
| "INT8" | ) |
defines a stream_type_plain for the c-type int8_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tUInt16 | , |
| "UINT16" | ) |
defines a stream_type_plain for the c-type uint16_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tUInt32 | , |
| "UINT32" | ) |
defines a stream_type_plain for the c-type uint32_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tUInt64 | , |
| "UINT64" | ) |
defines a stream_type_plain for the c-type uint64_t
| adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR | ( | tUInt8 | , |
| "UINT8" | ) |
defines a stream_type_plain for the ctype uint8_t
| tResult adtf::streaming::ant::alloc_sample | ( | ucom::ant::iobject_ptr< ISample > & | pSample | ) |
Helper Function to get a ISample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to a ISample if succeeded. The default CID will be the get_class_id<cSample>(). |
| tResult adtf::streaming::ant::alloc_sample | ( | ucom::ant::iobject_ptr< ISample > & | pSample, |
| tTimeStamp | nTimeStamp ) |
Helper Function to get a ISample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to a ISample if succeeded. The default CID will be the get_class_id<cSample>(). |
| nTimeStamp | [in] The timestamp of the sample. |
| tResult adtf::streaming::ant::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSample, |
| const char * | strSampleCID, | ||
| tTimeStamp | nTimeStamp ) |
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
| pSample | [in, out] object_ptr to of Sample if succeeded. Due to the unknown interface you want receive it is provided as object_ptr<IObject>. |
| strSampleCID | [in] Sample object identifier (class id) of the sample class. If strSampleOID is empty then the get_class_id<cSample>() will be used. |
| nTimeStamp | [in] The timestamp of the sample. |
| tResult adtf::streaming::ant::alloc_sample | ( | ucom::ant::iobject_ptr< ucom::ant::IObject > & | pSampleObject, |
| const char * | strSampleCID ) |
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
| pSampleObject | [in, out] object_ptr to of Sample if succeeded. Due to the unknown interface you want receive it is provided as object_ptr<IObject>. |
| strSampleCID | [in] Sample object identifier (class id) of the sample class. If strSampleOID is empty then the get_class_id<cSample>() will be used. |
| adtf::streaming::ant::B | ( | 8 | ) |
Format definition this description means always first in lowest bit of lowest byte
| tResult adtf::streaming::ant::create_client | ( | cFilterBase & | oFilter, |
| const char * | strClientName ) |
Creates a binding client object for the given INTERFACE type and register it on the cFilterBase instance
| INTERFACE | The IObject interface you want to register the binding client object for |
| [in] | oFilter | filter instance to register the client object to |
| [in] | strClientName | name of the object to register |
|
inline |
Creates a trigger pipe and registers it at the given oFilter instance.
You can use an initializer list for the lstItems as follow:
This function will create a pipe where the "my_fancy_runner" will be called from "in_pin_1" if some a synchronous DataTrigger is received. "my_fanc_runner" will read data from "in_pin_1" by its Readers (or do something else) and writes data to the "out_pin_1". If the "my_fancy_runner" returns it will forward a synchronous DataTrigger to "out_pin_1".
| [in] | oComponent | databinding and runtime behavior instance where to register the trigger pipe. |
| [in] | lstItems | list of items of the trigger pipe. These items can be a registered Pin of the oFilter or a Runner of oFilter. |
| ERR_NOT_FOUND | A given name is not a Pin (InPin or OutPin) or a Runner registered on oFilter. |
| tResult adtf::streaming::ant::create_inner_pipe | ( | DATABINDING_BEHAVIOUR_CLASS & | oComponent, |
| const adtf_util::cString & | strNameOfRunner, | ||
| const adtf_util::cString & | strSource, | ||
| RUN_FUNC && | oRunFunc ) |
Creates a trigger pipe and registers it at the given oFilter instance.
You can call this function like this:
This function will create a pipe where the "my_fancy_runner" will be called from "in_pin_1" if some synchronous DataTrigger is received. "my_fancy_runner" will then trigger the Read functor to handle that event (e.g. read in the data sample).
| [in] | oComponent | databinding and runtime behavior instance where to register the trigger pipe. |
| [in] | strNameOfRunner | name of the runner |
| [in] | strSource | name of the source where the trigger is receive from |
| [in] | oRunFunc | function to call if trigger is received |
| ERR_NOT_FOUND | A given name is not a Pin (InPin or OutPin) or a Runner registered on oFilter. |
| tResult adtf::streaming::ant::create_pin | ( | DATA_BINDING_IMPL_TYPE & | oDataBindingImpl, |
| cSampleReader & | oReader, | ||
| const char * | strNameOfReaderAndPin, | ||
| const adtf::ucom::iobject_ptr< IStreamType > & | pStreamType ) |
Creates a cInPin and registers it at the given oDataBindingImpl instance.
| DATA_BINDING_IMPL_TYPE | concrete type of a IDataBinding implementation. |
| [in] | oDataBindingImpl | FileBase instance where to register the InPin. |
| [in] | oReader | SampleReader which will be registerd at the cInpin as ISampleStreamer |
| [in] | strNameOfReaderAndPin | The Pin Name to set on the InPin. Also the SampleReaders Name will be changed. |
| [in] | pStreamType | Type initially set to the Reader. A deep copy is made. |
| tResult adtf::streaming::ant::create_pin | ( | DATA_BINDING_IMPL_TYPE & | oDataBindingImpl, |
| cSampleReader & | oReader, | ||
| const char * | strNameOfReaderAndPin, | ||
| const ucom::iobject_ptr< const IStreamType > & | pStreamType ) |
Creates a cInPin and registers it at the given oDataBindingImpl instance.
| DATA_BINDING_IMPL_TYPE | concrete type of a IDataBinding implementation |
| [in] | oDataBindingImpl | databinding instance where to register the InPin. |
| [in] | oReader | SampleReader which will be registerd at the cInpin as ISampleStreamer |
| [in] | strNameOfReaderAndPin | The Pin Name to set on the InPin. Also the SampleReaders Name will be changed. |
| [in] | pStreamType | Type initially set to the Reader. A deep copy is made. |
| tResult adtf::streaming::ant::create_pin | ( | DATA_BINDING_IMPL_TYPE & | oDataBindingImpl, |
| cSampleReader & | oReader, | ||
| const char * | strNameOfReaderAndPin, | ||
| const ucom::iobject_ptr< const IStreamType > & | pStreamType, | ||
| ucom::iobject_ptr< IInPin > & | pPinCreated ) |
Creates a cInPin and registers it at the given oDataBindingImpl instance.
| DATA_BINDING_IMPL_TYPE | concrete type of a IDataBinding implementation |
| [in] | oDataBindingImpl | databinding implementation instance where to register the InPin. |
| [in] | oReader | SampleReader which will be registerd at the cInpin as ISampleStreamer |
| [in] | strNameOfReaderAndPin | The Pin Name to set on the InPin. Also the SampleReaders Name will be changed. |
| [in] | pStreamType | Type initially set to the Reader. A deep copy is made. |
| [in,out] | pPinCreated | Pin created will be returned |
| tResult adtf::streaming::ant::create_pin | ( | DATA_BINDING_IMPL_TYPE & | oDataBindingImpl, |
| cSampleWriter & | oWriter, | ||
| const char * | strNameOfWriterAndPin, | ||
| const adtf::ucom::iobject_ptr< const IStreamType > & | pStreamType ) |
Creates a cOutPin and registers it at the given oDataBindingImpl instance.
| DATA_BINDING_IMPL_TYPE | implementation type of a data_binding to register pins to Following adtf default types support this:
|
| [in] | oDataBindingImpl | data_binding instance where to register the OutPin. |
| [in] | oWriter | SampleWriter which will be registered at the cOutpin as ISampleWriter |
| [in] | strNameOfWriterAndPin | The Pin name to set on the OutPin. Also the SampleWriters name will be changed. |
| [in] | pStreamType | Type initially set to the writer. A deep copy is made. |
| tResult adtf::streaming::ant::create_pin | ( | DATA_BINDING_IMPL_TYPE & | oDataBindingImpl, |
| cSampleWriter & | oWriter, | ||
| const char * | strNameOfWriterAndPin, | ||
| const adtf::ucom::iobject_ptr< IStreamType > & | pStreamType ) |
Creates a cOutPin and registers it at the given oDataBindingImpl instance.
| DATA_BINDING_IMPL_TYPE | implementation type of a data_binding to register pins to Following adtf default types support this:
|
| [in] | oDataBindingImpl | data_binding instance where to register the OutPin. |
| [in] | oWriter | SampleWriter which will be registered at the cOutpin as ISampleWriter |
| [in] | strNameOfWriterAndPin | The Pin name to set on the OutPin. Also the SampleWriters name will be changed. |
| [in] | pStreamType | Type initially set to the writer. A deep copy is made. |
| tResult adtf::streaming::ant::create_pin | ( | DATA_BINDING_IMPL_TYPE & | oDataBindingImpl, |
| cSampleWriter & | oWriter, | ||
| const char * | strNameOfWriterAndPin, | ||
| const ucom::iobject_ptr< const IStreamType > & | pStreamType, | ||
| ucom::iobject_ptr< IOutPin > & | pPinCreated ) |
Creates a cOutPin and registers it at the given oDataBindingImpl instance.
| DATA_BINDING_IMPL_TYPE | implementation type of a data_binding to register pins to Following adtf default types support this:
|
| [in] | oDataBindingImpl | data_binding instance where to register the OutPin. |
| [in] | oWriter | SampleWriter which will be registered at the cOutpin as ISampleWriter |
| [in] | strNameOfWriterAndPin | The Pin name to set on the OutPin. Also the SampleWriters name will be changed. |
| [in] | pStreamType | Type initially set to the writer. A deep copy is made. |
| [in,out] | pPinCreated | Pin created will be returned |
|
inline |
Creates a runner on the given cFilterBase and connect it to the given Runnable You only need to implement a Runnable
| ISampleInfo::tHashKey adtf::streaming::ant::create_sample_info_hash_key | ( | const char * | strToHash | ) |
Generation of unambigious hash key for a string. This generation is independent to process and platform.
| [in] | strToHash | null terminated string to generate a hash key for. |
strToHash. | tResult adtf::streaming::ant::create_server | ( | cFilterBase & | oFilter, |
| const char * | strServerName, | ||
| const adtf::ucom::iobject_ptr< INTERFACE > & | pServerInterface ) |
Creates a binding server object for the given INTERFACE type and register it on the cFilterBase instance.
| INTERFACE | The IObject interface you want to register the binding server object for. Used to create a IBindingType. |
| [in] | oFilter | filter instance to register the server object to |
| [in] | strServerName | name of the object to register |
| [in] | pServerInterface | INTERFACE implementation instance. This will be the Server Object retrieved by IBindingClient::GetServerObject and IBindingProxy::GetServerObject |
| WRITER_TYPE & adtf::streaming::ant::flush | ( | WRITER_TYPE & | oWriter | ) |
Global function template to flush a writer.
| WRITER_TYPE | Type or sub class of cSampleWriter |
| tResult adtf::streaming::ant::get_default_buffer_factory | ( | adtf::ucom::iobject_ptr< ISampleBufferFactory > & | pFactory | ) |
Creates and gets the default buffer factory (ISampleBufferFactory) based on new/delete. The ISampleBuffer returned by the ISampleBufferFactory::GetBuffer will use new / delete on each ISampleBufferFactory::Resize call.
| [out] | pFactory | The factory returned |
| ERR_POINTER | The factory could not be created due memory allocation error. |
| ERR_INVALID_INTERFACE | The given pFactory did not accept the adtf::ucom::iobject_ptr::Reset call. |
| tResult adtf::streaming::ant::get_named_graph_object_from_graph | ( | IGraph & | oGraph, |
| const char * | strName, | ||
| ucom::ant::iobject_ptr< ucom::ant::IObject > & | pObjectFound ) |
Helper function to retrieve a graph object from a graph with fully qualified unique name of an object.
| [in] | oGraph | The graph instance to get the object from. |
| [in] | strName | The fully qualified named with dots (i.e. "streaminggraph.myfiltergraph.mysubgraph.myfilter") |
| [in,out] | pObjectFound | The object to retrieve |
| adtf_util::cString adtf::streaming::ant::get_named_graph_object_full_name | ( | const INamedGraphObject & | oGraphObject | ) |
Helper function to retrieve a full qualified unique name of an object registered in IFilterGraph.
| [in] | oGraphObject | The object to retrieve the fullname for. |
| adtf_util::cString adtf::streaming::ant::get_named_graph_object_full_name | ( | const INamedGraphObject & | oGraphObject, |
| const char * | strSeperator ) |
Helper function to retrieve a full qualified unique name of an object registered in IFilterGraph.
| [in] | oGraphObject | The object to retrieve the fullname for. |
| [in] | strSeperator | The seperator to use between the parent object names. |
| VALUETYPE adtf::streaming::ant::get_property | ( | const IStreamType & | oStreamType, |
| const char * | strNameOfValue ) |
Gets the property of the given oStreamType.
| VALUETYPE | Type of value returned |
| [in] | oStreamType | StreamType where to get the property |
| [in] | strNameOfValue | name of the property |
| VALUETYPE adtf::streaming::ant::get_property | ( | const IStreamType & | oStreamType, |
| const char * | strNameOfValue, | ||
| VALUETYPE | oDefaultValue ) |
Gets the property of the given oStreamType.
| VALUETYPE | Type of value returned and oDefaultValue |
| [in] | oStreamType | StreamType where to get the property |
| [in] | strNameOfValue | name of the property |
| [in] | oDefaultValue | default value of property if not found. |
| tResult adtf::streaming::ant::get_reference_buffer_factory | ( | adtf::ucom::iobject_ptr< ISampleBufferFactory > & | pFactory | ) |
Creates and gets the a buffer factory that creates sample buffers that do not copy the data, but only keep a reference to it. Use this with EXTREME care!! Keep samples that use these buffers in a adtf::ucom::ant::weak_object_ptr in order to be able to check if they no longer exist before you manipulate the data again.
| [out] | pFactory | The factory returned |
| ERR_POINTER | The factory could not be created due memory allocation error. |
| ERR_INVALID_INTERFACE | The given pFactory did not accept the adtf::ucom::iobject_ptr::Reset call. |
| adtf::util::cVariant adtf::streaming::ant::get_sample_info | ( | const ISample & | oSample, |
| const ISampleInfo::tHashKey & | oHash ) |
Retrieves a variant value for the hash key oHash out of the samples (oSample) sample information. If the value does not exists the return value content is undefined.
| [in] | oSample | The sample to retrieve the value from its sample information. |
| [in] | oHash | The hash key of the value. |
| adtf::util::cVariant adtf::streaming::ant::get_sample_info | ( | const ISample & | oSample, |
| const ISampleInfo::tHashKey & | oHash, | ||
| const adtf::util::cVariant | oDefault ) |
Retrieves a variant value for the hash key oHash out of the samples (oSample) sample information. If the value does not exists the return value is the given defaultoDefault.
| [in] | oSample | The sample to retrieve the value from its sample information. |
| [in] | oHash | The hash key of the value. |
| [in] | oDefault | default value if value does not exist. |
| adtf::util::cVariant adtf::streaming::ant::get_sample_info | ( | const ISampleInfo & | oSampleInfo, |
| const ISampleInfo::tHashKey & | oHash ) |
Retrieves a variant value for the hash key oHash out of the sample information oSampleInfo . If the value does not exists the return value content is undefined.
| [in] | oSampleInfo | The sample information to retrieve the value from. |
| [in] | oHash | The hash key of the value. |
| adtf::util::cVariant adtf::streaming::ant::get_sample_info | ( | const ISampleInfo & | oSampleInfo, |
| const ISampleInfo::tHashKey & | oHash, | ||
| const adtf::util::cVariant | oDefault ) |
Retrieves a variant value for the hash key oHash out of the sample information oSampleInfo . If the value does not exists the return value is the given defaultoDefault.
| [in] | oSampleInfo | The sample information to retrieve the value from. |
| [in] | oHash | The hash key of the value. |
| [in] | oDefault | default value if value does not exist. |
| tResult adtf::streaming::ant::get_stream_type_image_format | ( | tStreamImageFormat & | oFormat, |
| const IStreamType & | oType ) |
Helper function to retrieve the oFormat (tStreamImageFormat) out of the of a IStreamType for a stream_meta_type_image.
| oType | Stream Type where to get the properties from |
| oFormat | Format to set the properties content to. |
| tResult adtf::streaming::ant::get_streaming_graph_object | ( | const IStreamingGraph & | oGraph, |
| ucom::ant::iobject_ptr< ucom::ant::IObject > & | pObject ) |
Retrieve the first item of the streaming graph where the iobject_ptr::Reset returns ERR_NOERROR If pObject is used with adtf::ucom::object_ptr this method will return the first object of given INTERFACE of adtf::ucom::object_ptr<INTERFACE>. The embedded Filter Graph is not considered.
| [in] | oGraph | Graph to retrieve the object from. |
| [in,out] | pObject | The object reference to return the value. |
| ERR_NOT_FOUND | iobject_ptr::Reset never returned ERR_NOERROR |
| ERR_NOERRROR | iobject_ptr::Reset returned ERR_NOERROR, consider pObject |
| tResult adtf::streaming::ant::get_streaming_graph_objects | ( | const IStreamingGraph & | oGraph, |
| ucom::ant::iobject_enum< ucom::ant::IObject > & | lstObjects ) |
Retrieve all items of the streaming graph where the iobject_ptr::Reset returns ERR_NOERROR
| [in] | oGraph | Graph to retrieve the object from. |
| [in,out] | lstObjects | The object list reference to return the values to. |
|
inline |
Initializes a cSampleReader with given name and StreamType param[in] oReader Reader to intialize param[in] strName Name to set param[in] pStreamType Stream Type to set. A deep copy will be created.
|
inline |
oWriter with name and type. | [in] | oWriter | writer to initializes |
| [in] | strNameOfWriter | name sets to the writer |
| [in] | pStreamType | stream for the writer (deep copy is created) |
| bool adtf::streaming::ant::operator!= | ( | const IStreamType & | oStreamType, |
| T | oValue ) |
The not-equality operator returns false only if the given oStreamType is not an instance of the stream_meta_type in T. It will compare the unique meta type name.
| T | A class definition that fulfil the concept of defining the unique meta type name in a variable MetaTypeName (see stream_meta_type) |
| oStreamType | The Stream Type instance to check the unique meta type name. |
| oValue | the Stream Meta Type to expected |
| true | meta type name is not equal |
| false | meta type name is equal |
|
inline |
The not-equality operator returns false only if the given oStreamTypeLeft has the exact same properties and property values as oStreamTypeRight. This works in both ways.
| oStreamTypeLeft | The left Stream Type instance for comparison |
| oStreamTypeRight | The Stream Type instance to compare with |
| true | types are not equal |
| false | types are equal |
| bool adtf::streaming::ant::operator!= | ( | const tStreamImageFormat & | sLeft, |
| const tStreamImageFormat & | sRight ) |
is not equal operator to compare tStreamImageFormat
| sLeft | [in] left value |
| sRight | [in] right value |
| true | is not equal |
| false | is equal |
| bool adtf::streaming::ant::operator!= | ( | const ucom::ant::iobject_ptr< const IStreamType > & | pStreamType, |
| const T & | oValue ) |
The equality operator returns true only if the given pStreamType is an instance of the stream_meta_type in T. It will compare the unique meta type name.
| T | A class definition that fulfil the concept of defining the unique meta type name in a variable MetaTypeName (see stream_meta_type) |
| pStreamType | The Stream Type instance to check the unique meta type name. |
| oValue | the Stream Meta Type (not) expected |
| true | meta type name is not equal |
| false | meta type name is equal |
|
inline |
Streaming Operator<< to write/set a error to the cSampleWriter
| oSampleWriter | [in] The Writer to set the error reference. |
| oError | [in] The error reference which will be set on oSampleWriter |
|
inline |
Streaming Operator<< to write/transmit a sample to the cSampleWriter
| oSampleWriter | [in] The Writer to transmit the sample reference to. |
| pSample | [in] The Sample reference which will be transmitted on oSampleWriter |
|
inline |
Streaming Operator<< to write/change a StreamType to the cSampleWriter
| oSampleWriter | [in] The Writer to change the StreamType reference. |
| pType | [in] The StreamType reference which will be change and write on oSampleWriter |
|
inline |
Streaming Operator<< to write/transmit a sample to the cSampleWriter
| oSampleWriter | [in] The Writer to transmit the sample reference to. |
| pSample | [in] The Sample reference which will be transmitted on oSampleWriter |
|
inline |
Streaming Operator<< to flush or to write the cSampleWriter
| oSampleWriter | [in] The Writer to execute the function to. |
| pStreamfunc | [in] the streamfunction to execute with the layout: cSampleWriter&(cSampleWriter&) |
|
inline |
Streaming Operator<< to write a sample to a writers queue of the ISampleStream
| oStreamWriter | [in] The Writer to write to. |
| pSample | [in] The Sample which will be written to queue. |
|
inline |
Streaming Operator<< to write a stream type to a writers queue of the ISampleStream
| oStreamWriter | [in] The Writer to write to. |
| pStreamType | [in] The StreamType which will be written to queue. |
|
inline |
Streaming Operator<< to write an stream type to a writers queue of the ISampleStream
| oStreamWriter | [in] The Writer to write to. |
| pStreamType | [in] The StreamType which will be written to queue. |
|
inline |
Streaming Operator<< to write an Error to the ISampleStream.
| oStreamWriter | [in] The Writer to write to. |
| oErr | [in] The Error which will be written to queue. |
|
inline |
Streaming Operator<< to call a certain streaming function (manipulator), use i.e. to flush the queue:
| [in] | oStreamWriter | The Writer to call the streaming function to. |
| [in] | pStreamfunc | streaming function to execute with layout: ISampleOutStream&(ISampleOutStream&) |
| sample_writer< DATA_TYPE > & adtf::streaming::ant::operator<< | ( | sample_writer< DATA_TYPE > & | oSampleWriter, |
| const DATA_TYPE & | oSampleData ) |
Streaming Operator<< to write/transmit a sample to the cSampleWriter
| oSampleWriter | [in] The Writer to transmit the sample reference to. |
| oSampleData | [in] the data to write |
| bool adtf::streaming::ant::operator== | ( | const IStreamType & | oStreamType, |
| T | ) |
The equality operator returns true only if the given oStreamType is an instance of the stream_meta_type in T. It will compare the unique meta type name.
| T | A class definition that fulfil the concept of defining the unique meta type name in a variable MetaTypeName (see stream_meta_type) |
| oStreamType | The Stream Type instance to check the unique meta type name. |
| true | meta type name is equal |
| false | meta type name is not equal |
|
inline |
The equality operator returns true only if the given oStreamTypeLeft has the exact same properties and property values as oStreamTypeRight. This works in both ways.
| oStreamTypeLeft | The left Stream Type instance for comparison |
| oStreamTypeRight | The Stream Type instance to compare with |
| true | types are equal |
| false | type are not equal |
| bool adtf::streaming::ant::operator== | ( | const tStreamImageFormat & | sLeft, |
| const tStreamImageFormat & | sRight ) |
is equal operator to compare tStreamImageFormat
| sLeft | [in] left value |
| sRight | [in] right value |
| true | is equal |
| false | is not equal |
| bool adtf::streaming::ant::operator== | ( | const ucom::ant::iobject_ptr< const IStreamType > & | pStreamType, |
| const T & | oValue ) |
The equality operator returns true only if the given pStreamType is an instance of the stream_meta_type in T. It will compare the unique meta type name.
| T | A class definition that fulfil the concept of defining the unique meta type name in a variable MetaTypeName (see stream_meta_type) |
| pStreamType | The Stream Type instance to check the unique meta type name. |
| oValue | the Stream Meta Type expected |
| true | meta type name is equal |
| false | meta type name is not equal |
|
inline |
Streaming Operator>> to read a sample from the readers queue.
oItem with tReadingEvent::RE_Nothing to react on empty queues! | oStreamReader | [in] The Reader to read from. |
| oItem | [in] The item implemenation to read to (see IStreamItem for default implementation). |
|
inline |
Streaming Operator>> to clear the cSampleReaders Queue
| [in] | oSampleReader | The Reader to execute he function to. |
| [in] | pStreamfunc | the streamfunction to execute with the layout: cSampleReader&(cSampleReader&) |
|
inline |
Streaming Operator>> to transmit all samples from the oSampleReader to the oSampleWriter
| oSampleReader | [in] The Reader to read the streamdata. |
| oSampleWriter | [in] The writer to write teh streamdata to. |
| cSampleReader & adtf::streaming::ant::operator>> | ( | cSampleReader & | oSampleReader, |
| sample_data< DATATYPE > & | oSampleData ) |
Streaming Operator>> to get the next sample from the cSampleReader
| oSampleReader | [in] The Reader to get the next sample from queue. |
| oSampleData | [in] The Sample data to read the |
|
inline |
::* Streaming Operator>> to get the next sample from the cSampleReader
| oSampleReader | [in] The Reader to get the next sample from queue. |
| pSample | [in] The Sample reference to store the next sample from oSampleReader |
|
inline |
Streaming Operator>> to write/change a StreamType to the cSampleReader
| oSampleReader | [in] The Reader to get StreamType reference. |
| pType | [in] The StreamType reference to store the stream type |
| adtf::streaming::ant::R | ( | 8 | ) |
Format definition.
Format definition this description means always first in lowest bit of lowest byte
| tResult adtf::streaming::ant::read_from_sample | ( | const ISample & | oSample, |
| T & | oValue ) |
Helper to read the value oValue from the sample oSample. This will Locks the Sample and copy the memory from the SampleBuffer to the memory of oSample.
| [in] | oSample | The Sample to read from. |
| T | The Type of oValue |
| [in] | oValue | The value to read. |
|
inline |
Sets the property of the given oStreamType to the cString value poValue
| [in] | oStreamType | StreamType where to set the property |
| [in] | strNameOfValue | name of the property |
| [in] | poValue | string value of property to set. |
| tResult adtf::streaming::ant::set_property | ( | IStreamType & | oStreamType, |
| const char * | strNameOfValue, | ||
| VALUETYPE | oValue ) |
Sets the property of the given oStreamType to the value oValue
| VALUETYPE | Type of oValue |
| [in] | oStreamType | StreamType where to set the property |
| [in] | strNameOfValue | name of the property |
| [in] | oValue | value of property to set. |
| tResult adtf::streaming::ant::set_sample_info | ( | ISample & | oSample, |
| const ISampleInfo::tHashKey & | oHash, | ||
| const adtf::util::cVariant | oValue ) |
Sets a variant value for the hash key oHash into the sample oSample sample information.
| [in] | oSample | The sample to set the value to its sample information. |
| [in] | oHash | The hash key of the value. |
| [in] | oValue | value to set. |
| ERR_NOERROR | value is set |
| ERR_INVALID_TYPE | Type is not supported. See base::ant::IHashValueMapValue::tType |
| tResult adtf::streaming::ant::set_sample_info | ( | ISampleInfo & | oSampleInfo, |
| const ISampleInfo::tHashKey & | oHash, | ||
| const adtf::util::cVariant | oValue ) |
Sets a variant value for the hash key oHash into the sample information oSampleInfo.
| [in] | oSampleInfo | The sample information to set the value to. |
| [in] | oHash | The hash key of the value. |
| [in] | oValue | value to set. |
| ERR_NOERROR | value is set |
| ERR_INVALID_TYPE | Type is not supported. See base::ant::IHashValueMapValue::tType |
| tResult adtf::streaming::ant::set_stream_type_image_format | ( | IStreamType & | oType, |
| const tStreamImageFormat & | oFormat ) |
Helper function to set the properties of a IStreamType for a stream_meta_type_image.
| oType | Stream Type where to set the properties representing the content of sFormat tStreamImageFormat |
| oFormat | Format to set the properties from. |
| uint32_t adtf::streaming::ant::stream_image_format_get_generic_mask | ( | const char * | strChannel, |
| const tStreamImageFormat & | strFormat ) |
Retrieves the pixelsize
| strChannel | [in] channel to look for. |
| strFormat | [in] a generic stream image format. |
| unsigned int adtf::streaming::ant::stream_image_format_get_generic_pixel_size | ( | const tStreamImageFormat & | strFormat | ) |
Retrieves the pixelsize
| strFormat | [in] a generic stream image format. |
| bool adtf::streaming::ant::stream_image_format_is_generic | ( | const tStreamImageFormat & | strFormat | ) |
Check if all bits are well defined and at least one component is available
| strFormat | [in] a generic stream image format. |
| bool adtf::streaming::ant::stream_image_format_is_generic_rgb | ( | const tStreamImageFormat & | strFormat | ) |
Check if R, G and B components are available.
| [in] | strFormat | a generic stream image format. |
| WRITER_TYPE & adtf::streaming::ant::trigger | ( | WRITER_TYPE & | oWriter | ) |
Global function template to trigger a writers sample stream manually.
| WRITER_TYPE | Type or sub class of cSampleWriter |
| tResult adtf::streaming::ant::write_to_sample | ( | ISample & | oSample, |
| const T & | oValue ) |
Helper to write the value oValue to the sample oSample. This will WriteLock the Sample and copy the memory to the SampleBuffer of Sample.
| [in] | oSample | The Sample to write to. (mind you must set a still a timestamp to the sample, see ISample::SetTime) |
| T | The Type of oValue |
| [in] | oValue | The value to write. |