ADTF  3.18.2
leaf_sample_codec_access.h
Go to the documentation of this file.
1 
8 #pragma once
9 
11 
12 namespace adtf
13 {
14 namespace mediadescription
15 {
16 namespace penguin
17 {
30 template<typename T>
31 std::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 
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...
The leaf value access decoding and encoding is a header only optimization for leaf values of standard...
void for_each_leaf_element(ElementsType &oElements, const element_callback< ElementsType > &fnCallback)
Iterates ALL leaf elements within ALL array elements.
std::vector< tLeafCodecIndex > get_leaf_codec_indices(const T &oDecoderOrFactory, ddl::DataRepresentation rep)
Get the leaf indices object.
ddl::codec::LeafCodecIndex tLeafCodecIndex
redefitnion for a ddl::codec::LeafCodecIndex
Namespace for entire ADTF SDK.