8#ifndef SkVideEncoder_DEFINED
9#define SkVideEncoder_DEFINED
15#include "libavcodec/avcodec.h"
16#include "libavformat/avformat.h"
17#include "libavformat/avio.h"
18#include "libavutil/pixdesc.h"
66 bool sendFrame(AVFrame*);
68 double computeTimeStamp(
const AVFrame*)
const;
70 SwsContext* fSWScaleCtx =
nullptr;
71 AVIOContext* fStreamCtx =
nullptr;
72 AVFormatContext* fFormatCtx =
nullptr;
73 AVCodecContext* fEncoderCtx =
nullptr;
74 AVStream* fStream =
nullptr;
75 AVFrame* fFrame =
nullptr;
76 AVPacket* fPacket =
nullptr;
79 std::unique_ptr<SkRandomAccessWStream> fWStream;
80 int64_t fCurrentPTS, fDeltaPTS;
bool beginRecording(SkISize, int fps)
sk_sp< SkData > endRecording()
bool addFrame(const SkPixmap &)