| 38 | { |
| 39 | |
| 40 | class AVInputFormatWrapper |
| 41 | { |
| 42 | public: |
| 43 | AVInputFormatWrapper(); |
| 44 | AVInputFormatWrapper(AVInputFormat *f, LibraryVersion v); |
| 45 | |
| 46 | explicit operator bool() const { return fmt != nullptr; }; |
| 47 | |
| 48 | private: |
| 49 | // Update all private values from the AVCodecContext |
| 50 | void update(); |
| 51 | |
| 52 | // These are here for debugging purposes. |
| 53 | QString name{}; |
| 54 | QString long_name{}; |
| 55 | int flags{}; |
| 56 | QString extensions{}; |
| 57 | // const struct AVCodecTag * const *codec_tag; |
| 58 | // const AVClass *priv_class; |
| 59 | QString mime_type{}; |
| 60 | |
| 61 | AVInputFormat *fmt{}; |
| 62 | LibraryVersion libVer{}; |
| 63 | }; |
| 64 | |
| 65 | } // namespace FFmpeg |