Home
last modified time | relevance | path

Searched refs:trits (Results 1 – 5 of 5) sorted by relevance

/hardware/google/gfxstream/host/vulkan/emulated_textures/shaders/
DAstcLookupTables.glsl3 // Number of trits, quints and bits that are used to encode the weights.
10 // Number of trits, quints, and bits that we are used to encode the color endpoints, sorted from
35 // Lookup table to decode a pack of 5 trits (encoded with 8 bits)
36 // index: the 8 bits that make the pack of 5 trits
37 // output: the values for the 5 trits, packed together using 2 bits each
DAstc.comp170 uint get_bit_count(uint num_vals, uint trits, uint quints, uint bits) {
172 uint trit_bit_count = ((num_vals * 8 * trits) + 4) / 5;
178 void get_pack_size(uint trits, uint quints, uint bits, out uint pack, out uint packedSize) {
179 if (trits == 1) {
192 // We either have three quints or five trits
218 // We either have three quints or five trits
602 uint trits = 0;
617 trits = 1;
626 trits = 1;
642 trits = 1;
[all …]
DAstcDecompressor.glsl64 uvec3 weightEncoding; // Number of trits (x), quints (y) and bits (z) to encode the weights.
72 // encoding: number of trits (x), quints (y) and bits (z) used for the encoding.
242 // offset: bit offset where the block of trits starts, within the 128 bits of data
254 // Extract the 8 bits that encode the pack of 5 trits
284 // Note that we don't have the same size issue as trits (see above), since the largest encoding
317 // only bits, no trits or quints. We can have between 1 and 6 bits.
559 // only bits, no trits or quints. We can have between 1 and 8 bits.
DAstcNew.comp64 uvec3 weightEncoding; // Number of trits (x), quints (y) and bits (z) to encode the weights.
72 // encoding: number of trits (x), quints (y) and bits (z) used for the encoding.
242 // offset: bit offset where the block of trits starts, within the 128 bits of data
254 // Extract the 8 bits that encode the pack of 5 trits
284 // Note that we don't have the same size issue as trits (see above), since the largest encoding
317 // only bits, no trits or quints. We can have between 1 and 6 bits.
559 // only bits, no trits or quints. We can have between 1 and 8 bits.
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_integer_sequence.cpp344 uint8_t trits; member
509 unsigned int trits = btq_counts[quant_level].trits; in encode_ise() local
514 if (trits) in encode_ise()
674 unsigned int trits = btq_counts[quant_level].trits; in decode_ise() local
686 if (trits) in decode_ise()
714 if (trits) in decode_ise()