ADTF  3.18.2
make_sample_writer_default.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "sample_codec.h"
9 #include "stream_type_default.h"
10 
12 
13 namespace adtf
14 {
15 namespace mediadescription
16 {
17 namespace osborn
18 {
26 template<typename WRITER>
27 inline tResult make_sample_writer(WRITER& oWriter,
28  const char* strNameOfWriter,
29  const char* strDDLStructType)
30 {
32  = ucom::make_object_ptr<quiet::stream_type_default<>>(strDDLStructType);
33  return streaming::flash::make_sample_writer(oWriter, strNameOfWriter, pType);
34 }
35 
44  const char* strNameOfWriter,
45  const char* strDDLStructType)
46 {
48  = ucom::make_object_ptr<quiet::stream_type_default<>>(strDDLStructType);
49  return streaming::ant::make_sample_writer(oWriter, strNameOfWriter, pType);
50 }
51 
52 } //namespace osborn
53 
55 
56 } // namespace mediadescription
57 } //namespace adtf
This base implementation of a sample writer is able to write to one Sample Stream which is connected ...
Definition: samplewriter.h:35
tResult make_sample_writer(WRITER &oWriter, const char *strNameOfWriter, const char *strDDLStructType)
Helper template to setup a sample writer with a stream type set from the media description service.
tResult make_sample_writer(cSampleWriter &oWriter, const char *strNameOfWriter, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)
Definition: samplewriter.h:348
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.