ADTF File Library
Loading...
Searching...
No Matches
substream_utilities.h
Go to the documentation of this file.
1
16
17#pragma once
18
20#include <unordered_map>
21#include <string>
22#include <cstdint>
23#include <memory>
24
25namespace adtf_file
26{
27namespace adtf3
28{
29
34{
35 uint32_t id;
37 std::unordered_map<std::string, std::pair<std::string, std::string>> stream_type_properties;
38
44 bool operator==(const SubstreamProperties& rhs) const;
45
49 std::shared_ptr<StreamType> createStreamType() const;
50
56};
57
62
68std::unordered_map<std::string, SubstreamProperties> getSubstreams(const PropertyStreamType& type);
69
76SubstreamProperties getSubstreamProperties(const PropertyStreamType& type, const std::string& substream);
77
78
85void setSubstream(PropertyStreamType& type, const std::string& substream, const SubstreamProperties& properties);
86
91{
92 public:
97
103 void addSubstream(const std::string& name, const SubstreamProperties& properties);
104};
105
106}
107}
DefaultStreamType()=default
CTOR.
The default interface class for stream types.
Definition stream_type.h:32
void addSubstream(const std::string &name, const SubstreamProperties &properties)
namespace for support of ADTF 3 files
Definition adtf3_media_description_deserializer.h:28
SubstreamProperties getSubstreamProperties(const PropertyStreamType &type, const std::string &substream)
bool isSubstreamsType(const PropertyStreamType &type)
void setSubstream(PropertyStreamType &type, const std::string &substream, const SubstreamProperties &properties)
std::unordered_map< std::string, SubstreamProperties > getSubstreams(const PropertyStreamType &type)
namespace for ADTF File library
Definition adtf2_adtf_core_media_sample_deserializer.h:25
Definition substream_utilities.h:34
std::unordered_map< std::string, std::pair< std::string, std::string > > stream_type_properties
all properties of the stream type
Definition substream_utilities.h:37
std::string stream_meta_type_name
the name of the stream meta type
Definition substream_utilities.h:36
bool operator==(const SubstreamProperties &rhs) const
void copyToStreamType(PropertyStreamType &type) const
std::shared_ptr< StreamType > createStreamType() const
uint32_t id
substream id
Definition substream_utilities.h:35