/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_jpx_opj.cpp | 60 int prec = img->comps[0].prec; in sycc444_to_rgb() 67 std::min({img->comps[0].w, img->comps[1].w, img->comps[2].w}); in sycc444_to_rgb() 69 std::min({img->comps[0].h, img->comps[1].h, img->comps[2].h}); in sycc444_to_rgb() 76 const int* y = img->comps[0].data; in sycc444_to_rgb() 77 const int* cb = img->comps[1].data; in sycc444_to_rgb() 78 const int* cr = img->comps[2].data; in sycc444_to_rgb() 92 opj_image_data_free(img->comps[0].data); in sycc444_to_rgb() 93 opj_image_data_free(img->comps[1].data); in sycc444_to_rgb() 94 opj_image_data_free(img->comps[2].data); in sycc444_to_rgb() 95 img->comps[0].data = d0; in sycc444_to_rgb() [all …]
|
D | fx_codec_jpx_unittest.cpp | 429 img.comps = FX_Alloc(opj_image_comp_t, 3); in TEST() 449 img.comps[0] = y; in TEST() 450 img.comps[1] = u; in TEST() 451 img.comps[2] = v; in TEST() 454 EXPECT_EQ(img.comps[0].w, img.comps[1].w); in TEST() 455 EXPECT_EQ(img.comps[0].h, img.comps[1].h); in TEST() 456 EXPECT_EQ(img.comps[0].w, img.comps[2].w); in TEST() 457 EXPECT_EQ(img.comps[0].h, img.comps[2].h); in TEST() 459 EXPECT_NE(img.comps[0].w, img.comps[1].w); in TEST() 460 EXPECT_NE(img.comps[0].h, img.comps[1].h); in TEST() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | formats.c | 827 GLenum *datatype, GLuint *comps) in _mesa_uncompressed_format_to_type_and_comps() argument 843 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 848 *comps = 3; in _mesa_uncompressed_format_to_type_and_comps() 855 *comps = 3; in _mesa_uncompressed_format_to_type_and_comps() 864 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 873 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 878 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 885 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 890 *comps = 2; in _mesa_uncompressed_format_to_type_and_comps() 898 *comps = 2; in _mesa_uncompressed_format_to_type_and_comps() [all …]
|
D | mipmap.c | 47 bytes_per_pixel(GLenum datatype, GLuint comps) in bytes_per_pixel() argument 61 return b * comps; in bytes_per_pixel() 150 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument 157 assert(comps >= 1); in do_row() 158 assert(comps <= 4); in do_row() 164 if (datatype == GL_UNSIGNED_BYTE && comps == 4) { in do_row() 177 else if (datatype == GL_UNSIGNED_BYTE && comps == 3) { in do_row() 189 else if (datatype == GL_UNSIGNED_BYTE && comps == 2) { in do_row() 200 else if (datatype == GL_UNSIGNED_BYTE && comps == 1) { in do_row() 211 else if (datatype == GL_BYTE && comps == 4) { in do_row() [all …]
|
D | texcompress_etc.c | 676 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in etc2_unpack_rgb8() local 699 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps; in etc2_unpack_rgb8() 704 dst += comps; in etc2_unpack_rgb8() 723 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in etc2_unpack_srgb8() local 739 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps; in etc2_unpack_srgb8() 749 dst += comps; in etc2_unpack_srgb8() 771 const unsigned bw = 4, bh = 4, bs = 16, comps = 4; in etc2_unpack_rgba8() local 784 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps; in etc2_unpack_rgba8() 787 dst += comps; in etc2_unpack_rgba8() 809 const unsigned bw = 4, bh = 4, bs = 16, comps = 4; in etc2_unpack_srgb8_alpha8() local [all …]
|
/external/python/cpython3/Tools/scripts/ |
D | dutree.py | 15 comps = filename.split('/') 16 if comps[0] == '': comps[0] = '/' 17 if comps[len(comps)-1] == '': del comps[len(comps)-1] 18 total, d = store(size, comps, total, d) 25 def store(size, comps, total, d): argument 26 if comps == []: 28 if comps[0] not in d: 29 d[comps[0]] = None, {} 30 t1, d1 = d[comps[0]] 31 d[comps[0]] = store(size, comps[1:], t1, d1)
|
/external/python/cpython2/Tools/scripts/ |
D | dutree.py | 15 comps = filename.split('/') 16 if comps[0] == '': comps[0] = '/' 17 if comps[len(comps)-1] == '': del comps[len(comps)-1] 18 total, d = store(size, comps, total, d) 25 def store(size, comps, total, d): argument 26 if comps == []: 28 if not d.has_key(comps[0]): 29 d[comps[0]] = None, {} 30 t1, d1 = d[comps[0]] 31 d[comps[0]] = store(size, comps[1:], t1, d1)
|
/external/deqp/modules/gles3/scripts/ |
D | gen-conversions.py | 77 def combineVec(comps): argument 79 for ndx in range(len(comps[0])): 82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 87 def combineIVec(comps): argument 89 for ndx in range(len(comps[0])): 90 res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toInt().getScalars() for x in comps]))) 93 def combineUVec(comps): argument 94 return [x.toUint() for x in combineIVec(comps)] 96 def combineBVec(comps): argument 98 for ndx in range(len(comps[0])): [all …]
|
/external/python/cpython2/Lib/ |
D | os2emxpath.py | 128 comps = path.split('/') 130 while i < len(comps): 131 if comps[i] == '.': 132 del comps[i] 133 elif comps[i] == '..' and i > 0 and comps[i-1] not in ('', '..'): 134 del comps[i-1:i+1] 136 elif comps[i] == '' and i > 0 and comps[i-1] != '': 137 del comps[i] 141 if not prefix and not comps: 142 comps.append('.') [all …]
|
D | macpath.py | 139 comps = s.split(":") 141 while i < len(comps)-1: 142 if comps[i] == "" and comps[i-1] != "": 144 del comps[i-1:i+1] 152 s = ":".join(comps) 155 if s[-1] == ":" and len(comps) > 2 and s != ":"*len(s):
|
D | ntpath.py | 446 comps = path.split("\\") 448 while i < len(comps): 449 if comps[i] in ('.', ''): 450 del comps[i] 451 elif comps[i] == '..': 452 if i > 0 and comps[i-1] != '..': 453 del comps[i-1:i+1] 456 del comps[i] 462 if not prefix and not comps: 463 comps.append(dot) [all …]
|
/external/pdfium/third_party/libopenjpeg20/ |
D | image.c | 51 image->comps = (opj_image_comp_t*)opj_calloc(1, in opj_image_create() 53 if (!image->comps) { in opj_image_create() 61 opj_image_comp_t *comp = &image->comps[compno]; in opj_image_create() 95 if (image->comps) { in opj_image_destroy() 100 opj_image_comp_t *image_comp = &(image->comps[compno]); in opj_image_destroy() 105 opj_free(image->comps); in opj_image_destroy() 140 l_img_comp = p_image_header->comps; in opj_image_comp_header_update() 179 if (p_image_dest->comps) { in opj_copy_image_header() 181 opj_image_comp_t *image_comp = &(p_image_dest->comps[compno]); in opj_copy_image_header() 186 opj_free(p_image_dest->comps); in opj_copy_image_header() [all …]
|
D | tcd.c | 64 opj_tcd_tilecomp_t *tilec = &tile->comps[compno]; in tcd_dump() 249 opj_tcd_tilecomp_t *tilec = &tcd_tile->comps[compno]; in opj_tcd_makelayer() 350 opj_tcd_tilecomp_t *tilec = &tcd_tile->comps[compno]; in opj_tcd_makelayer_fixed() 358 * (OPJ_FLOAT32)(tcd->image->comps[compno].prec / 16.0)); in opj_tcd_makelayer_fixed() 381 OPJ_INT32 imsb = (OPJ_INT32)(tcd->image->comps[compno].prec - in opj_tcd_makelayer_fixed() 466 opj_tcd_tilecomp_t *tilec = &tcd_tile->comps[compno]; in opj_tcd_rateallocate() 521 maxSE += (((OPJ_FLOAT64)(1 << tcd->image->comps[compno].prec) - 1.0) in opj_tcd_rateallocate() 522 * ((OPJ_FLOAT64)(1 << tcd->image->comps[compno].prec) - 1.0)) in opj_tcd_rateallocate() 657 p_tcd->tcd_image->tiles->comps = (opj_tcd_tilecomp_t *) opj_calloc( in opj_tcd_init() 659 if (! p_tcd->tcd_image->tiles->comps) { in opj_tcd_init() [all …]
|
D | 0014-opj_jp2_read_ihdr_leak.patch | 9 + opj_free(jp2->comps); 10 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, 12 if (jp2->comps == 0) { 17 + jp2->comps = NULL;
|
/external/deqp/modules/gles2/scripts/ |
D | gen-conversions.py | 77 def combineVec(comps): argument 79 for ndx in range(len(comps[0])): 82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 87 def combineIVec(comps): argument 89 for ndx in range(len(comps[0])): 90 res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toInt().getScalars() for x in comps]))) 93 def combineBVec(comps): argument 95 for ndx in range(len(comps[0])): 96 …res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toBool().getScalars() for x in comps]))) 99 def combineMat(numCols, numRows, comps): argument [all …]
|
/external/syzkaller/prog/ |
D | hints_test.go | 18 comps CompMap member 25 comps CompMap member 61 checkConstArg(constArg, test.comps, func() { 197 checkDataArg(dataArg, test.comps, func() { 369 res := shrinkExpand(test.in, test.comps) 388 comps := make(CompMap) 390 comps.AddComp(v, r.randInt()) 392 p.MutateWithHints(i, comps, func(p1 *Prog) {}) 436 comps CompMap 442 comps: CompMap{0x12111009: uint64Set{0x10: true}}, [all …]
|
/external/ImageMagick/coders/ |
D | jp2.c | 367 if ((AcquireMagickResource(WidthResource,(size_t) jp2_image->comps[0].w) == MagickFalse) || in ReadJP2Image() 368 (AcquireMagickResource(HeightResource,(size_t) jp2_image->comps[0].h) == MagickFalse)) in ReadJP2Image() 382 jp2_image->comps[0].w-1,jp2_image->comps[0].h-1); in ReadJP2Image() 398 if ((jp2_image->comps[0].dx == 0) || (jp2_image->comps[0].dy == 0) || in ReadJP2Image() 399 (jp2_image->comps[0].prec != jp2_image->comps[i].prec) || in ReadJP2Image() 400 (jp2_image->comps[0].sgnd != jp2_image->comps[i].sgnd) || in ReadJP2Image() 401 ((image->ping == MagickFalse) && (jp2_image->comps[i].data == NULL))) in ReadJP2Image() 411 image->columns=(size_t) jp2_image->comps[0].w; in ReadJP2Image() 412 image->rows=(size_t) jp2_image->comps[0].h; in ReadJP2Image() 413 image->depth=jp2_image->comps[0].prec; in ReadJP2Image() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodemv.c | 180 nmv_component *comp = &mvc->comps[i]; in vp9_write_nmv_probs() 181 nmv_component_counts *comp_counts = &counts->comps[i]; in vp9_write_nmv_probs() 194 write_mv_update(vp9_mv_fp_tree, mvc->comps[i].class0_fp[j], in vp9_write_nmv_probs() 195 counts->comps[i].class0_fp[j], MV_FP_SIZE, w); in vp9_write_nmv_probs() 197 write_mv_update(vp9_mv_fp_tree, mvc->comps[i].fp, counts->comps[i].fp, in vp9_write_nmv_probs() 203 update_mv(w, counts->comps[i].class0_hp, &mvc->comps[i].class0_hp, in vp9_write_nmv_probs() 205 update_mv(w, counts->comps[i].hp, &mvc->comps[i].hp, MV_UPDATE_PROB); in vp9_write_nmv_probs() 219 encode_mv_component(w, diff.row, &mvctx->comps[0], usehp); in vp9_encode_mv() 222 encode_mv_component(w, diff.col, &mvctx->comps[1], usehp); in vp9_encode_mv() 235 build_nmv_component_cost_table(mvcost[0], &ctx->comps[0], usehp); in vp9_build_nmv_cost_table() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_linking_helpers.c | 205 uint8_t *comps, in get_slot_component_masks_and_interp_types() argument 240 comps[location + i] |= ((1 << comps_slot2) - 1); in get_slot_component_masks_and_interp_types() 250 comps[location + i] |= in get_slot_component_masks_and_interp_types() 254 comps[location + i] |= in get_slot_component_masks_and_interp_types() 350 compact_components(nir_shader *producer, nir_shader *consumer, uint8_t *comps, in compact_components() argument 400 uint8_t used_comps = comps[location]; in compact_components() 410 uint8_t cursor_used_comps = comps[cursor[interp]]; in compact_components() 452 if (comps[location] & 1 << var->data.location_frac) { in compact_components() 453 comps[location] ^= 1 << var->data.location_frac; in compact_components() 454 comps[cursor[interp]] |= new_var_comps; in compact_components() [all …]
|
D | nir_lower_alu_to_scalar.c | 131 nir_ssa_def *comps[2]; in lower_alu_instr_scalar() local 132 comps[0] = nir_unpack_half_2x16_split_x(b, instr->src[0].src.ssa); in lower_alu_instr_scalar() 133 comps[1] = nir_unpack_half_2x16_split_y(b, instr->src[0].src.ssa); in lower_alu_instr_scalar() 134 nir_ssa_def *vec = nir_vec(b, comps, 2); in lower_alu_instr_scalar() 210 nir_ssa_def *comps[] = { NULL, NULL, NULL, NULL }; in lower_alu_instr_scalar() local 232 comps[chan] = &lower->dest.dest.ssa; in lower_alu_instr_scalar() 238 nir_ssa_def *vec = nir_vec(b, comps, num_components); in lower_alu_instr_scalar()
|
/external/python/cpython3/Lib/ |
D | macpath.py | 166 comps = s.split(colon) 168 while i < len(comps)-1: 169 if not comps[i] and comps[i-1]: 171 del comps[i-1:i+1] 179 s = colon.join(comps) 182 if s[-1:] == colon and len(comps) > 2 and s != colon*len(s):
|
D | ntpath.py | 479 comps = path.split(sep) 481 while i < len(comps): 482 if not comps[i] or comps[i] == curdir: 483 del comps[i] 484 elif comps[i] == pardir: 485 if i > 0 and comps[i-1] != pardir: 486 del comps[i-1:i+1] 489 del comps[i] 495 if not prefix and not comps: 496 comps.append(curdir) [all …]
|
/external/libaom/libaom/av1/common/ |
D | entropy.c | 74 RESET_CDF_COUNTER(nmv->comps[i].classes_cdf, MV_CLASSES); in reset_nmv_counter() 75 RESET_CDF_COUNTER(nmv->comps[i].class0_fp_cdf, MV_FP_SIZE); in reset_nmv_counter() 76 RESET_CDF_COUNTER(nmv->comps[i].fp_cdf, MV_FP_SIZE); in reset_nmv_counter() 77 RESET_CDF_COUNTER(nmv->comps[i].sign_cdf, 2); in reset_nmv_counter() 78 RESET_CDF_COUNTER(nmv->comps[i].class0_hp_cdf, 2); in reset_nmv_counter() 79 RESET_CDF_COUNTER(nmv->comps[i].hp_cdf, 2); in reset_nmv_counter() 80 RESET_CDF_COUNTER(nmv->comps[i].class0_cdf, CLASS0_SIZE); in reset_nmv_counter() 81 RESET_CDF_COUNTER(nmv->comps[i].bits_cdf, 2); in reset_nmv_counter()
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_entropymv.c | 145 inc_mv_component(mv->row, &counts->comps[0], 1, 1); in vp9_inc_mv() 149 inc_mv_component(mv->col, &counts->comps[1], 1, 1); in vp9_inc_mv() 165 nmv_component *comp = &fc->comps[i]; in vp9_adapt_mv_probs() 166 const nmv_component *pre_comp = &pre_fc->comps[i]; in vp9_adapt_mv_probs() 167 const nmv_component_counts *c = &counts->comps[i]; in vp9_adapt_mv_probs()
|
/external/selinux/python/sepolgen/tests/ |
D | test_access.py | 248 comps = [("foo", "what", "dir"), 259 for i in range(len(comps)): 260 if comps[i][0] == av.src_type and \ 261 comps[i][1] == av.tgt_type and \ 262 comps[i][2] == av.obj_class: 291 comps = [("foo", "what", "dir"), 302 for i in range(len(comps)): 303 if comps[i][0] == av.src_type and \ 304 comps[i][1] == av.tgt_type and \ 305 comps[i][2] == av.obj_class:
|