diff options
author | Xavier Thomas <xavier.thomas.1980@gmail.com> | 2010-12-14 00:17:00 +0300 |
---|---|---|
committer | Xavier Thomas <xavier.thomas.1980@gmail.com> | 2010-12-14 00:17:00 +0300 |
commit | bfe5ae9ff12daff1f12266170465c234034735ca (patch) | |
tree | 429648a2199697133b7ae7cb21101d028e51cd56 /source/blender/editors/space_node | |
parent | 33d98c4d3ab4382a296615b770f915cbbf44628b (diff) |
Compositor: Add an option to select the YCbCR conversion mode for the YCbCR combine/separate nodes.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 471e5085c56..75eaa1d4988 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -1017,6 +1017,11 @@ static void node_composit_buts_huecorrect(uiLayout *layout, bContext *UNUSED(C), uiTemplateCurveMapping(layout, ptr, "mapping", 'h', 0, 0); } +static void node_composit_buts_ycc(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) +{ + uiItemR(layout, ptr, "mode", 0, "", 0); +} + /* only once called */ static void node_composit_set_butfunc(bNodeType *ntype) { @@ -1161,6 +1166,10 @@ static void node_composit_set_butfunc(bNodeType *ntype) case CMP_NODE_ZCOMBINE: ntype->uifunc=node_composit_buts_zcombine; break; + case CMP_NODE_COMBYCCA: + case CMP_NODE_SEPYCCA: + ntype->uifunc=node_composit_buts_ycc; + break; default: ntype->uifunc= NULL; } |