| | |
| | | int encode(AVPacket *pkt, AVFrame *frame); |
| | | |
| | | public: |
| | | bool copyCodecFromIn(AVFormatContext* in); |
| | | bool copyCodecFromIn(std::vector<AVStream*> in); |
| | | bool openResource(const char *filename, const int flags); |
| | | bool closeResource(); |
| | | |
| | | bool JustWriter(AVFormatContext* in, const char *filename); |
| | | bool JustWriter(std::vector<AVStream*> in, const char *filename); |
| | | bool EncodeWriter(const char *filename); |
| | | bool writeFrame(AVPacket *pkt, const int64_t &frame_cnt, bool interleaved = true); |
| | | void adjustPTS(AVPacket *pkt, const int64_t &frame_cnt); |
| | |
| | | std::string format_name_; |
| | | |
| | | // rec |
| | | AVFormatContext *in_ctx_; |
| | | std::vector<AVStream*> in_streams_; |
| | | }; |
| | | } |
| | | #endif |