ADTF  3.18.2
make_sample_reader_default.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "stream_type_default.h"
10 
12 
13 namespace adtf
14 {
15 namespace mediadescription
16 {
17 namespace osborn
18 {
19 
27 template<typename READER>
28 inline tResult make_sample_reader(READER& oReader,
29  const char* strNameOfReader,
30  const char* strDDLStructType)
31 {
33  = ucom::make_object_ptr<quiet::stream_type_default<>>(strDDLStructType);
34  return streaming::flash::make_sample_reader(oReader, strNameOfReader, pType);
35 }
36 
45  const char* strNameOfReader,
46  const char* strDDLStructType)
47 {
49  = ucom::make_object_ptr<quiet::stream_type_default<>>(strDDLStructType);
50  return streaming::ant::make_sample_reader(oReader, strNameOfReader, pType);
51 }
52 
53 } //namespace osborn
54 
56 
57 } // namespace mediadescription
58 } //namespace adtf
The default Sample Reader will read the incomung Stream of a IInPin.
Definition: samplereader.h:174
tResult make_sample_reader(READER &oReader, const char *strNameOfReader, const char *strDDLStructType)
Helper template to setup a sample reader with a stream type set from the media description service.
tResult make_sample_reader(cSampleReader &oReader, const char *strNameOfReader, const ucom::iobject_ptr< const IStreamType > &pStreamType)
Initializes a cSampleReader with given name and StreamType param[in] oReader Reader to intialize para...
Definition: samplereader.h:914
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.