#ifndef TGCALLS_AVIOCONTEXTIMPL_H #define TGCALLS_AVIOCONTEXTIMPL_H #include "absl/types/optional.h" #include #include #include "api/video/video_frame.h" #include "absl/types/optional.h" // Fix build on Windows - this should appear before FFmpeg timestamp include. #define _USE_MATH_DEFINES #include extern "C" { #include #include #include } namespace tgcalls { class AVIOContextImpl { public: AVIOContextImpl(std::vector &&fileData); ~AVIOContextImpl(); AVIOContext *getContext() const; public: std::vector _fileData; int _fileReadPosition = 0; std::vector _buffer; AVIOContext *_context = nullptr; }; } #endif