@@ -60,32 +60,22 @@ class AvExport FileProperties
60
60
61
61
// @{
62
62
// @brief Get the properties with the indicated stream index
63
- avtranscoder::VideoProperties& getVideoPropertiesWithStreamIndex ( const size_t streamIndex );
64
- avtranscoder::AudioProperties& getAudioPropertiesWithStreamIndex ( const size_t streamIndex );
63
+ const avtranscoder::VideoProperties& getVideoPropertiesWithStreamIndex ( const size_t streamIndex ) const ;
64
+ const avtranscoder::AudioProperties& getAudioPropertiesWithStreamIndex ( const size_t streamIndex ) const ;
65
65
// @}
66
66
67
67
// @{
68
68
// @brief Get the list of properties for a given type (video, audio...)
69
- std::vector< avtranscoder::VideoProperties >& getVideoProperties () { return _videoStreams; }
70
- std::vector< avtranscoder::AudioProperties >& getAudioProperties () { return _audioStreams; }
71
- std::vector< avtranscoder::DataProperties >& getDataProperties () { return _dataStreams; }
72
- std::vector< avtranscoder::SubtitleProperties >& getSubtitleProperties () { return _subtitleStreams; }
73
- std::vector< avtranscoder::AttachementProperties >& getAttachementProperties () { return _attachementStreams; }
74
- std::vector< avtranscoder::UnknownProperties >& getUnknownPropertiesProperties () { return _unknownStreams; }
75
- // @}
76
-
77
- #ifndef SWIG
78
- const AVFormatContext& getAVFormatContext () { return *_avFormatContext; }
79
-
80
- const avtranscoder::VideoProperties& getVideoPropertiesWithStreamIndex ( const size_t streamIndex ) const ;
81
- const avtranscoder::AudioProperties& getAudioPropertiesWithStreamIndex ( const size_t streamIndex ) const ;
82
-
83
69
const std::vector< avtranscoder::VideoProperties >& getVideoProperties () const { return _videoStreams; }
84
70
const std::vector< avtranscoder::AudioProperties >& getAudioProperties () const { return _audioStreams; }
85
71
const std::vector< avtranscoder::DataProperties >& getDataProperties () const { return _dataStreams; }
86
72
const std::vector< avtranscoder::SubtitleProperties >& getSubtitleProperties () const { return _subtitleStreams; }
87
73
const std::vector< avtranscoder::AttachementProperties >& getAttachementProperties () const { return _attachementStreams; }
88
74
const std::vector< avtranscoder::UnknownProperties >& getUnknownPropertiesProperties () const { return _unknownStreams; }
75
+ // @}
76
+
77
+ #ifndef SWIG
78
+ const AVFormatContext& getAVFormatContext () { return *_avFormatContext; }
89
79
#endif
90
80
91
81
PropertyVector getPropertiesAsVector () const ; // /< Return all file properties as a vector (name of property: value)
0 commit comments