| | |
| | | |
| | | #include <stdint.h> |
| | | #include <memory> |
| | | #ifdef GB28181 |
| | | #include "PsToEs.hpp" |
| | | #endif |
| | | |
| | | struct AVFormatContext; |
| | | struct AVDictionary; |
| | |
| | | |
| | | public: |
| | | int openWithCustomIO(void *opaque, read_packet fn, AVDictionary **options=NULL); |
| | | #ifdef GB28181 |
| | | int openGb28181(const char *filename, AVDictionary **options); |
| | | #endif |
| | | |
| | | int open(const char *filename, AVDictionary **options); |
| | | bool findStreamInfo(AVDictionary **options); |
| | |
| | | AVIOContext *io_ctx_; |
| | | uint8_t *read_io_buff_; |
| | | const int read_io_buff_size_; |
| | | #ifdef GB28181 |
| | | GB28181API *handle_gb28181; |
| | | #endif |
| | | }; |
| | | } |
| | | |