/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | Pack.java | 8 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument 10 int n = bs[ off] << 24; in bigEndianToInt() 11 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt() 12 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt() 13 n |= (bs[++off] & 0xff); in bigEndianToInt() 17 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument 21 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt() 28 byte[] bs = new byte[4]; in intToBigEndian() 29 intToBigEndian(n, bs, 0); in intToBigEndian() 30 return bs; in intToBigEndian() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Pack.java | 5 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument 7 int n = bs[ off] << 24; in bigEndianToInt() 8 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt() 9 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt() 10 n |= (bs[++off] & 0xff); in bigEndianToInt() 14 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument 18 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt() 25 byte[] bs = new byte[4]; in intToBigEndian() 26 intToBigEndian(n, bs, 0); in intToBigEndian() 27 return bs; in intToBigEndian() [all …]
|
/external/aac/libMpegTPDec/src/ |
D | tpdec_adts.cpp | 109 if (pAdts->bs.protection_absent) { in adtsRead_CrcStartReg() 123 if (pAdts->bs.protection_absent == 0) in adtsRead_CrcEndReg() 134 if (pAdts->bs.protection_absent) in adtsRead_CrcCheck() 178 STRUCT_ADTS_BS bs; in adtsRead_DecodeHeader() local 190 bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id); in adtsRead_DecodeHeader() 191 bs.layer = FDKreadBits(hBs, Adts_Length_Layer); in adtsRead_DecodeHeader() 192 bs.protection_absent = FDKreadBits(hBs, Adts_Length_ProtectionAbsent); in adtsRead_DecodeHeader() 193 bs.profile = FDKreadBits(hBs, Adts_Length_Profile); in adtsRead_DecodeHeader() 194 bs.sample_freq_index = FDKreadBits(hBs, Adts_Length_SamplingFrequencyIndex); in adtsRead_DecodeHeader() 195 bs.private_bit = FDKreadBits(hBs, Adts_Length_PrivateBit); in adtsRead_DecodeHeader() [all …]
|
D | tpdec_adif.cpp | 100 HANDLE_FDK_BITSTREAM bs in adifRead_DecodeHeader() argument 105 UINT startAnchor = FDKgetValidBits(bs); in adifRead_DecodeHeader() 111 if (FDKreadBits(bs,8) != 'A') { in adifRead_DecodeHeader() 114 if (FDKreadBits(bs,8) != 'D') { in adifRead_DecodeHeader() 117 if (FDKreadBits(bs,8) != 'I') { in adifRead_DecodeHeader() 120 if (FDKreadBits(bs,8) != 'F') { in adifRead_DecodeHeader() 124 if ( (pAdifHeader->CopyrightIdPresent = FDKreadBits(bs,1)) != 0 ) in adifRead_DecodeHeader() 125 FDKpushBiDirectional(bs,72); /* CopyrightId */ in adifRead_DecodeHeader() 128 pAdifHeader->OriginalCopy = FDKreadBits(bs,1); in adifRead_DecodeHeader() 129 pAdifHeader->Home = FDKreadBits(bs,1); in adifRead_DecodeHeader() [all …]
|
D | tpdec_latm.cpp | 100 UINT CLatmDemux_GetValue(HANDLE_FDK_BITSTREAM bs) in CLatmDemux_GetValue() argument 105 bytesForValue = (UCHAR) FDKreadBits(bs,2); in CLatmDemux_GetValue() 109 tmp = (UCHAR) FDKreadBits(bs,8); in CLatmDemux_GetValue() 119 HANDLE_FDK_BITSTREAM bs, in CLatmDemux_ReadAudioMuxElement() argument 130 pLatmDemux->m_useSameStreamMux = FDKreadBits(bs,1); in CLatmDemux_ReadAudioMuxElement() 133 …if ((ErrorStatus = CLatmDemux_ReadStreamMuxConfig(bs, pLatmDemux, pTpDecCallbacks, pAsc, pfConfigF… in CLatmDemux_ReadAudioMuxElement() 146 if ((ErrorStatus = CLatmDemux_ReadPayloadLengthInfo(bs,pLatmDemux))) { in CLatmDemux_ReadAudioMuxElement() 158 HANDLE_FDK_BITSTREAM bs, in CLatmDemux_Read() argument 172 cntBits = FDKgetValidBits(bs); in CLatmDemux_Read() 178 …if ((ErrorStatus = CLatmDemux_ReadAudioMuxElement(bs, pLatmDemux, (tt != TT_MP4_LATM_MCP0), pTpDec… in CLatmDemux_Read() [all …]
|
D | tpdec_asc.cpp | 126 HANDLE_FDK_BITSTREAM bs, in CProgramConfig_ReadHeightExt() argument 135 crcReg = FDKcrcStartReg(&crcInfo, bs, 0); in CProgramConfig_ReadHeightExt() 136 UINT startAnchor = FDKgetValidBits(bs); in CProgramConfig_ReadHeightExt() 139 FDK_ASSERT(bs != NULL); in CProgramConfig_ReadHeightExt() 143 && (FDKreadBits(bs,8) == PCE_HEIGHT_EXT_SYNC) ) in CProgramConfig_ReadHeightExt() 149 pPce->FrontElementHeightInfo[i] = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_ReadHeightExt() 153 pPce->SideElementHeightInfo[i] = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_ReadHeightExt() 157 pPce->BackElementHeightInfo[i] = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_ReadHeightExt() 159 FDKbyteAlign(bs, alignmentAnchor); in CProgramConfig_ReadHeightExt() 161 FDKcrcEndReg(&crcInfo, bs, crcReg); in CProgramConfig_ReadHeightExt() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_mpeg12_bitstream.c | 627 motion_vector(struct vl_mpg12_bs *bs, int r, int s, int dmv, short delta[2], short dmvector[2]) in motion_vector() argument 632 int r_size = bs->desc->f_code[s][t]; in motion_vector() 634 vl_vlc_fillbits(&bs->vlc); in motion_vector() 635 motion_code = vl_vlc_get_vlclbf(&bs->vlc, tbl_B10, 11); in motion_vector() 639 int residual = vl_vlc_get_uimsbf(&bs->vlc, r_size) + 1; in motion_vector() 646 dmvector[t] = vl_vlc_get_vlclbf(&bs->vlc, tbl_B11, 2); in motion_vector() 662 motion_vector_frame(struct vl_mpg12_bs *bs, int s, struct pipe_mpeg12_macroblock *mb) in motion_vector_frame() argument 668 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_frame() 669 motion_vector(bs, 0, s, dmv, delta, dmvector); in motion_vector_frame() 670 mb->PMV[0][s][0] = wrap(mb->PMV[0][s][0] + delta[0], bs->desc->f_code[s][0]); in motion_vector_frame() [all …]
|
/external/antlr/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/ |
D | BitSet.pm | 14 ok my $bs = $class->new(); 15 isa_ok $bs, $class; 20 my $bs = $self->class->new({ bits => '001' }); 21 ok !$bs->member(0); 22 ok !$bs->member(1); 23 ok $bs->member(2); 24 ok !$bs->member(3); 25 is "$bs", '{2}'; 30 my $bs = $self->class->new({ number => 0x10 }); 31 ok $bs->member(4); [all …]
|
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 237 ByteBuffer bs = ByteBuffer.wrap(bytes, 0, limit); in runTestASCIIBasedConverter() local 239 smBufDecode(decoder, converter, bs, us, true); in runTestASCIIBasedConverter() 240 smBufDecode(decoder, converter, bs, us, false); in runTestASCIIBasedConverter() 241 smBufEncode(encoder, converter, us, bs, true); in runTestASCIIBasedConverter() 242 smBufEncode(encoder, converter, us, bs, false); in runTestASCIIBasedConverter() 244 bs = ByteBuffer.wrap(bytes, i, 1).slice(); in runTestASCIIBasedConverter() 249 smBufDecode(decoder, converter, bs, us, true, false, true); in runTestASCIIBasedConverter() 253 smBufDecode(decoder, converter, bs, us, true, false, false); in runTestASCIIBasedConverter() 257 smBufEncode(encoder, converter, us, bs, true, false, true); in runTestASCIIBasedConverter() 261 smBufEncode(encoder, converter, us, bs, true, false, false); in runTestASCIIBasedConverter() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_reconintra.c | 51 static INLINE void d207_predictor(uint8_t *dst, ptrdiff_t stride, int bs, in d207_predictor() argument 56 for (r = 0; r < bs - 1; ++r) in d207_predictor() 58 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor() 62 for (r = 0; r < bs - 2; ++r) in d207_predictor() 65 dst[(bs - 2) * stride] = ROUND_POWER_OF_TWO(left[bs - 2] + in d207_predictor() 66 left[bs - 1] * 3, 2); in d207_predictor() 67 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor() 71 for (c = 0; c < bs - 2; ++c) in d207_predictor() 72 dst[(bs - 1) * stride + c] = left[bs - 1]; in d207_predictor() 74 for (r = bs - 2; r >= 0; --r) in d207_predictor() [all …]
|
/external/bzip2/ |
D | bzip2recover.c | 156 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenReadStream() local 157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenReadStream() 158 bs->handle = stream; in bsOpenReadStream() 159 bs->buffer = 0; in bsOpenReadStream() 160 bs->buffLive = 0; in bsOpenReadStream() 161 bs->mode = 'r'; in bsOpenReadStream() 162 return bs; in bsOpenReadStream() 169 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenWriteStream() local 170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenWriteStream() 171 bs->handle = stream; in bsOpenWriteStream() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | partitioned_matrix_view_impl.h | 52 const CompressedRowBlockStructure* bs = matrix_.block_structure(); in PartitionedMatrixView() local 53 CHECK_NOTNULL(bs); in PartitionedMatrixView() 55 num_col_blocks_f_ = bs->cols.size() - num_col_blocks_e_; in PartitionedMatrixView() 63 for (int r = 0; r < bs->rows.size(); ++r) { in PartitionedMatrixView() 64 const vector<Cell>& cells = bs->rows[r].cells; in PartitionedMatrixView() 74 for (int c = 0; c < bs->cols.size(); ++c) { in PartitionedMatrixView() 75 const Block& block = bs->cols[c]; in PartitionedMatrixView() 100 const CompressedRowBlockStructure* bs = matrix_.block_structure(); in RightMultiplyE() local 106 const Cell& cell = bs->rows[r].cells[0]; in RightMultiplyE() 107 const int row_block_pos = bs->rows[r].block.position; in RightMultiplyE() [all …]
|
D | visibility_test.cc | 61 CompressedRowBlockStructure bs; in TEST() local 65 bs.rows.push_back(CompressedRow()); in TEST() 66 CompressedRow& row = bs.rows.back(); in TEST() 75 bs.rows.push_back(CompressedRow()); in TEST() 76 CompressedRow& row = bs.rows.back(); in TEST() 85 bs.rows.push_back(CompressedRow()); in TEST() 86 CompressedRow& row = bs.rows.back(); in TEST() 95 bs.rows.push_back(CompressedRow()); in TEST() 96 CompressedRow& row = bs.rows.back(); in TEST() 102 bs.cols.resize(num_cols); in TEST() [all …]
|
D | linear_least_squares_problems.cc | 295 CompressedRowBlockStructure* bs = new CompressedRowBlockStructure; in LinearLeastSquaresProblem2() local 299 bs->cols.push_back(Block()); in LinearLeastSquaresProblem2() 300 bs->cols.back().size = 1; in LinearLeastSquaresProblem2() 301 bs->cols.back().position = c; in LinearLeastSquaresProblem2() 311 bs->rows.push_back(CompressedRow()); in LinearLeastSquaresProblem2() 312 CompressedRow& row = bs->rows.back(); in LinearLeastSquaresProblem2() 324 bs->rows.push_back(CompressedRow()); in LinearLeastSquaresProblem2() 325 CompressedRow& row = bs->rows.back(); in LinearLeastSquaresProblem2() 337 bs->rows.push_back(CompressedRow()); in LinearLeastSquaresProblem2() 338 CompressedRow& row = bs->rows.back(); in LinearLeastSquaresProblem2() [all …]
|
D | schur_eliminator_impl.h | 81 Init(int num_eliminate_blocks, const CompressedRowBlockStructure* bs) { in Init() argument 88 const int num_col_blocks = bs->cols.size(); in Init() 89 const int num_row_blocks = bs->rows.size(); in Init() 102 lhs_num_rows += bs->cols[i].size; in Init() 112 const int chunk_block_id = bs->rows[r].cells.front().block_id; in Init() 122 const int e_block_size = bs->cols[chunk_block_id].size; in Init() 127 const CompressedRow& row = bs->rows[r + chunk.size]; in Init() 138 buffer_size += e_block_size * bs->cols[cell.block_id].size; in Init() 183 const CompressedRowBlockStructure* bs = A->block_structure(); in Eliminate() local 184 const int num_col_blocks = bs->cols.size(); in Eliminate() [all …]
|
D | detect_structure.cc | 38 void DetectStructure(const CompressedRowBlockStructure& bs, in DetectStructure() argument 43 const int num_row_blocks = bs.rows.size(); in DetectStructure() 51 const CompressedRow& row = bs.rows[r]; in DetectStructure() 71 *e_block_size = bs.cols[e_block_id].size; in DetectStructure() 73 *e_block_size != bs.cols[e_block_id].size) { in DetectStructure() 76 << bs.cols[e_block_id].size; in DetectStructure() 83 *f_block_size = bs.cols[f_block_id].size; in DetectStructure() 87 if (*f_block_size != bs.cols[row.cells[c].block_id].size) { in DetectStructure() 90 << bs.cols[row.cells[c].block_id].size; in DetectStructure()
|
/external/aac/libAACdec/src/ |
D | aacdec_drc.cpp | 302 HANDLE_FDK_BITSTREAM bs ) in parseExcludedChannels() argument 309 if (FDKreadBits(bs,1)) { in parseExcludedChannels() 315 while (FDKreadBits(bs,1)) { in parseExcludedChannels() 317 if (FDKreadBits(bs,1)) { in parseExcludedChannels() 341 HANDLE_FDK_BITSTREAM bs, in aacDecoder_drcMarkPayload() argument 351 bsStartPos = FDKgetValidBits(bs); in aacDecoder_drcMarkPayload() 358 if (FDKreadBits(bs,1)) { /* pce_tag_present */ in aacDecoder_drcMarkPayload() 359 FDKreadBits(bs,8); /* pce_instance_tag + drc_tag_reserved_bits */ in aacDecoder_drcMarkPayload() 363 if (FDKreadBits(bs,1)) { /* excluded_chns_present */ in aacDecoder_drcMarkPayload() 364 FDKreadBits(bs,7); /* exclude mask [0..7] */ in aacDecoder_drcMarkPayload() [all …]
|
D | aacdec_hcr_bit.cpp | 124 UINT HcrGetABitFromBitstream(HANDLE_FDK_BITSTREAM bs, in HcrGetABitFromBitstream() argument 133 readBitOffset = *pLeftStartOfSegment-FDKgetBitCnt(bs); in HcrGetABitFromBitstream() 135 FDKpushBiDirectional(bs, readBitOffset); in HcrGetABitFromBitstream() 138 bit = FDKreadBits(bs, 1); in HcrGetABitFromBitstream() 143 readBitOffset = *pRightStartOfSegment-FDKgetBitCnt(bs); in HcrGetABitFromBitstream() 145 FDKpushBiDirectional(bs, readBitOffset); in HcrGetABitFromBitstream() 149 bit = FDKreadBits(bs, 1); in HcrGetABitFromBitstream() 150 FDKpushBack(bs, 2); in HcrGetABitFromBitstream()
|
/external/vboot_reference/scripts/image_signing/ |
D | firmware_boot.sh | 46 dd if=${input} of=dev.bin bs=1 skip=${rw_a_offset} count=${rw_a_size} 47 dd if=${input} of=nor.bin bs=1 skip=${rw_b_offset} count=${rw_b_size} 52 dd if=/dev/urandom of=bad.bin bs=1 count=${rw_b_size} 53 dd if=nor.bin of=bad.bin conv=notrunc bs=1 count=65536 58 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} 59 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} 64 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} 65 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} 70 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} 71 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_denoiser.c | 37 static int absdiff_thresh(BLOCK_SIZE bs, int increase_denoising) { in absdiff_thresh() argument 38 (void)bs; in absdiff_thresh() 42 static int delta_thresh(BLOCK_SIZE bs, int increase_denoising) { in delta_thresh() argument 43 (void)bs; in delta_thresh() 48 static int noise_motion_thresh(BLOCK_SIZE bs, int increase_denoising) { in noise_motion_thresh() argument 49 (void)bs; in noise_motion_thresh() 54 static unsigned int sse_thresh(BLOCK_SIZE bs, int increase_denoising) { in sse_thresh() argument 55 return widths[bs] * heights[bs] * (increase_denoising ? 60 : 40); in sse_thresh() 58 static int sse_diff_thresh(BLOCK_SIZE bs, int increase_denoising, in sse_diff_thresh() argument 61 noise_motion_thresh(bs, increase_denoising)) { in sse_diff_thresh() [all …]
|
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ |
D | to_bytes.pass.cpp | 28 std::string bs = myconv.to_bytes(ws[0]); in main() local 29 assert(bs == "\xF1\x80\x80\x83"); in main() 30 bs = myconv.to_bytes(ws.c_str()); in main() 31 assert(bs == "\xF1\x80\x80\x83"); in main() 32 bs = myconv.to_bytes(ws); in main() 33 assert(bs == "\xF1\x80\x80\x83"); in main() 34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in main() 35 assert(bs == "\xF1\x80\x80\x83"); in main() 36 bs = myconv.to_bytes(L""); in main() 37 assert(bs.size() == 0); in main()
|
/external/e2fsprogs/util/ |
D | copy_sparse.c | 93 long lb, i, fd, ofd, bs, block, numblocks; in copy_sparse_file() local 115 if (ioctl(fd, FIGETBSZ, &bs) < 0) { in copy_sparse_file() 120 if (bs < 0) { in copy_sparse_file() 121 printf("%s: Invalid block size: %ld\n", src, bs); in copy_sparse_file() 125 printf("Blocksize of file %s is %ld\n", src, bs); in copy_sparse_file() 126 numblocks = (fileinfo.st_size + (bs-1)) / bs; in copy_sparse_file() 132 bs = 1024; in copy_sparse_file() 141 buf = malloc(bs); in copy_sparse_file() 152 should_be = ((off64_t) lb) * bs; in copy_sparse_file() 167 got = full_read(fd, buf, bs); in copy_sparse_file() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/ |
D | Streams.java | 24 byte[] bs = new byte[BUFFER_SIZE]; in drain() 25 while (inStr.read(bs, 0, bs.length) >= 0) in drain() 112 byte[] bs = new byte[BUFFER_SIZE]; in pipeAll() 114 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) in pipeAll() 116 outStr.write(bs, 0, numRead); in pipeAll() 132 byte[] bs = new byte[BUFFER_SIZE]; in pipeAllLimited() 134 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) in pipeAllLimited() 141 outStr.write(bs, 0, numRead); in pipeAllLimited()
|
/external/libvpx/libvpx/vpx_mem/memory_manager/ |
D | hmm_shrink.c | 40 U(size_bau) bs = BLOCK_BAUS(last_block); in U() 49 (PREV_BLOCK_BAUS(last_block) && (n_baus_to_shrink == bs)) || in U() 50 (n_baus_to_shrink <= (U(size_bau))(bs - MIN_BLOCK_BAUS)); in U() 55 (U(size_bau))(bs + DUMMY_END_BLOCK_BAUS)))) { in U() 59 bs -= n_baus_to_shrink; in U() 61 if (bs) { in U() 65 last_block->block_size = bs; in U() 70 (head_record *) BAUS_FORWARD(last_block, bs); in U() 71 dummy_end_block->previous_block_size = bs; in U()
|
/external/valgrind/auxprogs/ |
D | DotToScc.hs | 213 utSetUnion (MkSet []) (MkSet (b:bs)) = (MkSet (b:bs)) 215 utSetUnion (MkSet (a:as)) (MkSet (b:bs)) 216 | a < b = MkSet (a: (unMkSet (utSetUnion (MkSet as) (MkSet (b:bs))))) 217 | a == b = MkSet (a: (unMkSet (utSetUnion (MkSet as) (MkSet bs)))) 218 | a > b = MkSet (b: (unMkSet (utSetUnion (MkSet (a:as)) (MkSet bs)))) 226 utSetIntersection (MkSet []) (MkSet (b:bs)) = (MkSet []) 228 utSetIntersection (MkSet (a:as)) (MkSet (b:bs)) 229 | a < b = utSetIntersection (MkSet as) (MkSet (b:bs)) 230 | a == b = MkSet (a: (unMkSet (utSetIntersection (MkSet as) (MkSet bs)))) 231 | a > b = utSetIntersection (MkSet (a:as)) (MkSet bs) [all …]
|