/external/pdfium/core/fxcodec/jpx/ |
D | cjpx_decoder.cpp | 92 int prec = img->comps[0].prec; in sycc444_to_rgb() 99 std::min({img->comps[0].w, img->comps[1].w, img->comps[2].w}); in sycc444_to_rgb() 101 std::min({img->comps[0].h, img->comps[1].h, img->comps[2].h}); in sycc444_to_rgb() 108 const int* y = img->comps[0].data; in sycc444_to_rgb() 109 const int* cb = img->comps[1].data; in sycc444_to_rgb() 110 const int* cr = img->comps[2].data; in sycc444_to_rgb() 125 opj_image_data_free(img->comps[0].data); in sycc444_to_rgb() 126 opj_image_data_free(img->comps[1].data); in sycc444_to_rgb() 127 opj_image_data_free(img->comps[2].data); in sycc444_to_rgb() 128 img->comps[0].data = data.value().r.release(); in sycc444_to_rgb() [all …]
|
D | jpx_unittest.cpp | 409 img.comps = FX_Alloc(opj_image_comp_t, 3); in TEST() 429 img.comps[0] = y; in TEST() 430 img.comps[1] = u; in TEST() 431 img.comps[2] = v; in TEST() 434 EXPECT_EQ(img.comps[0].w, img.comps[1].w); in TEST() 435 EXPECT_EQ(img.comps[0].h, img.comps[1].h); in TEST() 436 EXPECT_EQ(img.comps[0].w, img.comps[2].w); in TEST() 437 EXPECT_EQ(img.comps[0].h, img.comps[2].h); in TEST() 439 EXPECT_NE(img.comps[0].w, img.comps[1].w); in TEST() 440 EXPECT_NE(img.comps[0].h, img.comps[1].h); in TEST() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | formats.c | 891 GLenum *datatype, GLuint *comps) in _mesa_uncompressed_format_to_type_and_comps() argument 907 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 912 *comps = 3; in _mesa_uncompressed_format_to_type_and_comps() 919 *comps = 3; in _mesa_uncompressed_format_to_type_and_comps() 928 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 937 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 942 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 949 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 954 *comps = 2; in _mesa_uncompressed_format_to_type_and_comps() 960 *comps = 2; in _mesa_uncompressed_format_to_type_and_comps() [all …]
|
D | mipmap.c | 72 bytes_per_pixel(GLenum datatype, GLuint comps) in bytes_per_pixel() argument 86 return b * comps; in bytes_per_pixel() 175 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument 182 assert(comps >= 1); in do_row() 183 assert(comps <= 4); in do_row() 189 if (datatype == GL_UNSIGNED_BYTE && comps == 4) { in do_row() 202 else if (datatype == GL_UNSIGNED_BYTE && comps == 3) { in do_row() 214 else if (datatype == GL_UNSIGNED_BYTE && comps == 2) { in do_row() 225 else if (datatype == GL_UNSIGNED_BYTE && comps == 1) { in do_row() 236 else if (datatype == GL_BYTE && comps == 4) { in do_row() [all …]
|
D | texcompress_etc.c | 679 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in etc2_unpack_rgb8() local 702 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps; in etc2_unpack_rgb8() 707 dst += comps; in etc2_unpack_rgb8() 727 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in etc2_unpack_srgb8() local 743 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps; in etc2_unpack_srgb8() 756 dst += comps; in etc2_unpack_srgb8() 778 const unsigned bw = 4, bh = 4, bs = 16, comps = 4; in etc2_unpack_rgba8() local 791 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps; in etc2_unpack_rgba8() 794 dst += comps; in etc2_unpack_rgba8() 817 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/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/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/pdfium/third_party/libopenjpeg20/ |
D | image.c | 51 image->comps = (opj_image_comp_t*)opj_calloc(image->numcomps, 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/ImageMagick/coders/ |
D | jp2.c | 362 jp2_image->comps[0].w,jp2_image->comps[0].h); in ReadJP2Image() 371 if ((AcquireMagickResource(WidthResource,(size_t) jp2_image->comps[0].w) == MagickFalse) || in ReadJP2Image() 372 (AcquireMagickResource(HeightResource,(size_t) jp2_image->comps[0].h) == MagickFalse)) in ReadJP2Image() 399 if ((jp2_image->comps[i].dx == 0) || (jp2_image->comps[i].dy == 0) || in ReadJP2Image() 400 (jp2_image->comps[0].prec != jp2_image->comps[i].prec) || in ReadJP2Image() 401 (jp2_image->comps[0].prec > 64) || in ReadJP2Image() 402 (jp2_image->comps[0].sgnd != jp2_image->comps[i].sgnd) || in ReadJP2Image() 403 ((image->ping == MagickFalse) && (jp2_image->comps[i].data == NULL))) in ReadJP2Image() 413 image->columns=(size_t) jp2_image->comps[0].w; in ReadJP2Image() 414 image->rows=(size_t) jp2_image->comps[0].h; 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/libaom/libaom/av1/common/ |
D | entropy.c | 75 RESET_CDF_COUNTER(nmv->comps[i].classes_cdf, MV_CLASSES); in reset_nmv_counter() 76 RESET_CDF_COUNTER(nmv->comps[i].class0_fp_cdf, MV_FP_SIZE); in reset_nmv_counter() 77 RESET_CDF_COUNTER(nmv->comps[i].fp_cdf, MV_FP_SIZE); in reset_nmv_counter() 78 RESET_CDF_COUNTER(nmv->comps[i].sign_cdf, 2); in reset_nmv_counter() 79 RESET_CDF_COUNTER(nmv->comps[i].class0_hp_cdf, 2); in reset_nmv_counter() 80 RESET_CDF_COUNTER(nmv->comps[i].hp_cdf, 2); in reset_nmv_counter() 81 RESET_CDF_COUNTER(nmv->comps[i].class0_cdf, CLASS0_SIZE); in reset_nmv_counter() 82 RESET_CDF_COUNTER(nmv->comps[i].bits_cdf, 2); in reset_nmv_counter()
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_nir_vectorize_vs_inputs.c | 348 unsigned location, unsigned comps) in r600_create_new_io_var() argument 350 unsigned num_comps = util_bitcount(comps); in r600_create_new_io_var() 354 unsigned first_comp = u_bit_scan(&comps); in r600_create_new_io_var() 364 while (comps) { in r600_create_new_io_var() 365 const int comp = u_bit_scan(&comps); in r600_create_new_io_var() 398 unsigned comps = 0; in r600_create_new_io_vars() local 414 comps |= 1 << (vars[i][j]->data.location_frac + n); in r600_create_new_io_vars() 417 comps |= 1 << (vars[i][k]->data.location_frac + n); in r600_create_new_io_vars() 421 if (comps) in r600_create_new_io_vars() 422 r600_create_new_io_var(shader, vars, i, comps); in r600_create_new_io_vars()
|
D | sfn_nir_lower_fs_out_to_vector.cpp | 68 void create_new_io_var(nir_shader *shader, unsigned location, unsigned comps); 169 unsigned comps = 0; in create_new_io_vars() local 184 comps |= 1 << (m_vars[i][j]->data.location_frac + n); in create_new_io_vars() 187 comps |= 1 << (m_vars[i][k]->data.location_frac + n); in create_new_io_vars() 191 if (comps) in create_new_io_vars() 192 create_new_io_var(shader, i, comps); in create_new_io_vars() 205 unsigned location, unsigned comps) in create_new_io_var() argument 207 unsigned num_comps = util_bitcount(comps); in create_new_io_var() 211 unsigned first_comp = u_bit_scan(&comps); in create_new_io_var() 221 while (comps) { in create_new_io_var() [all …]
|
/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/libaom/libaom/av1/encoder/ |
D | encodemv.c | 71 update_mv_component_stats(diff.row, &mvctx->comps[0], precision); in av1_update_mv_stats() 74 update_mv_component_stats(diff.col, &mvctx->comps[1], precision); in av1_update_mv_stats() 187 encode_mv_component(w, diff.row, &mvctx->comps[0], usehp); in av1_encode_mv() 190 encode_mv_component(w, diff.col, &mvctx->comps[1], usehp); in av1_encode_mv() 213 encode_mv_component(w, diff.row, &mvctx->comps[0], MV_SUBPEL_NONE); in av1_encode_dv() 216 encode_mv_component(w, diff.col, &mvctx->comps[1], MV_SUBPEL_NONE); in av1_encode_dv() 223 build_nmv_component_cost_table(mvcost[0], &ctx->comps[0], precision); in av1_build_nmv_cost_table() 224 build_nmv_component_cost_table(mvcost[1], &ctx->comps[1], precision); in av1_build_nmv_cost_table()
|
/external/python/cpython3/Lib/ |
D | ntpath.py | 480 comps = path.split(sep) 482 while i < len(comps): 483 if not comps[i] or comps[i] == curdir: 484 del comps[i] 485 elif comps[i] == pardir: 486 if i > 0 and comps[i-1] != pardir: 487 del comps[i-1:i+1] 490 del comps[i] 496 if not prefix and not comps: 497 comps.append(curdir) [all …]
|
/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:
|
/external/llvm-project/clang/test/CodeGen/ |
D | 2004-06-18-VariableLengthArrayOfStructures.c | 7 struct S comps[a]; in xxxx() local 8 comps[0]; in xxxx()
|