File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -118,13 +118,15 @@ class AvExport Option
118
118
typedef std::vector<Option> OptionArray;
119
119
typedef std::map<std::string, Option> OptionMap; // /< Key: option name / value: option
120
120
121
+ #ifndef SWIG
121
122
/* *
122
123
* @param outOptions: map or array of options
123
124
* @param av_class: a libav context (could be an AVFormatContext or an AVCodecContext).
124
125
* @param req_flags: libav flag (AV_OPT_FLAG_XXX), which is a filter for AVOption loaded by the Context (default = 0: no flag restriction).
125
126
*/
126
127
void AvExport loadOptions ( OptionMap& outOptions, void * av_class, int req_flags = 0 );
127
128
void AvExport loadOptions ( OptionArray& outOptions, void * av_class, int req_flags = 0 );
129
+ #endif
128
130
129
131
}
130
132
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ class AvExport ICodec
44
44
int getLatency () const ;
45
45
46
46
OptionArray getOptions (); // /< Get options as array
47
+ #ifndef SWIG
47
48
OptionMap& getOptionsMap () { return _options; } // /< Get options as map
48
-
49
+ # endif
49
50
Option& getOption ( const std::string& optionName ) { return _options.at (optionName); }
50
51
51
52
#ifndef SWIG
Original file line number Diff line number Diff line change @@ -88,8 +88,9 @@ class AvExport FormatContext
88
88
size_t getStartTime () const { return _avFormatContext->start_time ; }
89
89
90
90
OptionArray getOptions (); // /< Get options as array
91
+ #ifndef SWIG
91
92
OptionMap& getOptionsMap () { return _options; } // /< Get options as map
92
-
93
+ # endif
93
94
Option& getOption ( const std::string& optionName ) { return _options.at (optionName); }
94
95
95
96
/* *
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ AVPixelFormat AvExport getAVPixelFormat( const std::string& pixelFormat );
48
48
*/
49
49
AVSampleFormat AvExport getAVSampleFormat ( const std::string& sampleFormat );
50
50
51
+ #ifndef SWIG
51
52
/* *
52
53
* @brief Get array of short/long names of all format supported by FFmpeg / libav.
53
54
*/
@@ -77,6 +78,7 @@ OptionArrayMap AvExport getVideoCodecOptions();
77
78
* @brief Get the list of options for each audio codec
78
79
*/
79
80
OptionArrayMap AvExport getAudioCodecOptions ();
81
+ #endif
80
82
81
83
}
82
84
You can’t perform that action at this time.
0 commit comments