History

avcodec/ffv1enc: Add enum for qtable

Michael Niedermayer committed 1 year ago

Commit 559d4351 parent d32dcc03 files · +20 −2Browse files

Unified · Split

3 files
  1. libavcodec/ffv1enc.c +7 −1
  2. libavcodec/ffv1enc.h +6 −0
  3. libavcodec/ffv1enc_vulkan.c +7 −1
libavcodec/ffv1enc.c+7−1
@@ -1346,7 +1346,13 @@ static const AVOption options[] = { · 1345 unmodified lines
1346 { "context", "Context model", OFFSET(context_model), AV_OPT_TYPE_INT,1346 { "context", "Context model", OFFSET(context_model), AV_OPT_TYPE_INT,
1347 { .i64 = 0 }, 0, 1, VE },1347 { .i64 = 0 }, 0, 1, VE },
1348 { "qtable", "Quantization table", OFFSET(qtable), AV_OPT_TYPE_INT,1348 { "qtable", "Quantization table", OFFSET(qtable), AV_OPT_TYPE_INT,
1349 { .i64 = -1 }, -1, 2, VE },1349 { .i64 = -1 }, -1, 2, VE , .unit = "qtable"},
1350 { "default", NULL, 0, AV_OPT_TYPE_CONST,
1351 { .i64 = QTABLE_DEFAULT }, INT_MIN, INT_MAX, VE, .unit = "qtable" },
1352 { "8bit", NULL, 0, AV_OPT_TYPE_CONST,
1353 { .i64 = QTABLE_8BIT }, INT_MIN, INT_MAX, VE, .unit = "qtable" },
1354 { "greater8bit", NULL, 0, AV_OPT_TYPE_CONST,
1355 { .i64 = QTABLE_GT8BIT }, INT_MIN, INT_MAX, VE, .unit = "qtable" },
1350 1356
1351 { NULL }1357 { NULL }
1352};1358};
libavcodec/ffv1enc.h+6−0
@@ -25,6 +25,12 @@ · 24 unmodified lines
25 25
26#include "avcodec.h"26#include "avcodec.h"
27 27
28enum {
29 QTABLE_DEFAULT = -1,
30 QTABLE_8BIT,
31 QTABLE_GT8BIT,
32};
33
28av_cold int ff_ffv1_encode_init(AVCodecContext *avctx);34av_cold int ff_ffv1_encode_init(AVCodecContext *avctx);
29av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx);35av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx);
30av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx,36av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx,
libavcodec/ffv1enc_vulkan.c+7−1
@@ -1795,7 +1795,13 @@ static const AVOption vulkan_encode_ffv1_options[] = { · 1794 unmodified lines
1795 { "range_tab", "Range with custom table", 0, AV_OPT_TYPE_CONST,1795 { "range_tab", "Range with custom table", 0, AV_OPT_TYPE_CONST,
1796 { .i64 = AC_RANGE_CUSTOM_TAB }, INT_MIN, INT_MAX, VE, .unit = "coder" },1796 { .i64 = AC_RANGE_CUSTOM_TAB }, INT_MIN, INT_MAX, VE, .unit = "coder" },
1797 { "qtable", "Quantization table", OFFSET(ctx.qtable), AV_OPT_TYPE_INT,1797 { "qtable", "Quantization table", OFFSET(ctx.qtable), AV_OPT_TYPE_INT,
1798 { .i64 = -1 }, -1, 2, VE },1798 { .i64 = -1 }, -1, 2, VE , .unit = "qtable"},
1799 { "default", NULL, 0, AV_OPT_TYPE_CONST,
1800 { .i64 = QTABLE_DEFAULT }, INT_MIN, INT_MAX, VE, .unit = "qtable" },
1801 { "8bit", NULL, 0, AV_OPT_TYPE_CONST,
1802 { .i64 = QTABLE_8BIT }, INT_MIN, INT_MAX, VE, .unit = "qtable" },
1803 { "greater8bit", NULL, 0, AV_OPT_TYPE_CONST,
1804 { .i64 = QTABLE_GT8BIT }, INT_MIN, INT_MAX, VE, .unit = "qtable" },
1799 1805
1800 { "slices_h", "Number of horizontal slices", OFFSET(num_h_slices), AV_OPT_TYPE_INT,1806 { "slices_h", "Number of horizontal slices", OFFSET(num_h_slices), AV_OPT_TYPE_INT,
1801 { .i64 = -1 }, -1, 1024, VE },1807 { .i64 = -1 }, -1, 1024, VE },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t