MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / createDFDPacked

Function createDFDPacked

external/dfdutils/createdfd.c:392–398  ·  view source on GitHub ↗

* @~English * @brief Create a Data Format Descriptor for a packed format. * * @param bigEndian Big-endian flag: Set to 1 for big-endian byte ordering and * 0 for little-endian byte ordering. * @param numChannels The number of color channels. * @param bits[] An array of length numChannels. * Each entry is the number of bits composing the channel, in *

Source from the content-addressed store, hash-verified

390 * for freeing the descriptor.
391 **/
392uint32_t *createDFDPacked(int bigEndian, int numChannels,
393 int bits[], int channels[],
394 enum VkSuffix suffix) {
395 assert(numChannels <= 6);
396 int shiftBits[] = {0, 0, 0, 0, 0, 0};
397 return createDFDPackedShifted(bigEndian, numChannels, bits, shiftBits, channels, suffix);
398}
399
400uint32_t *createDFD422(int bigEndian, int numSamples,
401 int bits[], int shiftBits[], int channels[],

Callers 3

TEST_FFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

assertFunction · 0.85
createDFDPackedShiftedFunction · 0.85

Tested by 3

TEST_FFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68