setGammaTable
Set the gamma table to be used by the framebuffer.
Declaration
virtual IOReturn setGammaTable(
UInt32channelCount,
UInt32dataCount,
UInt32dataWidth,
void *data );Parameters
- channelCount:
Defines the number of channels in the supplied data. macOS will pass three for separate R, G, B data, or one if the same data should apply to all channels.
- dataCount:
The number of data entries per channel.
- dataWidth:
The number of bits in each entry. 8 for OS X 10.1 and earlier, 16 for later releases.
- data:
The packed array of correction data. Data is passed for the R (or single) channel followed by the G & B channels. Each entry is one or two bytes (if dataWidth > 8).
Return Value
an IOReturn code.
Overview
IOFramebuffer subclasses should implement this method to allow a gamma table to be set.
See Also
Miscellaneous
connectFlagsconvertCursorImagedoI2CRequestenableControllerflushCursorgetApertureRangegetAppleSensegetAttributegetAttributeForConnectiongetConnectionCountgetCurrentDisplayMode(IODisplayModeID *, IOIndex *)getDDCBlockgetDisplayModeCountgetDisplayModesgetInformationForDisplayModegetPixelFormatsgetPixelFormatsForDisplayModegetPixelInformationgetStartupDisplayModegetTimingInfoForDisplayModegetVRAMRangehandleEventhasDDCConnectreadDDCClockreadDDCDataregisterForInterruptTypesetApertureEnablesetAttributesetAttributeForConnectionsetCLUTWithEntriessetCurrentDisplayModesetCursorImagesetCursorStatesetDDCClocksetDDCDatasetDetailedTimingssetDisplayModesetInterruptStatesetStartupDisplayModeunregisterInterrupt(void *)unregisterInterrupt(void *, UInt32)validateDetailedTiming