/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | bit_writer_utils.c | 26 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { in BitWriterResize() argument 29 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size; in BitWriterResize() 32 bw->error_ = 1; in BitWriterResize() 35 if (needed_size <= bw->max_pos_) return 1; in BitWriterResize() 37 new_size = 2 * bw->max_pos_; in BitWriterResize() 42 bw->error_ = 1; in BitWriterResize() 45 if (bw->pos_ > 0) { in BitWriterResize() 46 assert(bw->buf_ != NULL); in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 49 WebPSafeFree(bw->buf_); in BitWriterResize() [all …]
|
D | bit_writer_utils.h | 39 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size); 41 uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw); 44 void VP8BitWriterWipeOut(VP8BitWriter* const bw); 46 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob); 47 int VP8PutBitUniform(VP8BitWriter* const bw, int bit); 48 void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits); 49 void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits); 52 int VP8BitWriterAppend(VP8BitWriter* const bw, 56 static WEBP_INLINE uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) { in VP8BitWriterPos() argument 57 const uint64_t nb_bits = 8 + bw->nb_bits_; // bw->nb_bits_ is <= 0, note in VP8BitWriterPos() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/ |
D | bit_writer_utils.c | 26 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { in BitWriterResize() argument 29 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size; in BitWriterResize() 32 bw->error_ = 1; in BitWriterResize() 35 if (needed_size <= bw->max_pos_) return 1; in BitWriterResize() 37 new_size = 2 * bw->max_pos_; in BitWriterResize() 42 bw->error_ = 1; in BitWriterResize() 45 if (bw->pos_ > 0) { in BitWriterResize() 46 assert(bw->buf_ != NULL); in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 49 WebPSafeFree(bw->buf_); in BitWriterResize() [all …]
|
D | bit_writer_utils.h | 39 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size); 41 uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw); 44 void VP8BitWriterWipeOut(VP8BitWriter* const bw); 46 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob); 47 int VP8PutBitUniform(VP8BitWriter* const bw, int bit); 48 void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits); 49 void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits); 52 int VP8BitWriterAppend(VP8BitWriter* const bw, 56 static WEBP_INLINE uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) { in VP8BitWriterPos() argument 57 const uint64_t nb_bits = 8 + bw->nb_bits_; // bw->nb_bits_ is <= 0, note in VP8BitWriterPos() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | tree_enc.c | 270 static int PutI4Mode(VP8BitWriter* const bw, int mode, in PutI4Mode() argument 272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode() 273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode() 274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode() 275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode() 276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode() 277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode() 280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode() 281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode() 282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode() [all …]
|
D | syntax_enc.c | 187 static void PutSegmentHeader(VP8BitWriter* const bw, in PutSegmentHeader() argument 191 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) { in PutSegmentHeader() 195 VP8PutBitUniform(bw, hdr->update_map_); in PutSegmentHeader() 196 if (VP8PutBitUniform(bw, update_data)) { in PutSegmentHeader() 198 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.) in PutSegmentHeader() 200 VP8PutSignedBits(bw, enc->dqm_[s].quant_, 7); in PutSegmentHeader() 203 VP8PutSignedBits(bw, enc->dqm_[s].fstrength_, 6); in PutSegmentHeader() 208 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader() 209 VP8PutBits(bw, proba->segments_[s], 8); in PutSegmentHeader() 217 static void PutFilterHeader(VP8BitWriter* const bw, in PutFilterHeader() argument [all …]
|
D | vp8l_enc.c | 765 VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) { in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument 780 VP8LPutBits(bw, codes_to_store - 4, 4); in StoreHuffmanTreeOfHuffmanTreeToBitMask() 782 VP8LPutBits(bw, code_length_bitdepth[kStorageOrder[i]], 3); in StoreHuffmanTreeOfHuffmanTreeToBitMask() 803 VP8LBitWriter* const bw, in StoreHuffmanTreeToBitMask() argument 810 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask() 813 VP8LPutBits(bw, extra_bits, 2); in StoreHuffmanTreeToBitMask() 816 VP8LPutBits(bw, extra_bits, 3); in StoreHuffmanTreeToBitMask() 819 VP8LPutBits(bw, extra_bits, 7); in StoreHuffmanTreeToBitMask() 826 static void StoreFullHuffmanCode(VP8LBitWriter* const bw, in StoreFullHuffmanCode() argument 839 VP8LPutBits(bw, 0, 1); in StoreFullHuffmanCode() [all …]
|
D | alpha_enc.c | 51 int use_quality_100, VP8LBitWriter* const bw, in EncodeLossless() argument 89 ok = (VP8LEncodeStream(&config, &picture, bw, 0 /*use_cache*/) == VP8_ENC_OK); in EncodeLossless() 91 ok = ok && !bw->error_; in EncodeLossless() 93 VP8LBitWriterWipeOut(bw); in EncodeLossless() 104 VP8BitWriter bw; member 165 VP8BitWriterInit(&result->bw, ALPHA_HEADER_LEN + output_size); in EncodeAlphaInternal() 166 ok = ok && VP8BitWriterAppend(&result->bw, &header, ALPHA_HEADER_LEN); in EncodeAlphaInternal() 167 ok = ok && VP8BitWriterAppend(&result->bw, output, output_size); in EncodeAlphaInternal() 172 ok = ok && !result->bw.error_; in EncodeAlphaInternal() 173 result->score = VP8BitWriterSize(&result->bw); in EncodeAlphaInternal() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/ |
D | tree_enc.c | 270 static int PutI4Mode(VP8BitWriter* const bw, int mode, in PutI4Mode() argument 272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode() 273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode() 274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode() 275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode() 276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode() 277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode() 280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode() 281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode() 282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode() [all …]
|
D | syntax_enc.c | 187 static void PutSegmentHeader(VP8BitWriter* const bw, in PutSegmentHeader() argument 191 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) { in PutSegmentHeader() 195 VP8PutBitUniform(bw, hdr->update_map_); in PutSegmentHeader() 196 if (VP8PutBitUniform(bw, update_data)) { in PutSegmentHeader() 198 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.) in PutSegmentHeader() 200 VP8PutSignedBits(bw, enc->dqm_[s].quant_, 7); in PutSegmentHeader() 203 VP8PutSignedBits(bw, enc->dqm_[s].fstrength_, 6); in PutSegmentHeader() 208 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader() 209 VP8PutBits(bw, proba->segments_[s], 8); in PutSegmentHeader() 217 static void PutFilterHeader(VP8BitWriter* const bw, in PutFilterHeader() argument [all …]
|
D | vp8l_enc.c | 524 VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) { in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument 539 VP8LPutBits(bw, codes_to_store - 4, 4); in StoreHuffmanTreeOfHuffmanTreeToBitMask() 541 VP8LPutBits(bw, code_length_bitdepth[kStorageOrder[i]], 3); in StoreHuffmanTreeOfHuffmanTreeToBitMask() 562 VP8LBitWriter* const bw, in StoreHuffmanTreeToBitMask() argument 569 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask() 572 VP8LPutBits(bw, extra_bits, 2); in StoreHuffmanTreeToBitMask() 575 VP8LPutBits(bw, extra_bits, 3); in StoreHuffmanTreeToBitMask() 578 VP8LPutBits(bw, extra_bits, 7); in StoreHuffmanTreeToBitMask() 585 static void StoreFullHuffmanCode(VP8LBitWriter* const bw, in StoreFullHuffmanCode() argument 598 VP8LPutBits(bw, 0, 1); in StoreFullHuffmanCode() [all …]
|
D | alpha_enc.c | 51 int use_quality_100, VP8LBitWriter* const bw, in EncodeLossless() argument 89 ok = (VP8LEncodeStream(&config, &picture, bw, 0 /*use_cache*/) == VP8_ENC_OK); in EncodeLossless() 91 ok = ok && !bw->error_; in EncodeLossless() 93 VP8LBitWriterWipeOut(bw); in EncodeLossless() 104 VP8BitWriter bw; member 165 VP8BitWriterInit(&result->bw, ALPHA_HEADER_LEN + output_size); in EncodeAlphaInternal() 166 ok = ok && VP8BitWriterAppend(&result->bw, &header, ALPHA_HEADER_LEN); in EncodeAlphaInternal() 167 ok = ok && VP8BitWriterAppend(&result->bw, output, output_size); in EncodeAlphaInternal() 172 ok = ok && !result->bw.error_; in EncodeAlphaInternal() 173 result->score = VP8BitWriterSize(&result->bw); in EncodeAlphaInternal() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/mpegpsmux/ |
D | psmux.c | 303 bits_buffer_t bw; in psmux_write_pack_header() local 309 bits_initwrite (&bw, 14, mux->packet_buf); in psmux_write_pack_header() 310 bits_write (&bw, 24, PSMUX_START_CODE_PREFIX); in psmux_write_pack_header() 311 bits_write (&bw, 8, PSMUX_PACK_HEADER); in psmux_write_pack_header() 314 bits_write (&bw, 2, 0x1); in psmux_write_pack_header() 315 bits_write (&bw, 3, (scr >> 30) & 0x07); in psmux_write_pack_header() 316 bits_write (&bw, 1, 1); in psmux_write_pack_header() 317 bits_write (&bw, 15, (scr >> 15) & 0x7fff); in psmux_write_pack_header() 318 bits_write (&bw, 1, 1); in psmux_write_pack_header() 319 bits_write (&bw, 15, scr & 0x7fff); in psmux_write_pack_header() [all …]
|
D | mpegpsmux_h264.c | 99 GstByteWriter bw; in mpegpsmux_prepare_h264() local 115 gst_byte_writer_init_with_size (&bw, gst_buffer_get_size (buf) * 2, FALSE); in mpegpsmux_prepare_h264() 137 gst_byte_writer_put_uint32_be (&bw, 0x00000001); in mpegpsmux_prepare_h264() 140 gst_byte_writer_put_data (&bw, codec_data.data + offset, sps_size); in mpegpsmux_prepare_h264() 159 gst_byte_writer_put_uint32_be (&bw, 0x00000001); in mpegpsmux_prepare_h264() 162 gst_byte_writer_put_data (&bw, codec_data.data + offset, pps_size); in mpegpsmux_prepare_h264() 195 gst_byte_writer_put_uint32_be (&bw, 0x00000001); in mpegpsmux_prepare_h264() 196 gst_byte_writer_put_data (&bw, map.data + in_offset, in mpegpsmux_prepare_h264() 202 out_buf = gst_byte_writer_reset_and_get_buffer (&bw); in mpegpsmux_prepare_h264()
|
/third_party/e2fsprogs/debugfs/ |
D | icheck.c | 41 struct block_walk_struct *bw = (struct block_walk_struct *) private; in icheck_proc() local 44 for (i=0; i < bw->num_blocks; i++) { in icheck_proc() 45 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc() 46 bw->barray[i].ino = bw->inode; in icheck_proc() 47 bw->blocks_left--; in icheck_proc() 50 if (!bw->blocks_left) in icheck_proc() 59 struct block_walk_struct bw; in do_icheck() local 75 bw.barray = malloc(sizeof(struct block_info) * argc); in do_icheck() 76 if (!bw.barray) { in do_icheck() 81 memset(bw.barray, 0, sizeof(struct block_info) * argc); in do_icheck() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | binary_writer_test.cc | 25 BinaryWriter bw; in TEST_F() local 26 bw.WriteHeader(5); in TEST_F() 28 auto res = bw.result(); in TEST_F() 41 BinaryWriter bw; in TEST_F() local 42 bw.WriteBuilder(&b); in TEST_F() 44 auto res = bw.result(); in TEST_F() 55 BinaryWriter bw; in TEST_F() local 56 bw.WriteBuilder(&b); in TEST_F() 58 auto res = bw.result(); in TEST_F() 67 BinaryWriter bw; in TEST_F() local [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/ram/rockchip/ |
D | sdram_common.c | 53 printdec(8 << cap_info->bw); in sdram_print_ddr_info() 140 cap[0] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap() 144 cap[1] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap() 181 *p_os_reg2 |= SYS_REG_ENC_BW(cap_info->bw, channel); in sdram_org_config() 207 u32 bw = cap_info->bw; in sdram_detect_col() local 212 (1ul << (col + bw - 1ul))); in sdram_detect_col() 233 u32 bw = cap_info->bw; in sdram_detect_bank() local 236 (1ul << (coltmp + bktmp + bw - 1ul))); in sdram_detect_bank() 256 u32 bw = cap_info->bw; in sdram_detect_bg() local 259 (1ul << (coltmp + bw + 1ul))); in sdram_detect_bg() [all …]
|
D | sdram_px30.c | 202 u32 bw, die_bw, col, bank; in calculate_ddrconfig() local 206 bw = cap_info->bw; in calculate_ddrconfig() 213 ddrconf = 7 + bw; in calculate_ddrconfig() 215 ddrconf = 12 - bw; in calculate_ddrconfig() 218 tmp = ((bank - 2) << 3) | (col + bw - 10); in calculate_ddrconfig() 253 cs_pst = cap_info->bw + cap_info->col + in set_ctl_address_map() 287 if (sdram_params->base.dramtype == DDR4 && cap_info->bw != 0x2) in set_ctl_address_map() 313 u32 i, bw; in check_rd_gate() local 315 bw = (readl(PHY_REG(phy_base, 0x0)) >> 4) & 0xf; in check_rd_gate() 316 switch (bw) { in check_rd_gate() [all …]
|
/third_party/toybox/toys/other/ |
D | bzcat.c | 161 static int read_block_header(struct bunzip_data *bd, struct bwdata *bw) in read_block_header() argument 170 bw->headerCRC = get_bits(bd,32); in read_block_header() 180 if ((bw->origPtr = get_bits(bd,24)) > bd->dbufSize) return RETVAL_DATA_ERROR; in read_block_header() 319 static int read_huffman_data(struct bunzip_data *bd, struct bwdata *bw) in read_huffman_data() argument 324 unsigned hh, *dbuf = bw->dbuf; in read_huffman_data() 332 byteCount = bw->byteCount; in read_huffman_data() 437 if (bw->origPtr >= (bw->writeCount = dbufCount)) return RETVAL_DATA_ERROR; in read_huffman_data() 452 static void burrows_wheeler_prep(struct bunzip_data *bd, struct bwdata *bw) in burrows_wheeler_prep() argument 455 unsigned int *dbuf = bw->dbuf; in burrows_wheeler_prep() 456 int *byteCount = bw->byteCount; in burrows_wheeler_prep() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/avi/ |
D | gstavimux.c | 1086 gst_avi_mux_start_chunk (GstByteWriter * bw, const gchar * tag, guint32 fourcc) in gst_avi_mux_start_chunk() argument 1091 gst_byte_writer_put_data (bw, (const guint8 *) tag, 4); in gst_avi_mux_start_chunk() 1093 gst_byte_writer_put_uint32_le (bw, fourcc); in gst_avi_mux_start_chunk() 1095 chunk_offset = gst_byte_writer_get_pos (bw); in gst_avi_mux_start_chunk() 1097 gst_byte_writer_put_uint32_le (bw, 0); in gst_avi_mux_start_chunk() 1103 gst_avi_mux_end_chunk (GstByteWriter * bw, guint chunk_offset) in gst_avi_mux_end_chunk() argument 1107 size = gst_byte_writer_get_pos (bw); in gst_avi_mux_end_chunk() 1109 gst_byte_writer_set_pos (bw, chunk_offset); in gst_avi_mux_end_chunk() 1110 gst_byte_writer_put_uint32_le (bw, size - chunk_offset - 4); in gst_avi_mux_end_chunk() 1111 gst_byte_writer_set_pos (bw, size); in gst_avi_mux_end_chunk() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/ipcpipeline/ |
D | gstipcpipelinecomm.c | 243 write_byte_writer_to_fd (GstIpcPipelineComm * comm, GstByteWriter * bw) in write_byte_writer_to_fd() argument 249 size = gst_byte_writer_get_size (bw); in write_byte_writer_to_fd() 250 data = gst_byte_writer_reset_and_get_data (bw); in write_byte_writer_to_fd() 264 GstByteWriter bw; in gst_ipc_pipeline_comm_write_ack_to_fd() local 270 gst_byte_writer_init (&bw); in gst_ipc_pipeline_comm_write_ack_to_fd() 271 if (!gst_byte_writer_put_uint8 (&bw, payload_type)) in gst_ipc_pipeline_comm_write_ack_to_fd() 273 if (!gst_byte_writer_put_uint32_le (&bw, id)) in gst_ipc_pipeline_comm_write_ack_to_fd() 276 if (!gst_byte_writer_put_uint32_le (&bw, size)) in gst_ipc_pipeline_comm_write_ack_to_fd() 278 if (!gst_byte_writer_put_uint32_le (&bw, ret)) in gst_ipc_pipeline_comm_write_ack_to_fd() 281 if (!write_byte_writer_to_fd (comm, &bw)) in gst_ipc_pipeline_comm_write_ack_to_fd() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | op_classes.c | 163 u8 bw) in verify_channel() argument 169 if (bw == BW40MINUS) { in verify_channel() 173 } else if (bw == BW40PLUS) { in verify_channel() 177 } else if (bw == BW80) { in verify_channel() 184 } else if (bw == BW160) { in verify_channel() 191 } else if (bw == BW80P80) { in verify_channel() 287 if (verify_channel(mode, channels[i], op_class->bw) != in wpas_op_class_supported() 297 return verify_channel(mode, 50, op_class->bw) != NOT_ALLOWED || in wpas_op_class_supported() 298 verify_channel(mode, 114, op_class->bw) != NOT_ALLOWED; in wpas_op_class_supported() 305 if (verify_channel(mode, 42, op_class->bw) != NOT_ALLOWED || in wpas_op_class_supported() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | op_classes.c | 163 u8 bw) in verify_channel() argument 169 if (bw == BW40MINUS) { in verify_channel() 173 } else if (bw == BW40PLUS) { in verify_channel() 177 } else if (bw == BW80) { in verify_channel() 184 } else if (bw == BW160) { in verify_channel() 191 } else if (bw == BW80P80) { in verify_channel() 287 if (verify_channel(mode, channels[i], op_class->bw) != in wpas_op_class_supported() 297 return verify_channel(mode, 50, op_class->bw) != NOT_ALLOWED || in wpas_op_class_supported() 298 verify_channel(mode, 114, op_class->bw) != NOT_ALLOWED; in wpas_op_class_supported() 305 if (verify_channel(mode, 42, op_class->bw) != NOT_ALLOWED || in wpas_op_class_supported() [all …]
|
/third_party/ffmpeg/tests/checkasm/ |
D | videodsp.c | 37 bw * sizeof(type), pw * sizeof(type), \ 38 bw, bh, x, y, pw, ph); \ 40 bw * sizeof(type), pw * sizeof(type), \ 41 bw, bh, x, y, pw, ph); \ 42 if (memcmp(dst0, dst1, bw * bh * sizeof(type))) \ 45 bw * sizeof(type), pw * sizeof(type), \ 46 bw, bh, x, y, pw, ph); \ 53 int bw = dst_w, bh = dst_h; \
|
/third_party/skia/third_party/externals/oboe/docs/reference/ |
D | jquery.js | 16 …bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(… argument 23 …bw=by.getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9||e===11){if(typeof … argument
|