/third_party/mesa3d/src/mesa/main/ |
H A D | formats.c | 892 GLenum *datatype, GLuint *comps) in _mesa_uncompressed_format_to_type_and_comps() 908 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 913 *comps = 3; in _mesa_uncompressed_format_to_type_and_comps() 920 *comps = 3; in _mesa_uncompressed_format_to_type_and_comps() 929 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 938 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 943 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 950 *comps = 4; in _mesa_uncompressed_format_to_type_and_comps() 955 *comps = 2; in _mesa_uncompressed_format_to_type_and_comps() 961 *comps in _mesa_uncompressed_format_to_type_and_comps() 891 _mesa_uncompressed_format_to_type_and_comps(mesa_format format, GLenum *datatype, GLuint *comps) _mesa_uncompressed_format_to_type_and_comps() argument [all...] |
H A D | mipmap.c | 73 bytes_per_pixel(GLenum datatype, GLuint comps) in bytes_per_pixel() argument 87 return b * comps; in bytes_per_pixel() 173 * \param comps number of components per pixel (1..4) 176 do_row(GLenum datatype, GLuint comps, GLint srcWidth, in do_row() argument 183 assert(comps >= 1); in do_row() 184 assert(comps <= 4); in do_row() 190 if (datatype == GL_UNSIGNED_BYTE && comps == 4) { in do_row() 203 else if (datatype == GL_UNSIGNED_BYTE && comps == 3) { in do_row() 215 else if (datatype == GL_UNSIGNED_BYTE && comps == 2) { in do_row() 226 else if (datatype == GL_UNSIGNED_BYTE && comps in do_row() 809 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth, const GLvoid *srcRowA, const GLvoid *srcRowB, const GLvoid *srcRowC, const GLvoid *srcRowD, GLint dstWidth, GLvoid *dstRow) do_row_3D() argument 1442 make_1d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, const GLubyte *srcPtr, GLint dstWidth, GLubyte *dstPtr) make_1d_mipmap() argument 1472 make_2d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, const GLubyte *srcPtr, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLubyte *dstPtr, GLint dstRowStride) make_2d_mipmap() argument 1564 make_3d_mipmap(GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLubyte **srcPtr, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, GLubyte **dstPtr, GLint dstRowStride) make_3d_mipmap() argument 1725 _mesa_generate_mipmap_level(GLenum target, GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLubyte **srcData, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, GLubyte **dstData, GLint dstRowStride) _mesa_generate_mipmap_level() argument 1959 GLuint comps; generate_mipmap_uncompressed() local [all...] |
H A 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 in etc2_unpack_srgb8_alpha8() local 864 const unsigned bw = 4, bh = 4, bs = 8, comps = 1, comp_size = 2; etc2_unpack_r11() local 901 const unsigned bw = 4, bh = 4, bs = 16, comps = 2, comp_size = 2; etc2_unpack_rg11() local 951 const unsigned bw = 4, bh = 4, bs = 8, comps = 1, comp_size = 2; etc2_unpack_signed_r11() local 989 const unsigned bw = 4, bh = 4, bs = 16, comps = 2, comp_size = 2; etc2_unpack_signed_rg11() local 1036 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; etc2_unpack_rgb8_punchthrough_alpha1() local 1073 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; etc2_unpack_srgb8_punchthrough_alpha1() local [all...] |
H A D | eval.c | 499 GLuint comps; in _mesa_GetnMapdvARB() local 502 comps = _mesa_evaluator_components(target); in _mesa_GetnMapdvARB() 503 if (!comps) { in _mesa_GetnMapdvARB() 516 n = map1d->Order * comps; in _mesa_GetnMapdvARB() 520 n = map2d->Uorder * map2d->Vorder * comps; in _mesa_GetnMapdvARB() 589 GLuint comps; in _mesa_GetnMapfvARB() local 592 comps = _mesa_evaluator_components(target); in _mesa_GetnMapfvARB() 593 if (!comps) { in _mesa_GetnMapfvARB() 606 n = map1d->Order * comps; in _mesa_GetnMapfvARB() 610 n = map2d->Uorder * map2d->Vorder * comps; in _mesa_GetnMapfvARB() 681 GLuint comps; _mesa_GetnMapivARB() local [all...] |
/third_party/python/Tools/scripts/ |
H A 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): 26 if comps [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | libopenjpegenc.c | 359 if (image->comps[compno].w > linesize[0] / numcomps) { in libopenjpeg_copy_packed8() 367 image_line = image->comps[compno].data + y * image->comps[compno].w; in libopenjpeg_copy_packed8() 373 for (; x < image->comps[compno].w; ++x) { in libopenjpeg_copy_packed8() 377 for (; y < image->comps[compno].h; ++y) { in libopenjpeg_copy_packed8() 378 image_line = image->comps[compno].data + y * image->comps[compno].w; in libopenjpeg_copy_packed8() 379 for (x = 0; x < image->comps[compno].w; ++x) { in libopenjpeg_copy_packed8() 380 image_line[x] = image_line[x - (int)image->comps[compno].w]; in libopenjpeg_copy_packed8() 400 if (image->comps[compn in libopenjpeg_copy_packed12() [all...] |
H A D | libopenjpegdec.c | 170 desc->comp[3].depth >= image->comps[3].prec && in libopenjpeg_matches_pix_fmt() 171 1 == image->comps[3].dx && in libopenjpeg_matches_pix_fmt() 172 1 == image->comps[3].dy; in libopenjpeg_matches_pix_fmt() 175 desc->comp[2].depth >= image->comps[2].prec && in libopenjpeg_matches_pix_fmt() 176 1 << desc->log2_chroma_w == image->comps[2].dx && in libopenjpeg_matches_pix_fmt() 177 1 << desc->log2_chroma_h == image->comps[2].dy; in libopenjpeg_matches_pix_fmt() 180 desc->comp[1].depth >= image->comps[1].prec && in libopenjpeg_matches_pix_fmt() 181 1 << desc->log2_chroma_w == image->comps[1].dx && in libopenjpeg_matches_pix_fmt() 182 1 << desc->log2_chroma_h == image->comps[1].dy; in libopenjpeg_matches_pix_fmt() 185 desc->comp[0].depth >= image->comps[ in libopenjpeg_matches_pix_fmt() [all...] |
H A D | jpeglsenc.c | 45 int comps; member 284 int comps; in encode_picture_ls() local 292 comps = ctx->comps; in encode_picture_ls() 364 size += 2 + 2 + 2 + 1 + 2 + 2 + 1 + comps * (1 + 1 + 1) + 2 + 2 + 1 in encode_picture_ls() 365 + comps * (1 + 1) + 1 + 1 + 1; /* Header */ in encode_picture_ls() 376 bytestream2_put_be16u(&pb, 8 + comps * 3); // header size depends on components in encode_picture_ls() 380 bytestream2_put_byteu(&pb, comps); // components in encode_picture_ls() 381 for (i = 1; i <= comps; i++) { in encode_picture_ls() 388 bytestream2_put_be16u(&pb, 6 + comps * in encode_picture_ls() [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-conversions.py | 77 def combineVec(comps): 79 for ndx in range(len(comps[0])): 80 # for x in comps: 82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 87 def combineIVec(comps): 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): 94 return [x.toUint() for x in combineIVec(comps)] 96 def combineBVec(comps) [all...] |
/third_party/vk-gl-cts/modules/gles2/scripts/ |
H A D | gen-conversions.py | 77 def combineVec(comps): 79 for ndx in range(len(comps[0])): 80 # for x in comps: 82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 87 def combineIVec(comps): 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): 95 for ndx in range(len(comps[0])): 96 res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toBool().getScalars() for x in comps]))) [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | radeon_vcn_dec.c | 1224 memcpy(fc->nmvc_0_bits_cdf, default_nmv_context.comps[0].bits_cdf, sizeof(default_nmv_context.comps[0].bits_cdf)); in rvcn_av1_init_mv_probs() 1225 memcpy(fc->nmvc_0_class0_cdf, default_nmv_context.comps[0].class0_cdf, sizeof(default_nmv_context.comps[0].class0_cdf)); in rvcn_av1_init_mv_probs() 1226 memcpy(fc->nmvc_0_class0_fp_cdf, default_nmv_context.comps[0].class0_fp_cdf, sizeof(default_nmv_context.comps[0].class0_fp_cdf)); in rvcn_av1_init_mv_probs() 1227 memcpy(fc->nmvc_0_class0_hp_cdf, default_nmv_context.comps[0].class0_hp_cdf, sizeof(default_nmv_context.comps[0].class0_hp_cdf)); in rvcn_av1_init_mv_probs() 1228 memcpy(fc->nmvc_0_classes_cdf, default_nmv_context.comps[0].classes_cdf, sizeof(default_nmv_context.comps[ in rvcn_av1_init_mv_probs() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_psnr.c | 52 char comps[4]; member 217 set_meta(metadata, "lavfi.psnr.mse.", s->comps[j], comp_mse[c]); in do_psnr() 218 set_meta(metadata, "lavfi.psnr.psnr.", s->comps[j], get_psnr(comp_mse[c], 1, s->max[c])); in do_psnr() 228 fprintf(s->stats_file, ",mse_%c", s->comps[j]); in do_psnr() 232 fprintf(s->stats_file, ",psnr_%c", s->comps[j]); in do_psnr() 237 fprintf(s->stats_file, ",max_%c", s->comps[j]); in do_psnr() 246 fprintf(s->stats_file, "mse_%c:%0.2f ", s->comps[j], comp_mse[c]); in do_psnr() 251 fprintf(s->stats_file, "psnr_%c:%0.2f ", s->comps[j], in do_psnr() 258 fprintf(s->stats_file, "max_%c:%d ", s->comps[j], s->max[c]); in do_psnr() 337 s->comps[ in config_input_ref() [all...] |
H A D | vf_identity.c | 48 char comps[4]; member 230 set_meta(ctx, metadata, ".", s->comps[j], comp_score[c]); in do_identity() 276 s->comps[0] = s->is_rgb ? 'R' : 'Y' ; in config_input_ref() 277 s->comps[1] = s->is_rgb ? 'G' : 'U' ; in config_input_ref() 278 s->comps[2] = s->is_rgb ? 'B' : 'V' ; in config_input_ref() 279 s->comps[3] = 'A'; in config_input_ref() 360 av_strlcatf(buf, sizeof(buf), " %c:%f", s->comps[j], s->score_comp[c] / s->nb_frames); in uninit()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_image.c | 48 nir_ssa_scalar comps[NIR_MAX_VEC_COMPONENTS] = { 0 }; in lower_cube_size() local 52 comps[2] = nir_get_ssa_scalar(nir_idiv(b, nir_channel(b, size, 2), nir_imm_int(b, 6)), 0); in lower_cube_size() 54 comps[c] = nir_get_ssa_scalar(size, c); in lower_cube_size() 58 nir_ssa_def *vec = nir_vec_scalars(b, comps, intrin->dest.ssa.num_components); in lower_cube_size()
|
H A D | nir_lower_interpolation.c | 103 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; in nir_lower_interpolation_block() local 121 comps[i] = val; in nir_lower_interpolation_block() 123 nir_ssa_def *vec = nir_vec(b, comps, intr->num_components); in nir_lower_interpolation_block()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_nir_lower_fs_out_to_vector.cpp | 68 void create_new_io_var(nir_shader *shader, unsigned location, unsigned comps); 171 unsigned comps = 0; in create_new_io_vars() local 184 /* Set comps */ in create_new_io_vars() 186 comps |= 1 << (m_vars[i][j]->data.location_frac + n); in create_new_io_vars() 189 comps |= 1 << (m_vars[i][k]->data.location_frac + n); in create_new_io_vars() 193 if (comps) in create_new_io_vars() 194 create_new_io_var(shader, i, comps); in create_new_io_vars() 207 unsigned location, unsigned comps) in create_new_io_var() 209 unsigned num_comps = util_bitcount(comps); in create_new_io_var() 212 /* Note: u_bit_scan() strips a component of the comps bitfiel in create_new_io_var() 206 create_new_io_var(nir_shader *shader, unsigned location, unsigned comps) create_new_io_var() argument [all...] |
H A D | sfn_nir_vectorize_vs_inputs.c | 348 unsigned location, unsigned comps) in r600_create_new_io_var() 350 unsigned num_comps = util_bitcount(comps); in r600_create_new_io_var() 353 /* Note: u_bit_scan() strips a component of the comps bitfield here */ 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 412 /* Set comps */ in r600_create_new_io_vars() 414 comps |= 1 << (vars[i][j]->data.location_frac + n); in r600_create_new_io_vars() 417 comps | in r600_create_new_io_vars() 346 r600_create_new_io_var(nir_shader *shader, nir_variable *vars[16][4], unsigned location, unsigned comps) r600_create_new_io_var() argument [all...] |
/third_party/python/Lib/ |
H A D | ntpath.py | 517 comps = path.split(sep) 519 while i < len(comps): 520 if not comps[i] or comps[i] == curdir: 521 del comps[i] 522 elif comps[i] == pardir: 523 if i > 0 and comps[i-1] != pardir: 524 del comps[i-1:i+1] 527 del comps[i] 533 if not prefix and not comps [all...] |
/third_party/mesa3d/src/amd/addrlib/src/core/ |
H A D | addrelemlib.cpp | 398 const ADDR_FLT_32 comps[2], ///< [in] two components of depth in Flt32ToDepthPixel() 446 Flt32sToInt32s(comps[i], fmt.compBit[i], fmt.numType[i], &values[i]); in Flt32ToDepthPixel() 469 const ADDR_FLT_32 comps[4], ///< [in] four components of color in Flt32ToColorPixel() 532 Flt32sToInt32s(comps[i], pixelInfo.compBit[i], pixelInfo.numType[i], &values[i]); in Flt32ToColorPixel() 729 switch (pInfo->comps) in GetCompSwap() 1643 pInfo->comps = 0; in GetCompBits() 1666 pInfo->comps++; in GetCompBits() 1679 * If clearColor is zero, a default clear value is used in place of comps[4]. 1687 ADDR_FLT_32 comps[4], ///< [in,out] components in SetClearComps() 1698 comps[ in SetClearComps() 396 Flt32ToDepthPixel( AddrDepthFormat format, const ADDR_FLT_32 comps[2], UINT_8* pPixel ) const Flt32ToDepthPixel() argument 465 Flt32ToColorPixel( AddrColorFormat format, AddrSurfaceNumber surfNum, AddrSurfaceSwap surfSwap, const ADDR_FLT_32 comps[4], UINT_8* pPixel ) const Flt32ToColorPixel() argument 1686 SetClearComps( ADDR_FLT_32 comps[4], BOOL_32 clearColor, BOOL_32 float32) SetClearComps() argument [all...] |
H A D | addrelemlib.h | 168 UINT_32 comps; ///< Number of components member 198 AddrDepthFormat format, const ADDR_FLT_32 comps[2], UINT_8 *pPixel) const; 202 const ADDR_FLT_32 comps[4], UINT_8 *pPixel) const; 223 ADDR_FLT_32 comps[4], BOOL_32 clearColor, BOOL_32 float32);
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_nir_attribute_workarounds.c | 59 nir_ssa_def *comps[4]; in apply_attr_wa_instr() local 62 comps[i] = nir_channel(b, rescale ? scaled : val, i); in apply_attr_wa_instr() 64 val = nir_vec(b, comps, val->num_components); in apply_attr_wa_instr()
|
H A D | brw_nir_lower_storage_image.c | 346 nir_ssa_def *comps[4]; in convert_color_for_load() 348 comps[i] = nir_channel(b, color, i); in convert_color_for_load() 351 comps[i] = nir_imm_int(b, 0); in convert_color_for_load() 355 comps[3] = nir_imm_int(b, 1); in convert_color_for_load() 357 comps[3] = nir_imm_float(b, 1); in convert_color_for_load() 360 return nir_vec(b, comps, dest_components); in convert_color_for_load() 666 nir_ssa_def *comps[4] = { NULL, NULL, NULL, NULL }; in lower_image_size_instr() local 671 comps[c] = nir_channel(b, size, c); in lower_image_size_instr() 674 comps[c] = nir_imm_int(b, 1); in lower_image_size_instr() 676 nir_ssa_def *vec = nir_vec(b, comps, intri in lower_image_size_instr() [all...] |
/third_party/mesa3d/src/util/ |
H A D | rgtc.h | 29 unsigned i, unsigned j, unsigned char *value, unsigned comps); 32 unsigned i, unsigned j, signed char *value, unsigned comps);
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_nir.c | 134 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; in lower_load_deref() local 163 extract_comps_from_vec32(b, vec32, bit_size, &comps[comp_idx], in lower_load_deref() 170 nir_ssa_def *result = nir_vec(b, comps, num_components); in lower_load_deref() 189 nir_ssa_def *comps[4]; in ubo_load_select_32b_comps() 193 comps[i] = nir_channel(b, vec32, i); in ubo_load_select_32b_comps() 201 comps[0] = nir_bcsel(b, cond, comps[2], comps[0]); in ubo_load_select_32b_comps() 202 comps[1] = nir_bcsel(b, cond, comps[ in ubo_load_select_32b_comps() 223 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; build_load_ubo_dxil() local 277 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; lower_load_ssbo() local 337 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS] = { 0 }; lower_store_ssbo() local 422 lower_load_vec32(nir_builder *b, nir_ssa_def *index, unsigned num_comps, nir_ssa_def **comps, nir_intrinsic_op op) lower_load_vec32() argument 457 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; lower_32b_offset_load() local 562 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; lower_32b_offset_store() local [all...] |
/third_party/mesa3d/src/util/format/ |
H A D | u_format_etc.c | 30 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in util_format_etc1_rgb8_unpack_rgba_float() local 41 float *dst = (float *)((uint8_t *)dst_row + (y + j) * dst_stride + x * comps * 4); in util_format_etc1_rgb8_unpack_rgba_float() 50 dst += comps; in util_format_etc1_rgb8_unpack_rgba_float()
|