Home
last modified time | relevance | path

Searched refs:comps (Results 1 – 25 of 105) sorted by relevance

12345

/third_party/mesa3d/src/mesa/main/
Dformats.c892 GLenum *datatype, GLuint *comps) in _mesa_uncompressed_format_to_type_and_comps() argument
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 = 2; in _mesa_uncompressed_format_to_type_and_comps()
[all …]
Dmipmap.c73 bytes_per_pixel(GLenum datatype, GLuint comps) in bytes_per_pixel() argument
87 return b * comps; in bytes_per_pixel()
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 == 1) { in do_row()
237 else if (datatype == GL_BYTE && comps == 4) { in do_row()
[all …]
Dtexcompress_etc.c679 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 …]
Deval.c499 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()
[all …]
/third_party/pulseaudio/shell-completion/bash/
Dpactl113 local comps
140 comps=$(__sinks)
145 comps=$(__sinks)
150 comps=$(__sources)
155 comps=$(__profiles)
160 comps=$(__ports)
170 comps=$(__ports)
190 comps=$(__all_modules)
195 comps=$(__loaded_modules)
200 comps=$(__cards)
[all …]
/third_party/python/Tools/scripts/
Ddutree.py15 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)
/third_party/vk-gl-cts/modules/gles3/scripts/
Dgen-conversions.py77 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 …]
/third_party/ffmpeg/libavcodec/
Dlibopenjpegenc.c358 if (image->comps[compno].w > frame->linesize[0] / numcomps) { in libopenjpeg_copy_packed8()
366 image_line = image->comps[compno].data + y * image->comps[compno].w; in libopenjpeg_copy_packed8()
372 for (; x < image->comps[compno].w; ++x) { in libopenjpeg_copy_packed8()
376 for (; y < image->comps[compno].h; ++y) { in libopenjpeg_copy_packed8()
377 image_line = image->comps[compno].data + y * image->comps[compno].w; in libopenjpeg_copy_packed8()
378 for (x = 0; x < image->comps[compno].w; ++x) { in libopenjpeg_copy_packed8()
379 image_line[x] = image_line[x - (int)image->comps[compno].w]; in libopenjpeg_copy_packed8()
398 if (image->comps[compno].w > frame->linesize[0] / numcomps) { in libopenjpeg_copy_packed12()
406 image_line = image->comps[compno].data + y * image->comps[compno].w; in libopenjpeg_copy_packed12()
412 for (; x < image->comps[compno].w; ++x) { in libopenjpeg_copy_packed12()
[all …]
Dlibopenjpegdec.c169 desc->comp[3].depth >= image->comps[3].prec && in libopenjpeg_matches_pix_fmt()
170 1 == image->comps[3].dx && in libopenjpeg_matches_pix_fmt()
171 1 == image->comps[3].dy; in libopenjpeg_matches_pix_fmt()
174 desc->comp[2].depth >= image->comps[2].prec && in libopenjpeg_matches_pix_fmt()
175 1 << desc->log2_chroma_w == image->comps[2].dx && in libopenjpeg_matches_pix_fmt()
176 1 << desc->log2_chroma_h == image->comps[2].dy; in libopenjpeg_matches_pix_fmt()
179 desc->comp[1].depth >= image->comps[1].prec && in libopenjpeg_matches_pix_fmt()
180 1 << desc->log2_chroma_w == image->comps[1].dx && in libopenjpeg_matches_pix_fmt()
181 1 << desc->log2_chroma_h == image->comps[1].dy; in libopenjpeg_matches_pix_fmt()
184 desc->comp[0].depth >= image->comps[0].prec && in libopenjpeg_matches_pix_fmt()
[all …]
Djpeglsenc.c283 int comps; in encode_picture_ls() local
294 comps = 1; in encode_picture_ls()
296 comps = 3; in encode_picture_ls()
298 if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width *avctx->height * comps * 4 + in encode_picture_ls()
313 bytestream2_put_be16u(&pb, 8 + comps * 3); // header size depends on components in encode_picture_ls()
317 bytestream2_put_byteu(&pb, comps); // components in encode_picture_ls()
318 for (i = 1; i <= comps; i++) { in encode_picture_ls()
325 bytestream2_put_be16u(&pb, 6 + comps * 2); in encode_picture_ls()
326 bytestream2_put_byteu(&pb, comps); in encode_picture_ls()
327 for (i = 1; i <= comps; i++) { in encode_picture_ls()
[all …]
/third_party/vk-gl-cts/modules/gles2/scripts/
Dgen-conversions.py77 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 …]
/third_party/gstreamer/gstplugins_bad/ext/openjpeg/
Dgstopenjpegdec.c433 data_in[c] = image->comps[c].data; in fill_frame_packed8_4()
434 off[c] = 0x80 * image->comps[c].sgnd; in fill_frame_packed8_4()
477 data_in[c] = image->comps[c].data; in fill_frame_packed16_4()
478 off[c] = (1 << (image->comps[c].prec - 1)) * image->comps[c].sgnd; in fill_frame_packed16_4()
480 MAX (MIN (GST_VIDEO_FRAME_COMP_DEPTH (frame, c) - image->comps[c].prec, in fill_frame_packed16_4()
522 data_in[c] = image->comps[c].data; in fill_frame_packed8_3()
523 off[c] = 0x80 * image->comps[c].sgnd; in fill_frame_packed8_3()
558 data_in[c] = image->comps[c].data; in fill_frame_packed16_3()
559 off[c] = (1 << (image->comps[c].prec - 1)) * image->comps[c].sgnd; in fill_frame_packed16_3()
561 MAX (MIN (GST_VIDEO_FRAME_COMP_DEPTH (frame, c) - image->comps[c].prec, in fill_frame_packed16_3()
[all …]
Dgstopenjpegenc.c519 data_out[0] = image->comps[0].data; in fill_image_packed16_4()
520 data_out[1] = image->comps[1].data; in fill_image_packed16_4()
521 data_out[2] = image->comps[2].data; in fill_image_packed16_4()
522 data_out[3] = image->comps[3].data; in fill_image_packed16_4()
557 data_out[0] = image->comps[0].data; in fill_image_packed8_4()
558 data_out[1] = image->comps[1].data; in fill_image_packed8_4()
559 data_out[2] = image->comps[2].data; in fill_image_packed8_4()
560 data_out[3] = image->comps[3].data; in fill_image_packed8_4()
595 data_out[0] = image->comps[0].data; in fill_image_packed8_3()
596 data_out[1] = image->comps[1].data; in fill_image_packed8_3()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_vcn_dec.c1224 …memcpy(fc->nmvc_0_bits_cdf, default_nmv_context.comps[0].bits_cdf, sizeof(default_nmv_context.comp… in rvcn_av1_init_mv_probs()
1225 …memcpy(fc->nmvc_0_class0_cdf, default_nmv_context.comps[0].class0_cdf, sizeof(default_nmv_context. in rvcn_av1_init_mv_probs()
1226 …y(fc->nmvc_0_class0_fp_cdf, default_nmv_context.comps[0].class0_fp_cdf, sizeof(default_nmv_context… in rvcn_av1_init_mv_probs()
1227 …y(fc->nmvc_0_class0_hp_cdf, default_nmv_context.comps[0].class0_hp_cdf, sizeof(default_nmv_context… in rvcn_av1_init_mv_probs()
1228 …mcpy(fc->nmvc_0_classes_cdf, default_nmv_context.comps[0].classes_cdf, sizeof(default_nmv_context. in rvcn_av1_init_mv_probs()
1229 …memcpy(fc->nmvc_0_fp_cdf, default_nmv_context.comps[0].fp_cdf, sizeof(default_nmv_context.comps[0]… in rvcn_av1_init_mv_probs()
1230 …memcpy(fc->nmvc_0_hp_cdf, default_nmv_context.comps[0].hp_cdf, sizeof(default_nmv_context.comps[0]… in rvcn_av1_init_mv_probs()
1231 …memcpy(fc->nmvc_0_sign_cdf, default_nmv_context.comps[0].sign_cdf, sizeof(default_nmv_context.comp… in rvcn_av1_init_mv_probs()
1232 …memcpy(fc->nmvc_1_bits_cdf, default_nmv_context.comps[1].bits_cdf, sizeof(default_nmv_context.comp… in rvcn_av1_init_mv_probs()
1233 …memcpy(fc->nmvc_1_class0_cdf, default_nmv_context.comps[1].class0_cdf, sizeof(default_nmv_context. in rvcn_av1_init_mv_probs()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_vectorize_vs_inputs.c348 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()
Dsfn_nir_lower_fs_out_to_vector.cpp68 void create_new_io_var(nir_shader *shader, unsigned location, unsigned comps);
171 unsigned comps = 0; in create_new_io_vars() local
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() argument
209 unsigned num_comps = util_bitcount(comps); in create_new_io_var()
213 unsigned first_comp = u_bit_scan(&comps); in create_new_io_var()
223 while (comps) { in create_new_io_var()
[all …]
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Drtsp.c91 gchar **comps = NULL; in GST_START_TEST() local
97 comps = gst_rtsp_url_decode_path_components (url); in GST_START_TEST()
98 fail_unless (comps != NULL); in GST_START_TEST()
99 fail_unless (g_strv_length (comps) == 3); in GST_START_TEST()
100 fail_unless (!strcmp (comps[0], "")); in GST_START_TEST()
101 fail_unless (!strcmp (comps[1], "foo")); in GST_START_TEST()
102 fail_unless (!strcmp (comps[2], "bar")); in GST_START_TEST()
104 g_strfreev (comps); in GST_START_TEST()
114 gchar **comps = NULL; in GST_START_TEST() local
120 comps = gst_rtsp_url_decode_path_components (url); in GST_START_TEST()
[all …]
Dvideo.c3397 gint comps[GST_VIDEO_MAX_COMPONENTS]; in GST_START_TEST() local
3402 gst_video_format_info_component (info, 0, comps); in GST_START_TEST()
3403 g_assert_cmpint (comps[0], ==, 0); in GST_START_TEST()
3404 g_assert_cmpint (comps[1], ==, 1); in GST_START_TEST()
3405 g_assert_cmpint (comps[2], ==, 2); in GST_START_TEST()
3406 g_assert_cmpint (comps[3], ==, -1); in GST_START_TEST()
3408 gst_video_format_info_component (info, 1, comps); in GST_START_TEST()
3409 g_assert_cmpint (comps[0], ==, -1); in GST_START_TEST()
3410 g_assert_cmpint (comps[1], ==, -1); in GST_START_TEST()
3411 g_assert_cmpint (comps[2], ==, -1); in GST_START_TEST()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_image.c48 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()
/third_party/ffmpeg/libavfilter/
Dvf_psnr.c52 char comps[4]; member
216 set_meta(metadata, "lavfi.psnr.mse.", s->comps[j], comp_mse[c]); in do_psnr()
217 set_meta(metadata, "lavfi.psnr.psnr.", s->comps[j], get_psnr(comp_mse[c], 1, s->max[c])); in do_psnr()
227 fprintf(s->stats_file, ",mse_%c", s->comps[j]); in do_psnr()
231 fprintf(s->stats_file, ",psnr_%c", s->comps[j]); in do_psnr()
236 fprintf(s->stats_file, ",max_%c", s->comps[j]); in do_psnr()
245 fprintf(s->stats_file, "mse_%c:%0.2f ", s->comps[j], comp_mse[c]); in do_psnr()
250 fprintf(s->stats_file, "psnr_%c:%0.2f ", s->comps[j], in do_psnr()
257 fprintf(s->stats_file, "max_%c:%d ", s->comps[j], s->max[c]); in do_psnr()
348 s->comps[0] = s->is_rgb ? 'r' : 'y' ; in config_input_ref()
[all …]
/third_party/python/Lib/
Dntpath.py493 comps = path.split(sep)
495 while i < len(comps):
496 if not comps[i] or comps[i] == curdir:
497 del comps[i]
498 elif comps[i] == pardir:
499 if i > 0 and comps[i-1] != pardir:
500 del comps[i-1:i+1]
503 del comps[i]
509 if not prefix and not comps:
510 comps.append(curdir)
[all …]
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir.c134 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() local
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[3], comps[1]); in ubo_load_select_32b_comps()
206 return nir_vec(b, comps, 2); in ubo_load_select_32b_comps()
214 return nir_bcsel(b, cond, comps[1], comps[0]); in ubo_load_select_32b_comps()
223 nir_ssa_def *comps[NIR_MAX_VEC_COMPONENTS]; in build_load_ubo_dxil() local
[all …]
/third_party/mesa3d/src/amd/addrlib/src/core/
Daddrelemlib.h168 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);
Daddrelemlib.cpp398 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()
1687 ADDR_FLT_32 comps[4], ///< [in,out] components in SetClearComps()
1698 comps[i].f = 0.0; in SetClearComps()
1700 comps[3].f = 1.0; in SetClearComps()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_attribute_workarounds.c59 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()

12345