#include "xavs2.h"
#include "mpeg12.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Value:do{ \
char opt_str[16] = {0};
\
err = cae->api->opt_set2(cae->param,
name, opt_str);
\
}\
} while(0);
static const char * format[]
#define AV_LOG_WARNING
Something somehow does not look correct.
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
Definition at line 29 of file libxavs2.c.
Referenced by xavs2_init().
static void xavs2_copy_frame_with_shift |
( |
xavs2_picture_t * |
pic, |
|
|
const AVFrame * |
frame, |
|
|
const int |
shift_in |
|
) |
| |
|
static |
static void xavs2_copy_frame |
( |
xavs2_picture_t * |
pic, |
|
|
const AVFrame * |
frame |
|
) |
| |
|
static |
Initial value:= {
{
"lcu_row_threads" ,
"number of parallel threads for rows" ,
OFFSET(lcu_row_threads) ,
AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX,
VE },
{
"initial_qp" ,
"Quantization initial parameter" ,
OFFSET(initial_qp) ,
AV_OPT_TYPE_INT, {.i64 = 34 }, 1, 63,
VE },
{
"speed_level" ,
"Speed level, higher is better but slower",
OFFSET(preset_level) ,
AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 9,
VE },
{
"log_level" ,
"log level: -1: none, 0: error, 1: warning, 2: info, 3: debug",
OFFSET(log_level) ,
AV_OPT_TYPE_INT, {.i64 = 0 }, -1, 3,
VE },
{
"xavs2-params" ,
"set the xavs2 configuration using a :-separated list of key=value parameters",
OFFSET(xavs2_opts),
AV_OPT_TYPE_STRING, { 0 }, 0, 0,
VE },
}
Definition at line 253 of file libxavs2.c.
Initial value:= {
.class_name = "XAVS2EContext",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 265 of file libxavs2.c.
Initial value:= {
{ "b", "0" },
{ "g", "48" },
{ "bf", "7" },
}
Definition at line 272 of file libxavs2.c.
Initial value:= {
.name = "libxavs2",
.wrapper_name = "libxavs2",
}
static av_cold int init(AVCodecContext *avctx)
#define AV_CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
static int xavs2_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int xavs2_close(AVCodecContext *avctx)
static const AVCodecDefault xavs2_defaults[]
static enum AVPixelFormat pix_fmts[]
static av_cold int xavs2_init(AVCodecContext *avctx)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
static const AVClass libxavs2
AVPixelFormat
Pixel format.
Definition at line 279 of file libxavs2.c.