summaryrefslogtreecommitdiff
path: root/libswscale/options.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-14 05:19:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-17 01:59:10 +0200
commitb405f4e916248874dae9b801910dc94f3dfe68c4 (patch)
tree1403467042463451e95398fb34c1a0282c813a4a /libswscale/options.c
parent53c853e0491691d4ee6f33e6348da2ffc7d345d8 (diff)
swscale: Add support to specify chroma position
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/options.c')
-rw-r--r--libswscale/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libswscale/options.c b/libswscale/options.c
index fc571acd15..26e326608f 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -64,6 +64,11 @@ static const AVOption options[] = {
{ "param0", "scaler param 0", OFFSET(param[0]), AV_OPT_TYPE_DOUBLE, { .dbl = SWS_PARAM_DEFAULT }, INT_MIN, INT_MAX, VE },
{ "param1", "scaler param 1", OFFSET(param[1]), AV_OPT_TYPE_DOUBLE, { .dbl = SWS_PARAM_DEFAULT }, INT_MIN, INT_MAX, VE },
+ { "src_v_chr_pos", "source vertical chroma position in luma grid/256" , OFFSET(src_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 512, VE },
+ { "src_h_chr_pos", "source horizontal chroma position in luma grid/256", OFFSET(src_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 512, VE },
+ { "dst_v_chr_pos", "source vertical chroma position in luma grid/256" , OFFSET(dst_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 512, VE },
+ { "dst_h_chr_pos", "source horizontal chroma position in luma grid/256", OFFSET(dst_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 512, VE },
+
{ NULL }
};