Home
last modified time | relevance | path

Searched refs:getBits (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/media/extractors/mp4/
DAC4Parser.cpp74 uint32_t n_language_tag_bytes = mBitReader.getBits(6); in parseLanguageTag()
81 language_tag_bytes[i] = (char)mBitReader.getBits(8); in parseLanguageTag()
95 uint32_t channel_mode = mBitReader.getBits(5); in parseSubstreamDSI()
97 uint32_t dsi_sf_multiplier = mBitReader.getBits(2); in parseSubstreamDSI()
99 bool b_substream_bitrate_indicator = (mBitReader.getBits(1) == 1); in parseSubstreamDSI()
109 uint32_t substream_bitrate_indicator = mBitReader.getBits(5); in parseSubstreamDSI()
115 uint32_t add_ch_base = mBitReader.getBits(1); in parseSubstreamDSI()
119 bool b_content_type = (mBitReader.getBits(1) == 1); in parseSubstreamDSI()
123 uint32_t content_classifier = mBitReader.getBits(3); in parseSubstreamDSI()
136 bool b_language_indicator = (mBitReader.getBits(1) == 1); in parseSubstreamDSI()
[all …]
DMPEG4Extractor.cpp3067 unsigned data_rate = br.getBits(13); in parseEAC3SpecificBox()
3070 unsigned num_ind_sub = br.getBits(3) + 1; in parseEAC3SpecificBox()
3079 unsigned fscod = br.getBits(2); in parseEAC3SpecificBox()
3093 unsigned bsid = br.getBits(5); in parseEAC3SpecificBox()
3104 unsigned bsmod = br.getBits(3); in parseEAC3SpecificBox()
3105 unsigned acmod = br.getBits(3); in parseEAC3SpecificBox()
3106 unsigned lfeon = br.getBits(1); in parseEAC3SpecificBox()
3113 unsigned num_dep_sub = br.getBits(4); in parseEAC3SpecificBox()
3122 unsigned chan_loc = br.getBits(9); in parseEAC3SpecificBox()
3151 unsigned mask = br.getBits(8); in parseEAC3SpecificBox()
[all …]
/frameworks/native/libs/math/tests/
Dhalf_test.cpp38 EXPECT_EQ(0x0000, half( 0.0f).getBits()); in TEST_F()
39 EXPECT_EQ(0x8000, half(-0.0f).getBits()); in TEST_F()
42 EXPECT_EQ(0x7e00, half(NAN).getBits()); in TEST_F()
45 EXPECT_EQ(0x7C00, half( std::numeric_limits<float>::infinity()).getBits()); in TEST_F()
46 EXPECT_EQ(0xFC00, half(-std::numeric_limits<float>::infinity()).getBits()); in TEST_F()
49 EXPECT_EQ(0x3C01, half(1.0009765625).getBits()); in TEST_F()
50 EXPECT_EQ(0xC000, half(-2).getBits()); in TEST_F()
51 EXPECT_EQ(0x0400, half(6.10352e-5).getBits()); in TEST_F()
52 EXPECT_EQ(0x7BFF, half(65504).getBits()); in TEST_F()
53 EXPECT_EQ(0x3555, half(1.0f/3).getBits()); in TEST_F()
[all …]
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp285 unsigned packet_startcode_prefix = br.getBits(24); in dequeuePES()
301 unsigned stream_id = br.getBits(8); in dequeuePES()
304 /* unsigned PES_packet_length = */br.getBits(16); in dequeuePES()
315 /* unsigned current_next_indicator = */br.getBits(1); in dequeuePES()
316 /* unsigned reserved = */br.getBits(2); in dequeuePES()
317 /* unsigned program_stream_map_version = */br.getBits(5); in dequeuePES()
318 /* unsigned reserved = */br.getBits(7); in dequeuePES()
319 /* unsigned marker_bit = */br.getBits(1); in dequeuePES()
320 unsigned program_stream_info_length = br.getBits(16); in dequeuePES()
328 unsigned descriptor_tag = br.getBits(8); in dequeuePES()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DAMPEG4AudioAssembler.cpp100 *audioObjectType = bits->getBits(5); in parseAudioObjectType()
102 *audioObjectType = 32 + bits->getBits(6); in parseAudioObjectType()
111 unsigned frameLengthFlag __unused = bits->getBits(1); in parseGASpecificConfig()
112 unsigned dependsOnCoreCoder = bits->getBits(1); in parseGASpecificConfig()
114 /* unsigned coreCoderDelay = */bits->getBits(1); in parseGASpecificConfig()
116 unsigned extensionFlag = bits->getBits(1); in parseGASpecificConfig()
124 /* unsigned layerNr = */bits->getBits(3); in parseGASpecificConfig()
129 /* unsigned numOfSubFrame = */bits->getBits(5); in parseGASpecificConfig()
130 /* unsigned layerLength = */bits->getBits(11); in parseGASpecificConfig()
133 /* unsigned aacSectionDataResilienceFlag = */bits->getBits(1); in parseGASpecificConfig()
[all …]
DAMPEG4ElementaryAssembler.cpp271 unsigned AU_size = bits.getBits(mSizeLength); in addPacket()
277 unsigned AU_index = bits.getBits(n); in addPacket()
291 if (bits.getBits(1)) { in addPacket()
305 if (bits.getBits(1)) { in addPacket()
340 unsigned auxSize = bits.getBits(mAuxiliaryDataSizeLength); in addPacket()
/frameworks/av/media/libstagefright/foundation/
Davc_utils.cpp35 while (br->getBits(1) == 0) { in parseUE()
39 unsigned x = br->getBits(numZeroes); in parseUE()
106 unsigned profile_idc = br.getBits(8); in FindAVCDimensions()
123 if (br.getBits(1)) { // seq_scaling_matrix_present_flag in FindAVCDimensions()
125 if (br.getBits(1)) { // seq_scaling_list_present_flag[i] in FindAVCDimensions()
152 br.getBits(1); // delta_pic_order_always_zero_flag in FindAVCDimensions()
163 br.getBits(1); // gaps_in_frame_num_value_allowed_flag in FindAVCDimensions()
167 unsigned frame_mbs_only_flag = br.getBits(1); in FindAVCDimensions()
175 br.getBits(1); // mb_adaptive_frame_field_flag in FindAVCDimensions()
178 br.getBits(1); // direct_8x8_inference_flag in FindAVCDimensions()
[all …]
DABitReader.cpp54 uint32_t ABitReader::getBits(size_t n) { in getBits() function in android::ABitReader
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp444 unsigned descriptor_tag = br->getBits(8); in findCADescriptor()
447 unsigned descriptor_length = br->getBits(8); in findCADescriptor()
456 caDescriptor->mSystemID = br->getBits(16); in findCADescriptor()
457 caDescriptor->mPID = br->getBits(16) & 0x1fff; in findCADescriptor()
472 unsigned table_id = br->getBits(8); in parseProgramMap()
478 unsigned section_syntax_indicator = br->getBits(1); in parseProgramMap()
486 MY_LOGV(" reserved = %u", br->getBits(2)); in parseProgramMap()
488 unsigned section_length = br->getBits(12); in parseProgramMap()
491 MY_LOGV(" program_number = %u", br->getBits(16)); in parseProgramMap()
492 MY_LOGV(" reserved = %u", br->getBits(2)); in parseProgramMap()
[all …]
DESQueue.cpp94 value += bits.getBits(nbits); in readVariableBits()
95 more_bits = bits.getBits(1); in readVariableBits()
137 if (bits.getBits(16) != 0x0B77) { in parseAC3SyncFrame()
147 unsigned fscod = bits.getBits(2); in parseAC3SyncFrame()
153 unsigned frmsizecod = bits.getBits(6); in parseAC3SyncFrame()
159 unsigned bsid = bits.getBits(5); in parseAC3SyncFrame()
165 unsigned bsmod __unused = bits.getBits(3); in parseAC3SyncFrame()
166 unsigned acmod = bits.getBits(3); in parseAC3SyncFrame()
175 cmixlev = bits.getBits(2); in parseAC3SyncFrame()
181 surmixlev = bits.getBits(2); in parseAC3SyncFrame()
[all …]
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64InsnHelpers.h25 static unsigned getBits(InsnType insn, int pos, int l) { in getBits() function
30 return getBits(insn, 0, 5); in getRt()
34 return getBits(insn, 10, 5); in getRt2()
38 return getBits(insn, 10, 5); in getRa()
42 return getBits(insn, 0, 5); in getRd()
46 return getBits(insn, 5, 5); in getRn()
50 return getBits(insn, 16, 5); in getRm()
54 return getBits(insn, pos, 1); in getBit()
58 return getBits(insn, 21, 3); in getOp31()
199 unsigned opc = getBits(insn, 22, 2); in isMemOp()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2CCDecoder.cpp263 last_byte = br.getBits(8); in parseSEINalUnit()
268 last_byte = br.getBits(8); in parseSEINalUnit()
285 uint8_t itu_t_t35_country_code = br.getBits(8); in parseSEINalUnit()
286 uint16_t itu_t_t35_provider_code = br.getBits(16); in parseSEINalUnit()
287 uint32_t user_identifier = br.getBits(32); in parseSEINalUnit()
288 uint8_t user_data_type_code = br.getBits(8); in parseSEINalUnit()
341 uint32_t user_identifier = br.getBits(32); in parseMPEGUserDataUnit()
342 uint8_t user_data_type = br.getBits(8); in parseMPEGUserDataUnit()
364 bool process_cc_data_flag = br.getBits(1); in parseMPEGCCData()
366 size_t cc_count = br.getBits(5); in parseMPEGCCData()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp264 last_byte = br.getBits(8); in parseSEINalUnit()
269 last_byte = br.getBits(8); in parseSEINalUnit()
286 uint8_t itu_t_t35_country_code = br.getBits(8); in parseSEINalUnit()
287 uint16_t itu_t_t35_provider_code = br.getBits(16); in parseSEINalUnit()
288 uint32_t user_identifier = br.getBits(32); in parseSEINalUnit()
289 uint8_t user_data_type_code = br.getBits(8); in parseSEINalUnit()
353 uint32_t user_identifier = br.getBits(32); in parseMPEGUserDataUnit()
354 uint8_t user_data_type = br.getBits(8); in parseMPEGUserDataUnit()
376 bool process_cc_data_flag = br.getBits(1); in parseMPEGCCData()
378 size_t cc_count = br.getBits(5); in parseMPEGCCData()
[all …]
/frameworks/av/media/libstagefright/
DMetaDataUtils.cpp94 if (bits.getBits(12) != 0xfffu) { in MakeAACCodecSpecificData()
101 unsigned profile = bits.getBits(2); in MakeAACCodecSpecificData()
106 unsigned sampling_freq_index = bits.getBits(4); in MakeAACCodecSpecificData()
107 bits.getBits(1); // private_bit in MakeAACCodecSpecificData()
108 unsigned channel_configuration = bits.getBits(3); in MakeAACCodecSpecificData()
DHevcUtils.cpp173 mParams.add(kGeneralProfileSpace, reader.getBits(2)); in parseVps()
174 mParams.add(kGeneralTierFlag, reader.getBits(1)); in parseVps()
175 mParams.add(kGeneralProfileIdc, reader.getBits(5)); in parseVps()
176 mParams.add(kGeneralProfileCompatibilityFlags, reader.getBits(32)); in parseVps()
179 ((uint64_t)reader.getBits(16) << 32) | reader.getBits(32)); in parseVps()
180 mParams.add(kGeneralLevelIdc, reader.getBits(8)); in parseVps()
/frameworks/native/libs/ui/tools/
Dlutgen.cpp171 const uint16_t r = rgb.r.getBits(); in main()
172 const uint16_t g = rgb.g.getBits(); in main()
173 const uint16_t b = rgb.b.getBits(); in main()
/frameworks/rs/
DrsComponent.h44 uint32_t getBits() const {return mBits;} in getBits() function
DrsElement.h96 uint32_t getBits() const {return mBits;} in getBits() function
DrsElement.cpp178 mBits = mComponent.getBits(); in compute()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DABitReader.h44 uint32_t getBits(size_t n);
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp2081 CHECK_EQ(bits.getBits(12), 0xfffu); in extractAndQueueAccessUnits()
2083 bool protection_absent __unused = bits.getBits(1) != 0; in extractAndQueueAccessUnits()
2085 unsigned profile = bits.getBits(2); in extractAndQueueAccessUnits()
2087 unsigned sampling_freq_index = bits.getBits(4); in extractAndQueueAccessUnits()
2088 bits.getBits(1); // private_bit in extractAndQueueAccessUnits()
2089 unsigned channel_configuration = bits.getBits(3); in extractAndQueueAccessUnits()
/frameworks/native/libs/math/include/math/
Dhalf.h88 uint16_t getBits() const noexcept { return mBits.bits; } in getBits() function