@@ -36,45 +36,13 @@ class AvExport InputFile
36
36
37
37
virtual ~InputFile ();
38
38
39
- /* *
40
- * @return Return the resource to access
41
- **/
42
- std::string getFilename () const { return _filename; }
43
-
44
39
/* *
45
40
* @brief Run the analyse on the file after a setup.
46
41
* call this function before getProperties().
47
42
* @param progress callback to get analysis progression
48
43
* @param level by default eAnalyseLevelFirstGop
49
44
**/
50
45
void analyse ( IProgress& progress, const EAnalyseLevel level = eAnalyseLevelFirstGop );
51
-
52
- /* *
53
- * @brief Return media properties on the current InputFile.
54
- * @note require to launch analyse() before to fill the property struture
55
- * @return structure of media metadatas
56
- **/
57
- const FileProperties& getProperties () const { return _properties; }
58
-
59
- /* *
60
- * @brief Get stream type: video, audio, subtitle, etc.
61
- * @param index stream index
62
- * @return media stream type of specified index stream
63
- **/
64
- AVMediaType getStreamType ( size_t index );
65
-
66
- /* *
67
- * @brief Get stream type: video, audio, subtitle, etc.
68
- * @param index stream index
69
- * @return media stream type of specified index stream
70
- **/
71
- AvInputStream& getStream ( size_t index );
72
-
73
- /* *
74
- * @brief Get LibAV/FFmpeg AVFormatContext
75
- * @return format context on current InputFile
76
- **/
77
- AVFormatContext& getAVFormatContext () const { return *_formatContext; }
78
46
79
47
/* *
80
48
* @brief Read the next packet of the specified stream
@@ -95,11 +63,43 @@ class AvExport InputFile
95
63
* @note Activate a stream results in buffered its data when processing
96
64
**/
97
65
void activateStream ( const size_t streamIndex, const bool activate = true );
66
+
67
+ /* *
68
+ * @return Return the resource to access
69
+ **/
70
+ std::string getFilename () const { return _filename; }
71
+
72
+ /* *
73
+ * @brief Return media properties on the current InputFile.
74
+ * @note require to launch analyse() before to fill the property struture
75
+ * @return structure of media metadatas
76
+ **/
77
+ const FileProperties& getProperties () const { return _properties; }
78
+
79
+ /* *
80
+ * @brief Get stream type: video, audio, subtitle, etc.
81
+ * @param index stream index
82
+ * @return media stream type of specified index stream
83
+ **/
84
+ AvInputStream& getStream ( size_t index );
85
+
86
+ /* *
87
+ * @brief Get stream type: video, audio, subtitle, etc.
88
+ * @param index stream index
89
+ * @return media stream type of specified index stream
90
+ **/
91
+ AVMediaType getStreamType ( size_t index );
98
92
99
93
/* *
100
94
* @brief Indicate that the stream is activated
101
95
**/
102
96
bool isStreamActivated ( const size_t streamIndex );
97
+
98
+ /* *
99
+ * @brief Get LibAV/FFmpeg AVFormatContext
100
+ * @return format context on current InputFile
101
+ **/
102
+ AVFormatContext& getAVFormatContext () const { return *_formatContext; }
103
103
104
104
/* *
105
105
* @brief Set the format of the input file
0 commit comments