ADTF
Loading...
Searching...
No Matches
leaf_sample_codec_access.h
Go to the documentation of this file.
1
7
8#pragma once
9
11
12namespace adtf
13{
14namespace mediadescription
15{
16namespace penguin
17{
30template<typename T>
31std::vector<tLeafCodecIndex> get_leaf_codec_indices(const T& oDecoderOrFactory, ddl::DataRepresentation rep)
32{
33 std::vector<tLeafCodecIndex> vecIndices;
34 for_each_leaf_element(oDecoderOrFactory.GetElements(),
35 [&vecIndices, &rep](const auto& oElement) {
36 vecIndices.push_back(tLeafCodecIndex(oElement.getIndex(), rep));
37 });
38 return vecIndices;
39}
40
41} // namespace penguin
42
43using penguin::get_leaf_codec_indices;
44using penguin::tLeafCodecIndex;
45} // namespace mediadescription
46} // namespace adtf
47
The Leaf codec index is a small layout information index to access the decoders/codecs data very fast...
Definition leaf_value_access.h:43
ddl::codec::LeafCodecIndex tLeafCodecIndex
redefitnion for a ddl::codec::LeafCodecIndex
Definition leaf_sample_codec_access.h:21
std::vector< tLeafCodecIndex > get_leaf_codec_indices(const T &oDecoderOrFactory, ddl::DataRepresentation rep)
Get the leaf indices object.
Definition leaf_sample_codec_access.h:31
Namespace for the ADTF Mediadescription SDK.
Definition codec_sample_streamer.h:22
void for_each_leaf_element(ElementsType &oElements, const element_callback< ElementsType > &fnCallback)
Iterates ALL leaf elements within ALL array elements.
Definition sample_codec.h:1414
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
DataRepresentation
Definition data_representation.h:25