* @~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 *
| 390 | * for freeing the descriptor. |
| 391 | **/ |
| 392 | uint32_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 | |
| 400 | uint32_t *createDFD422(int bigEndian, int numSamples, |
| 401 | int bits[], int shiftBits[], int channels[], |