/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | arena.cc | 27 uint64_t blk_size; member 28 MemHdr(uint64_t a, uint64_t sz) : sig(0xDEADBEEF), addr(a), blk_size(sz) {} in MemHdr() 98 auto nextBlk = tr_.Search(hdr.addr + hdr.blk_size); in Deallocate() 101 hdr.blk_size += nextBlk.first.priority; in Deallocate() 109 hdr.blk_size += result.first.second; in Deallocate() 113 tr_.Insert(hdr.addr, hdr.blk_size); in Deallocate() 183 if (hdr.blk_size > req_blk) { in Reallocate() 187 auto next_blk = tr_.Search(hdr.addr + hdr.blk_size); in Reallocate() 189 hdr.blk_size += next_blk.first.priority; in Reallocate() 192 tr_.Insert(hdr.addr + req_blk, hdr.blk_size - req_blk); in Reallocate() [all …]
|
D | buddy.cc | 89 desc->blk_size = NextPowerOf2(reqSize); in AllocNoLock() 99 size_t blk_size = desc->blk_size; in FreeNoLock() local 101 FreeBuddySeg(rel_addr, blk_size, req_size); in FreeNoLock() 322 uint32_t blk_size = NextPowerOf2(req_size); in AllocBuddySeg() local 323 int start_inx = static_cast<int>(Log2(blk_size)); in AllocBuddySeg() 359 void BuddySpace::FreeBuddySeg(rel_addr_t addr, size_t blk_size, size_t req_size) { in FreeBuddySeg() argument 360 if (req_size == blk_size) { in FreeBuddySeg() 368 SetBuddySegState(addr, blk_size, STATE::kFree); in FreeBuddySeg() 369 JoinBuddySeg(addr, blk_size); in FreeBuddySeg() 371 UnTrimBuddySeg(addr, blk_size, req_size); in FreeBuddySeg()
|
D | buddy.h | 41 size_t blk_size; member 122 void FreeBuddySeg(rel_addr_t addr, size_t blk_size, size_t req_size);
|
/third_party/ffmpeg/libavcodec/ |
D | ivi_dsp.h | 150 int blk_size); 189 void ff_ivi_dc_slant_2d(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size); 242 void ff_ivi_dc_row_slant(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size); 247 void ff_ivi_dc_col_slant(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size); 258 void ff_ivi_put_dc_pixel_8x8(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size);
|
D | indeo5.c | 62 int result, i, p, tile_size, pic_size_indx, mb_size, blk_size, is_scalable; in decode_gop_header() local 134 blk_size = 8 >> get_bits1(&ctx->gb); in decode_gop_header() 135 mb_size = blk_size << !mb_size; in decode_gop_header() 137 if (p==0 && blk_size==4) { in decode_gop_header() 142 blk_size_changed = mb_size != band->mb_size || blk_size != band->blk_size; in decode_gop_header() 145 band->blk_size = blk_size; in decode_gop_header() 194 if (band->transform_size != band->blk_size) { in decode_gop_header() 195 …LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size); in decode_gop_header() 206 if (band->blk_size == 8) { in decode_gop_header() 237 band2->blk_size = band1->blk_size; in decode_gop_header() [all …]
|
D | indeo4.c | 210 ctx->planes[p].bands[i].blk_size = !p ? 8 : 4; in decode_pic_hdr() 289 int old_blk_size = band->blk_size; in decode_band_hdr() 314 band->blk_size = 8 >> (indx >> 1); in decode_band_hdr() 334 if (transform_id < 10 && band->blk_size < 8) { in decode_band_hdr() 350 if (band->blk_size != band->transform_size) { in decode_band_hdr() 351 …LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size); in decode_band_hdr() 361 if (band->blk_size != 4) { in decode_band_hdr() 365 } else if (band->blk_size != 8) { in decode_band_hdr() 371 band->scan_size = band->blk_size; in decode_band_hdr() 385 if (old_blk_size != band->blk_size) { in decode_band_hdr() [all …]
|
D | ivi.c | 87 int min_size = band->pitch * (band->blk_size - 1) + band->blk_size; in ivi_mc() 475 int blk_size) in ivi_dc_transform() argument 478 band->pitch, blk_size); in ivi_dc_transform() 498 int blk_size = band->blk_size; in ivi_decode_coded_blocks() local 499 int num_coeffs = blk_size * blk_size; in ivi_decode_coded_blocks() 500 int col_mask = blk_size - 1; in ivi_decode_coded_blocks() 567 if(band->transform_size > band->blk_size){ in ivi_decode_coded_blocks() 597 int mbn, blk, num_blocks, blk_size, ret, is_intra; in ivi_decode_blocks() local 609 blk_size = band->blk_size; in ivi_decode_blocks() 611 num_blocks = (band->mb_size != blk_size) ? 4 : 1; in ivi_decode_blocks() [all …]
|
D | sanm.c | 1143 static int codec2subblock(SANMVideoContext *ctx, int cx, int cy, int blk_size) in codec2subblock() argument 1158 if (good_mvec(ctx, cx, cy, mx, my, blk_size)) { in codec2subblock() 1161 blk_size, ctx->pitch); in codec2subblock() 1172 if (good_mvec(ctx, cx, cy, mx, my, blk_size)) { in codec2subblock() 1175 blk_size, ctx->pitch); in codec2subblock() 1181 blk_size, ctx->pitch); in codec2subblock() 1184 opcode_0xf7(ctx, cx, cy, blk_size, ctx->pitch); in codec2subblock() 1188 opcode_0xf8(ctx, cx, cy, blk_size, ctx->pitch); in codec2subblock() 1195 ctx->small_codebook[opcode - 0xf9], blk_size, ctx->pitch); in codec2subblock() 1201 ctx->codebook[bytestream2_get_byteu(&ctx->gb)], blk_size, ctx->pitch); in codec2subblock() [all …]
|
D | ivi_dsp.c | 473 int blk_size) in ff_ivi_dc_haar_2d() argument 480 for (y = 0; y < blk_size; out += pitch, y++) { in ff_ivi_dc_haar_2d() 481 for (x = 0; x < blk_size; x++) in ff_ivi_dc_haar_2d() 616 void ff_ivi_dc_slant_2d(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size) in ff_ivi_dc_slant_2d() argument 623 for (y = 0; y < blk_size; out += pitch, y++) { in ff_ivi_dc_slant_2d() 624 for (x = 0; x < blk_size; x++) in ff_ivi_dc_slant_2d() 649 void ff_ivi_dc_row_slant(const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size) in ff_ivi_dc_row_slant() argument 656 for (x = 0; x < blk_size; x++) in ff_ivi_dc_row_slant() 661 for (y = 1; y < blk_size; out += pitch, y++) { in ff_ivi_dc_row_slant() 662 for (x = 0; x < blk_size; x++) in ff_ivi_dc_row_slant() [all …]
|
D | mss3.c | 694 int x, y, i, mb_width, mb_height, blk_size, btype; in mss3_decode_frame() local 764 blk_size = 8 << !i; in mss3_decode_frame() 770 dst[i] + x * blk_size, in mss3_decode_frame() 771 c->pic->linesize[i], blk_size); in mss3_decode_frame() 775 dst[i] + x * blk_size, in mss3_decode_frame() 776 c->pic->linesize[i], blk_size); in mss3_decode_frame() 780 dst[i] + x * blk_size, in mss3_decode_frame() 781 c->pic->linesize[i], blk_size, in mss3_decode_frame() 786 dst[i] + x * blk_size, in mss3_decode_frame() 787 c->pic->linesize[i], blk_size, in mss3_decode_frame()
|
D | ivi.h | 91 typedef void (DCTransformPtr) (const int32_t *in, int16_t *out, ptrdiff_t pitch, int blk_size); 159 int blk_size; ///< block size member
|
/third_party/pulseaudio/src/tests/ |
D | lfe-filter-test.c | 44 size_t blk_size = pa_frame_size(lft->ss) * ONE_BLOCK_SAMPLES; in save_data_block() local 47 memcpy(dst, src, blk_size); in save_data_block() 54 size_t blk_size = pa_frame_size(lft->ss) * ONE_BLOCK_SAMPLES; in generate_data_block() local 56 pa_assert_se(r = pa_memblock_new(lft->pool, blk_size)); in generate_data_block() 58 memcpy(d, s + start, blk_size); in generate_data_block()
|
/third_party/libcoap/src/ |
D | block.c | 350 uint8_t blk_size; in coap_add_data_large_internal() local 414 blk_size = coap_flsll((long long)avail) - 4 - 1; in coap_add_data_large_internal() 418 if (block.szx < blk_size) in coap_add_data_large_internal() 419 blk_size = block.szx; in coap_add_data_large_internal() 430 chunk = (size_t)1 << (blk_size + 4); in coap_add_data_large_internal() 470 lg_xmit->blk_size = blk_size; in coap_add_data_large_internal() 550 (block.num << 4) | (block.m << 3) | lg_xmit->blk_size), in coap_add_data_large_internal() 578 blk_size = coap_flsll((long long)avail) - 4 - 1; in coap_add_data_large_internal() 579 block.num = block.num << (lg_xmit->blk_size - blk_size); in coap_add_data_large_internal() 580 lg_xmit->blk_size = blk_size; in coap_add_data_large_internal() [all …]
|
/third_party/f2fs-tools/mkfs/ |
D | f2fs_format.c | 557 u_int32_t blk_size, seg_size; in f2fs_init_sit_area() local 562 blk_size = 1 << get_sb(log_blocksize); in f2fs_init_sit_area() 563 seg_size = (1 << get_sb(log_blocks_per_seg)) * blk_size; in f2fs_init_sit_area() 572 sit_seg_addr *= blk_size; in f2fs_init_sit_area() 591 u_int32_t blk_size, seg_size; in f2fs_init_nat_area() local 596 blk_size = 1 << get_sb(log_blocksize); in f2fs_init_nat_area() 597 seg_size = (1 << get_sb(log_blocks_per_seg)) * blk_size; in f2fs_init_nat_area() 606 nat_seg_addr *= blk_size; in f2fs_init_nat_area()
|
/third_party/libcoap/include/coap3/ |
D | coap_block_internal.h | 79 uint8_t blk_size; /**< large block transmission size */ member
|
/third_party/f2fs-tools/fsck/ |
D | mount.c | 1128 unsigned long blk_size = sbi->blocksize; in get_valid_checkpoint() local 1139 sbi->ckpt = malloc(cp_blks * blk_size); in get_valid_checkpoint() 1176 memcpy(sbi->ckpt, cur_page, blk_size); in get_valid_checkpoint() 1191 memcpy(ckpt + i * blk_size, cur_page, blk_size); in get_valid_checkpoint()
|