You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
ffv1enc_vulkan: support default range coder tables
This adds support for default range coder tables, rather than only custom ones. Its two lines, as the same code can be used for both thanks to ffv1enc.c setting f->state_transition properly.
This commit is contained in:
@ -1581,7 +1581,7 @@ static av_cold int vulkan_encode_ffv1_init(AVCodecContext *avctx)
|
||||
if (f->version < 4) {
|
||||
av_log(avctx, AV_LOG_ERROR, "PCM coding only supported by version 4 (-level 4)\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
} else if (f->ac != AC_RANGE_CUSTOM_TAB) {
|
||||
} else if (f->ac == AC_GOLOMB_RICE) {
|
||||
av_log(avctx, AV_LOG_ERROR, "PCM coding requires range coding\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
@ -1798,6 +1798,8 @@ static const AVOption vulkan_encode_ffv1_options[] = {
|
||||
{ .i64 = AC_RANGE_CUSTOM_TAB }, -2, 2, VE, .unit = "coder" },
|
||||
{ "rice", "Golomb rice", 0, AV_OPT_TYPE_CONST,
|
||||
{ .i64 = AC_GOLOMB_RICE }, INT_MIN, INT_MAX, VE, .unit = "coder" },
|
||||
{ "range_def", "Range with default table", 0, AV_OPT_TYPE_CONST,
|
||||
{ .i64 = AC_RANGE_DEFAULT_TAB_FORCE }, INT_MIN, INT_MAX, VE, .unit = "coder" },
|
||||
{ "range_tab", "Range with custom table", 0, AV_OPT_TYPE_CONST,
|
||||
{ .i64 = AC_RANGE_CUSTOM_TAB }, INT_MIN, INT_MAX, VE, .unit = "coder" },
|
||||
{ "qtable", "Quantization table", OFFSET(ctx.qtable), AV_OPT_TYPE_INT,
|
||||
|
Reference in New Issue
Block a user