DSpContext_GetCLUTEntries
You can use the DSpContext_GetCLUTEntries function to retrieve one or more color entries from a color lookup table.
OSStatus DSpContext_GetCLUTEntries ( DSpContextReference inContext, ColorSpec *outEntries, UInt16 inStartingEntry, UInt16 inEntryCount);
inContext- The context whose color lookup table is to be accessed.
outEntries- On exit, an array of color specification records that contain the retrieved table entries.
inStartingEntry- The (zero-based) index position in the color lookup table of the first entry to retrieve.
inEntryCount- The number of entries to retrieve.
- function result
- A result code.
DESCRIPTION
TheDSpContext_GetCLUTEntriesfunction gets a range of entries from the color lookup table for the context specified in theinContextparameter. You pass in the number of entries to get in theinEntryCountparameter and the index position of the first entry in theinStartingEntryparameter. The function returns, in theoutEntriesparameter, an array of records containing the table entries it retrieved.After you get the entries you can modify them and reassign them to the color table, for purposes such as color-table animation, with the
DSpContext_SetCLUTEntries function (page 2-70).CALLING RESTRICTIONS
Do not call this function during an interrupt.