Searched defs:packed (Results 1 - 25 of 88) sorted by relevance

1234

/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_format_tests.h43 * A (packed, unpacked) color pair.
55 uint8_t packed[UTIL_FORMAT_MAX_PACKED_BYTES]; member in struct:util_format_test_case
H A Du_pack_color.h30 * Functions to produce packed colors/Z from floats.
161 * Unpack RGBA from a packed pixel, returning values as ubytes in [0,255].
477 uint32_t packed = util_pack_mask_z(format, z); local
481 packed |= (uint32_t)s << 24;
484 packed |= s;
487 packed |= s;
493 return packed;
500 uint64_t packed; local
504 packed = util_pack64_mask_z(format, z);
505 packed |
583 uint32_t packed = util_pack_z(format, z); local
606 uint64_t packed; local
[all...]
/external/chromium_org/third_party/skia/src/gpu/
H A DGrTextStrike_impl.h55 GrGlyph* GrTextStrike::getGlyph(GrGlyph::PackedID packed, argument
57 GrGlyph* glyph = fCache.find(packed);
59 glyph = this->generateGlyph(packed, scaler);
/external/chromium_org/tools/relocation_packer/src/
H A Ddelta_encoder.cc14 // Encode relative relocations with addends into a delta encoded (packed)
18 std::vector<ELF::Sxword>* packed) {
24 packed->push_back(relocations.size());
33 packed->push_back(relocation->r_offset - offset);
35 packed->push_back(relocation->r_addend - addend);
40 // Decode relative relocations with addends from a delta encoded (packed)
42 void RelocationDeltaCodec::Decode(const std::vector<ELF::Sxword>& packed, argument
44 // We need at least one packed pair after the packed pair count to be
46 if (packed
17 Encode(const std::vector<ELF::Rela>& relocations, std::vector<ELF::Sxword>* packed) argument
[all...]
H A Ddelta_encoder_unittest.cc39 std::vector<ELF::Sxword> packed; local
43 packed.clear();
44 codec.Encode(relocations, &packed);
46 EXPECT_EQ(0, packed.size());
51 packed.clear();
52 codec.Encode(relocations, &packed);
54 EXPECT_EQ(3, packed.size());
56 EXPECT_EQ(1, packed[0]);
58 EXPECT_EQ(0xf00d0000, packed[1]);
59 EXPECT_EQ(10000, packed[
109 std::vector<ELF::Sxword> packed; local
[all...]
H A Dpacker.cc18 // Pack relative relocations into a run-length encoded packed
22 std::vector<uint8_t>* packed) {
40 encoder.GetEncoding(packed);
42 // Pad packed to a whole number of words. This padding will decode as
45 while (packed->size() % sizeof(ELF::Word))
46 packed->push_back(0);
49 // Unpack relative relocations from a run-length encoded packed
52 const std::vector<uint8_t>& packed,
56 Leb128Decoder decoder(packed);
68 // Pack relative relocations with addends into a delta encoded packed
20 PackRelativeRelocations( const std::vector<ELF::Rel>& relocations, std::vector<uint8_t>* packed) argument
51 UnpackRelativeRelocations( const std::vector<uint8_t>& packed, std::vector<ELF::Rel>* relocations) argument
70 PackRelativeRelocations( const std::vector<ELF::Rela>& relocations, std::vector<uint8_t>* packed) argument
104 UnpackRelativeRelocations( const std::vector<uint8_t>& packed, std::vector<ELF::Rela>* relocations) argument
[all...]
H A Dpacker_unittest.cc52 std::vector<uint8_t> packed; local
66 packed.clear();
67 packer.PackRelativeRelocations(relocations, &packed);
69 EXPECT_EQ(16, packed.size());
71 EXPECT_EQ('A', packed[0]);
72 EXPECT_EQ('P', packed[1]);
73 EXPECT_EQ('R', packed[2]);
74 EXPECT_EQ('1', packed[3]);
76 EXPECT_EQ(2, packed[4]);
78 EXPECT_EQ(128, packed[
95 std::vector<uint8_t> packed; local
140 std::vector<uint8_t> packed; local
195 std::vector<uint8_t> packed; local
[all...]
H A Drun_length_encoder_unittest.cc33 std::vector<ELF::Xword> packed; local
37 packed.clear();
38 codec.Encode(relocations, &packed);
40 EXPECT_EQ(0, packed.size());
45 packed.clear();
46 codec.Encode(relocations, &packed);
48 EXPECT_EQ(0, packed.size());
53 packed.clear();
54 codec.Encode(relocations, &packed);
56 EXPECT_EQ(4, packed
90 std::vector<ELF::Xword> packed; local
[all...]
H A Drun_length_encoder.cc40 std::vector<ELF::Xword>* packed) {
52 packed->push_back(count);
53 packed->push_back(current);
60 packed->push_back(count);
61 packed->push_back(current);
66 // condensed slot in packed, and the count of pairs are provided.
68 const std::vector<ELF::Xword>& packed,
81 size_t count = packed[i];
82 const ELF::Addr delta = packed[i + 1];
99 // Encode relative relocations into a run-length encoded (packed)
39 Condense(const std::vector<ELF::Addr>& deltas, std::vector<ELF::Xword>* packed) argument
67 Uncondense(ELF::Addr addr, const std::vector<ELF::Xword>& packed, size_t start_index, size_t end_index, std::vector<ELF::Rel>* relocations) argument
101 Encode(const std::vector<ELF::Rel>& relocations, std::vector<ELF::Xword>* packed) argument
125 Decode(const std::vector<ELF::Xword>& packed, std::vector<ELF::Rel>* relocations) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_tests.h43 * A (packed, unpacked) color pair.
55 uint8_t packed[UTIL_FORMAT_MAX_PACKED_BYTES]; member in struct:util_format_test_case
H A Du_pack_color.h30 * Functions to produce packed colors/Z from floats.
161 * Unpack RGBA from a packed pixel, returning values as ubytes in [0,255].
477 uint32_t packed = util_pack_mask_z(format, z); local
481 packed |= (uint32_t)s << 24;
484 packed |= s;
487 packed |= s;
493 return packed;
500 uint64_t packed; local
504 packed = util_pack64_mask_z(format, z);
505 packed |
583 uint32_t packed = util_pack_z(format, z); local
606 uint64_t packed; local
[all...]
/external/skia/src/core/
H A DSkImageInfo.cpp24 uint32_t packed = buffer.read32(); local
25 SkASSERT(0 == (packed >> 16));
26 fAlphaType = (SkAlphaType)((packed >> 8) & 0xFF);
27 fColorType = (SkColorType)((packed >> 0) & 0xFF);
38 uint32_t packed = (fAlphaType << 8) | fColorType; local
39 buffer.write32(packed);
H A DSkFloatBits.cpp27 static inline int unpack_exp(uint32_t packed) { argument
28 return (packed << 1 >> 24);
33 static inline int unpack_matissa(uint32_t packed) {
35 return (packed & ~0xFF000000) | MATISSA_MAGIC_BIG;
40 static inline int unpack_matissa_dirty(uint32_t packed) { argument
41 return packed & ~0xFF000000;
45 int32_t SkFloatBits_toIntCast(int32_t packed) { argument
46 int exp = unpack_exp(packed) - EXP_BIAS;
47 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG;
62 return SkApplySign(value, SkExtractSign(packed));
66 SkFloatBits_toIntFloor(int32_t packed) argument
96 SkFloatBits_toIntRound(int32_t packed) argument
126 SkFloatBits_toIntCeil(int32_t packed) argument
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkImageInfo.cpp24 uint32_t packed = buffer.read32(); local
25 SkASSERT(0 == (packed >> 16));
26 fAlphaType = (SkAlphaType)((packed >> 8) & 0xFF);
27 fColorType = (SkColorType)((packed >> 0) & 0xFF);
38 uint32_t packed = (fAlphaType << 8) | fColorType; local
39 buffer.write32(packed);
H A DSkFloatBits.cpp27 static inline int unpack_exp(uint32_t packed) { argument
28 return (packed << 1 >> 24);
33 static inline int unpack_matissa(uint32_t packed) {
35 return (packed & ~0xFF000000) | MATISSA_MAGIC_BIG;
40 static inline int unpack_matissa_dirty(uint32_t packed) { argument
41 return packed & ~0xFF000000;
45 int32_t SkFloatBits_toIntCast(int32_t packed) { argument
46 int exp = unpack_exp(packed) - EXP_BIAS;
47 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG;
62 return SkApplySign(value, SkExtractSign(packed));
66 SkFloatBits_toIntFloor(int32_t packed) argument
105 SkFloatBits_toIntRound(int32_t packed) argument
135 SkFloatBits_toIntCeil(int32_t packed) argument
[all...]
/external/clang/test/SemaCXX/
H A Dcxx11-gnu-attrs.cpp53 struct [[gnu::packed]] packed { char c; int n; }; struct
54 static_assert(sizeof(packed) == sizeof(char) + sizeof(int), "not packed");
/external/skia/src/gpu/
H A DGrTextStrike_impl.h96 GrGlyph* GrTextStrike::getGlyph(GrGlyph::PackedID packed, argument
98 GrGlyph* glyph = fCache.find(packed);
100 glyph = this->generateGlyph(packed, scaler);
/external/chromium_org/third_party/skia/tests/
H A DPremulAlphaRoundTripTest.cpp20 uint32_t packed; local
21 uint8_t* byte = reinterpret_cast<uint8_t*>(&packed);
26 return packed;
30 uint32_t packed; local
31 uint8_t* byte = reinterpret_cast<uint8_t*>(&packed);
36 return packed;
/external/dexmaker/src/dx/java/com/android/dx/dex/code/
H A DSwitchData.java29 * in either a "packed" or "sparse" form.
47 /** whether the output table will be packed (vs. sparse) */
48 private final boolean packed; field in class:SwitchData
90 this.packed = shouldPack(cases);
96 return packed ? (int) packedCodeSize(cases) :
107 if (packed) {
153 * Returns whether or not this instance's data will be output as packed.
155 * @return {@code true} iff the data is to be packed
158 return packed;
184 sb.append(packed
[all...]
/external/skia/include/gpu/
H A DGrGlyph.h31 void init(GrGlyph::PackedID packed, const SkIRect& bounds) { argument
34 fPackedID = packed;
64 static inline SkFixed UnpackFixedX(PackedID packed) { argument
65 return ((packed >> 18) & 3) << 14;
68 static inline SkFixed UnpackFixedY(PackedID packed) { argument
69 return ((packed >> 16) & 3) << 14;
72 static inline uint16_t UnpackID(PackedID packed) { argument
73 return (uint16_t)packed;
/external/skia/tests/
H A DPremulAlphaRoundTripTest.cpp20 uint32_t packed; local
21 uint8_t* byte = reinterpret_cast<uint8_t*>(&packed);
26 return packed;
30 uint32_t packed; local
31 uint8_t* byte = reinterpret_cast<uint8_t*>(&packed);
36 return packed;
/external/chromium_org/third_party/skia/include/gpu/
H A DGrGlyph.h32 void init(GrGlyph::PackedID packed, const SkIRect& bounds) { argument
35 fPackedID = packed;
65 static inline SkFixed UnpackFixedX(PackedID packed) { argument
66 return ((packed >> 18) & 3) << 14;
69 static inline SkFixed UnpackFixedY(PackedID packed) { argument
70 return ((packed >> 16) & 3) << 14;
73 static inline uint16_t UnpackID(PackedID packed) { argument
74 return (uint16_t)packed;
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/g722/
H A Dg722_enc_dec.h63 /*! TRUE if the G.722 data is packed */
64 int packed; member in struct:__anon15747
101 /*! TRUE if the G.722 data is packed */
102 int packed; member in struct:__anon15749
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_format_aos.c143 * @param desc the pixel format for the packed pixel value
144 * @param packed integer pixel in a format such as PIPE_FORMAT_B8G8R8A8_UNORM
151 LLVMValueRef packed)
172 assert (LLVMTypeOf(packed) == LLVMInt32TypeInContext(gallivm->context));
174 /* Broadcast the packed value to all four channels
175 * before: packed = BGRA
176 * after: packed = {BGRA, BGRA, BGRA, BGRA}
178 packed = LLVMBuildInsertElement(builder,
180 packed,
183 packed
149 lp_build_unpack_arith_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *desc, LLVMValueRef packed) argument
269 LLVMValueRef packed = NULL; local
398 LLVMValueRef packed; local
442 LLVMValueRef packed; local
[all...]
H A Dlp_bld_format_soa.c79 * It takes a vector of packed pixels:
81 * packed = {P0, P1, P2, P3, ..., Pn}
90 * It requires that a packed pixel fits into an element of the output
94 * \param format_desc the format of the 'packed' incoming pixel vector
96 * \param packed the incoming vector of packed pixels
103 LLVMValueRef packed,
129 input = packed;
260 LLVMValueRef packed,
267 packed
100 lp_build_unpack_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef packed, LLVMValueRef rgba_out[4]) argument
258 lp_build_rgba8_to_f32_soa(struct gallivm_state *gallivm, struct lp_type dst_type, LLVMValueRef packed, LLVMValueRef *rgba) argument
335 LLVMValueRef packed; local
[all...]

Completed in 536 milliseconds

1234