66
77#include <math.h>
88
9- #define FF_DISPLAY_NUM_FORMAT_ARGS 13
9+ #define FF_DISPLAY_NUM_FORMAT_ARGS 16
1010
1111static int sortByNameAsc (FFDisplayResult * a , FFDisplayResult * b )
1212{
@@ -126,6 +126,9 @@ void ffPrintDisplay(FFDisplayOptions* options)
126126 if (result -> type != FF_DISPLAY_TYPE_UNKNOWN )
127127 ffStrbufAppendS (& buffer , result -> type == FF_DISPLAY_TYPE_BUILTIN ? " [Built-in]" : " [External]" );
128128
129+ if (result -> hdrEnabled )
130+ ffStrbufAppendS (& buffer , " [HDR]" );
131+
129132 if (moduleIndex > 0 && result -> primary )
130133 ffStrbufAppendS (& buffer , " *" );
131134
@@ -150,6 +153,9 @@ void ffPrintDisplay(FFDisplayOptions* options)
150153 {FF_FORMAT_ARG_TYPE_UINT , & result -> physicalHeight , "physical-height" },
151154 {FF_FORMAT_ARG_TYPE_DOUBLE , & inch , "inch" },
152155 {FF_FORMAT_ARG_TYPE_DOUBLE , & ppi , "ppi" },
156+ {FF_FORMAT_ARG_TYPE_UINT8 , & result -> bitDepth , "bit-depth" },
157+ {FF_FORMAT_ARG_TYPE_BOOL , & result -> hdrEnabled , "hdr-enabled" },
158+ {FF_FORMAT_ARG_TYPE_BOOL , & result -> wcgEnabled , "wcg-enabled" },
153159 }));
154160 }
155161 }
@@ -352,6 +358,9 @@ void ffPrintDisplayHelpFormat(void)
352358 "Screen physical height (in millimeters) - physical-height" ,
353359 "Physical diagonal length in inches - inch" ,
354360 "Pixels per inch (PPI) - ppi" ,
361+ "Bits per color channel - bit-depth" ,
362+ "True if high dynamic range (HDR) is enabled - hdr-enabled" ,
363+ "True if wide color gamut (WCG) is enabled - wcg-enabled" ,
355364 }));
356365}
357366
0 commit comments