diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ConvertOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ConvertOperation.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_ConvertOperation.cpp b/source/blender/compositor/operations/COM_ConvertOperation.cpp index 327015c1139..8e79931d6f0 100644 --- a/source/blender/compositor/operations/COM_ConvertOperation.cpp +++ b/source/blender/compositor/operations/COM_ConvertOperation.cpp @@ -164,15 +164,15 @@ ConvertRGBToYCCOperation::ConvertRGBToYCCOperation() : ConvertBaseOperation() void ConvertRGBToYCCOperation::setMode(int mode) { switch (mode) { - case 1: - this->m_mode = BLI_YCC_ITU_BT709; + case 0: + this->m_mode = BLI_YCC_ITU_BT601; break; case 2: this->m_mode = BLI_YCC_JFIF_0_255; break; - case 0: + case 1: default: - this->m_mode = BLI_YCC_ITU_BT601; + this->m_mode = BLI_YCC_ITU_BT709; break; } } @@ -202,15 +202,15 @@ ConvertYCCToRGBOperation::ConvertYCCToRGBOperation() : ConvertBaseOperation() void ConvertYCCToRGBOperation::setMode(int mode) { switch (mode) { - case 1: - this->m_mode = BLI_YCC_ITU_BT709; + case 0: + this->m_mode = BLI_YCC_ITU_BT601; break; case 2: this->m_mode = BLI_YCC_JFIF_0_255; break; - case 0: + case 1: default: - this->m_mode = BLI_YCC_ITU_BT601; + this->m_mode = BLI_YCC_ITU_BT709; break; } } |