Unified · Split
| @@ -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 | }; |
| @@ -25,6 +25,12 @@ · 24 unmodified lines | |||
| 25 | 25 | ||
| 26 | #include "avcodec.h" | 26 | #include "avcodec.h" |
| 27 | 27 | ||
| 28 | enum { | ||
| 29 | QTABLE_DEFAULT = -1, | ||
| 30 | QTABLE_8BIT, | ||
| 31 | QTABLE_GT8BIT, | ||
| 32 | }; | ||
| 33 | |||
| 28 | av_cold int ff_ffv1_encode_init(AVCodecContext *avctx); | 34 | av_cold int ff_ffv1_encode_init(AVCodecContext *avctx); |
| 29 | av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx); | 35 | av_cold int ff_ffv1_write_extradata(AVCodecContext *avctx); |
| 30 | av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx, | 36 | av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx, |
| @@ -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 }, |