Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
40
TMessagesProj/jni/voip/tgcalls/group/AVIOContextImpl.h
Normal file
40
TMessagesProj/jni/voip/tgcalls/group/AVIOContextImpl.h
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#ifndef TGCALLS_AVIOCONTEXTIMPL_H
|
||||
#define TGCALLS_AVIOCONTEXTIMPL_H
|
||||
|
||||
#include "absl/types/optional.h"
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
#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 <math.h>
|
||||
|
||||
extern "C" {
|
||||
#include <libavutil/timestamp.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
}
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
class AVIOContextImpl {
|
||||
public:
|
||||
AVIOContextImpl(std::vector<uint8_t> &&fileData);
|
||||
~AVIOContextImpl();
|
||||
|
||||
AVIOContext *getContext() const;
|
||||
|
||||
public:
|
||||
std::vector<uint8_t> _fileData;
|
||||
int _fileReadPosition = 0;
|
||||
|
||||
std::vector<uint8_t> _buffer;
|
||||
AVIOContext *_context = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue