主权项 |
1. An electronic device, comprising:
a display configured to display one or more images; a controller configured to adjust a color gamut of the display by:
receiving image data to be rendered on the display, wherein the image data comprises International Commission on Illumination (CIE) Yxy coordinates for each pixel in the image data;receiving an ambient light measurement that indicates an amount of ambient light impinging on the display;rendering the image data in a first color space when the ambient light measurement is less than a threshold; andrendering the image data in an expanded color space when the amount of ambient light is not less than the threshold by:
determining a shift in the Yxy coordinates for each pixel due to the amount of ambient light, wherein the shift in the Yxy variables for each pixel is determined according to:(xref-xsource)YrefYsource(yref-ysource)YrefYsource wherein xref corresponds to a reflected x variable of one or more reflected Yxy variables for each pixel due to the amount of ambient light, xsource corresponds to an x variable of the Yxy coordinates, yref corresponds to a reflected y variable of the reflected Yxy variables, ysource corresponds to a y variable of the Yxy coordinates, Yref corresponds to a reflected Y variable of the reflected Yxy variables, and Ysource corresponds to a Y variable of the Yxy coordinates;determining Yxy compensation variables for each pixel based at least in part on the shift in the Yxy coordinates for each pixel due to the respective reflected Yxy variables for each pixel; andapplying the Yxy compensation variables to each pixel. |