mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-02-15 09:44:46 +08:00
chore(libvideo2x)!: replace the C API with C++ API (#1245)
* chore(libvideo2x)!: replace the C API with C++ API * fix: convert wide string to u8 for av_opt_set * style: removed unnecessary enum and struct specifiers Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
@@ -20,9 +20,8 @@ class Decoder {
|
||||
int get_video_stream_index() const;
|
||||
|
||||
private:
|
||||
static enum AVPixelFormat hw_pix_fmt_;
|
||||
static enum AVPixelFormat
|
||||
get_hw_format(AVCodecContext *ctx, const enum AVPixelFormat *pix_fmts);
|
||||
static AVPixelFormat hw_pix_fmt_;
|
||||
static AVPixelFormat get_hw_format(AVCodecContext *ctx, const AVPixelFormat *pix_fmts);
|
||||
|
||||
AVFormatContext *fmt_ctx_;
|
||||
AVCodecContext *dec_ctx_;
|
||||
|
||||
Reference in New Issue
Block a user