[FFmpeg-devel] [PATCH 8/9] bavcodec/options_table: add pixel_format and video_size options
Lukasz Marek
lukasz.m.luki2 at gmail.com
Tue Nov 11 08:31:30 CET 2014
Adding these options simplify ffm format implementation based on AVOption API.
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
---
libavcodec/options_table.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index beb767c..5dd0359 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -488,6 +488,8 @@ static const AVOption avcodec_options[] = {
{"bt", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_BT }, 0, 0, V|D|E, "field_order" },
{"dump_separator", "set information dump field separator", OFFSET(dump_separator), AV_OPT_TYPE_STRING, {.str = NULL}, CHAR_MIN, CHAR_MAX, A|V|S|D|E},
{"codec_whitelist", "List of decoders that are allowed to be used", OFFSET(codec_whitelist), AV_OPT_TYPE_STRING, { .str = NULL }, CHAR_MIN, CHAR_MAX, A|V|S|D },
+{"pixel_format", "set pixel format", OFFSET(pix_fmt), AV_OPT_TYPE_PIXEL_FMT, {.i64=AV_PIX_FMT_NONE}, -1, INT_MAX, 0 },
+{"video_size", "set video size", OFFSET(width), AV_OPT_TYPE_IMAGE_SIZE, {.str=NULL}, 0, INT_MAX, 0 },
{NULL},
};
--
1.9.1
More information about the ffmpeg-devel
mailing list