aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-07 17:34:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-07 18:23:20 +0200
commitabf2d53d807c93638ee69deda9bf885164e23502 (patch)
treef85aa2b91e8d0fee7ea5bdeeb86329fa243df619
parent23824b9698bbc5b2640c87f6538598510f4bbf18 (diff)
downloadffmpeg-abf2d53d807c93638ee69deda9bf885164e23502.tar.gz
avcodec/options_table: add field_order
This allows setting and overriding the field order Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/options_table.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 8c025fe076..a274073f47 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -381,6 +381,12 @@ static const AVOption avcodec_options[] = {
{"pre_decoder", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_SUB_CHARENC_MODE_PRE_DECODER}, INT_MIN, INT_MAX, S|D, "sub_charenc_mode"},
{"refcounted_frames", NULL, OFFSET(refcounted_frames), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, A|V|D },
{"skip_alpha", "Skip processing alpha", OFFSET(skip_alpha), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, V|D },
+{"field_order", "Field order", OFFSET(field_order), AV_OPT_TYPE_INT, {.i64 = AV_FIELD_UNKNOWN }, 0, 5, V|D|E, "field_order" },
+{"progressive", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_PROGRESSIVE }, 0, 0, V|D|E, "field_order" },
+{"tt", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_TT }, 0, 0, V|D|E, "field_order" },
+{"bb", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_BB }, 0, 0, V|D|E, "field_order" },
+{"tb", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_TB }, 0, 0, V|D|E, "field_order" },
+{"bt", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_FIELD_BT }, 0, 0, V|D|E, "field_order" },
{NULL},
};