Skip to content

Commit

Permalink
vdisp/aja: use BT.601 matrix with --param color-601
Browse files Browse the repository at this point in the history
(only for HDMI ->RGB conversion)
  • Loading branch information
MartinPulec committed Oct 2, 2024
1 parent 836eb29 commit 120e881
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video_display/aja.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,11 @@ AJAStatus display::SetUpVideo ()
CHECK_EX(mDevice.DownloadLUTToHW(table, table, table, mOutputChannel, bank), "Download LUT", NOOP);
}
if (IsRGBFormat (mPixelFormat) != mOutIsRGB) { // set CSC
CHECK(mDevice.SetColorSpaceMatrixSelect(NTV2_Rec709Matrix, mOutputChannel));
CHECK(mDevice.SetColorSpaceMatrixSelect(
get_commandline_param("color-601") != nullptr
? NTV2_Rec601Matrix
: NTV2_Rec709Matrix,
mOutputChannel));
CHECK(mDevice.SetColorSpaceRGBBlackRange(NTV2_CSC_RGB_RANGE_SMPTE, mOutputChannel));
CHECK(mDevice.SetColorSpaceMethod(NTV2_CSC_Method_Original, mOutputChannel));
CHECK(mDevice.SetColorSpaceMakeAlphaFromKey(false, mOutputChannel));
Expand Down

0 comments on commit 120e881

Please sign in to comment.