|
6 | 6 |
|
7 | 7 | #include <math.h> |
8 | 8 |
|
9 | | -#define FF_DISPLAY_NUM_FORMAT_ARGS 19 |
| 9 | +#define FF_DISPLAY_NUM_FORMAT_ARGS 20 |
10 | 10 |
|
11 | 11 | static int sortByNameAsc(FFDisplayResult* a, FFDisplayResult* b) |
12 | 12 | { |
@@ -140,6 +140,7 @@ void ffPrintDisplay(FFDisplayOptions* options) |
140 | 140 | { |
141 | 141 | double ppi = sqrt(result->width * result->width + result->height * result->height) / inch; |
142 | 142 | bool hdrEnabled = result->hdrStatus == FF_DISPLAY_HDR_STATUS_ENABLED; |
| 143 | + bool hdrCompatible = result->hdrStatus == FF_DISPLAY_HDR_STATUS_SUPPORTED || result->hdrStatus == FF_DISPLAY_HDR_STATUS_ENABLED; |
143 | 144 | uint32_t iInch = (uint32_t) (inch + 0.5), iPpi = (uint32_t) (ppi + 0.5); |
144 | 145 |
|
145 | 146 | char refreshRate[16]; |
@@ -182,6 +183,7 @@ void ffPrintDisplay(FFDisplayOptions* options) |
182 | 183 | FF_FORMAT_ARG(result->manufactureWeek, "manufacture-week"), |
183 | 184 | FF_FORMAT_ARG(buf, "serial"), |
184 | 185 | FF_FORMAT_ARG(result->platformApi, "platform-api"), |
| 186 | + FF_FORMAT_ARG(hdrCompatible, "hdr-compatible"), |
185 | 187 | })); |
186 | 188 | } |
187 | 189 | } |
@@ -423,6 +425,7 @@ void ffPrintDisplayHelpFormat(void) |
423 | 425 | "Nth week of manufacturing in the year - manufacture-week", |
424 | 426 | "Serial number - serial", |
425 | 427 | "The platform API used when detecting the display - platform-api", |
| 428 | + "True if the display is HDR compatible - hdr-compatible", |
426 | 429 | })); |
427 | 430 | } |
428 | 431 |
|
|
0 commit comments