Home
last modified time | relevance | path

Searched refs:nr_channels (Results 1 – 21 of 21) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_sse.c466 for(i = 1; i < input_desc->nr_channels; ++i) in translate_attr_convert()
472 for(i = 1; i < output_desc->nr_channels; ++i) in translate_attr_convert()
478 for(i = 0; i < output_desc->nr_channels; ++i) in translate_attr_convert()
492 for(i = 0; i < output_desc->nr_channels; ++i) in translate_attr_convert()
494 if(swizzle[i] == UTIL_FORMAT_SWIZZLE_0 && i >= input_desc->nr_channels) in translate_attr_convert()
498 for(i = 0; i < output_desc->nr_channels; ++i) in translate_attr_convert()
513 … emit_load_sse2(p, dataXMM, src, input_desc->channel[0].size * input_desc->nr_channels >> 3); in translate_attr_convert()
563 … emit_load_sse2(p, dataXMM, src, input_desc->channel[0].size * input_desc->nr_channels >> 3); in translate_attr_convert()
613 if(swizzle[3] == UTIL_FORMAT_SWIZZLE_1 && input_desc->nr_channels <= 3) in translate_attr_convert()
621 emit_load_float32(p, dataXMM, src, needed_chans, input_desc->nr_channels); in translate_attr_convert()
[all …]
Dtranslate_generic.c772 unsigned nr = MIN2(src->nr_channels, dst->nr_channels); in is_legal_int_format_combo()
/external/pdfium/third_party/libopenjpeg20/
Djp2.c840 …OPJ_UINT32 nr_channels = image->numcomps; /* FIXME image->numcomps == jp2->numcomps before color i… in opj_jp2_check_color() local
844 nr_channels = (OPJ_UINT32)color->jp2_pclr->nr_channels; in opj_jp2_check_color()
848 if (info[i].cn >= nr_channels) { in opj_jp2_check_color()
849 …_event_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", info[i].cn, nr_channels); in opj_jp2_check_color()
854 if (info[i].asoc > 0 && (OPJ_UINT32)(info[i].asoc - 1) >= nr_channels) { in opj_jp2_check_color()
855 …_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", info[i].asoc - 1, nr_channels); in opj_jp2_check_color()
862 while (nr_channels > 0) in opj_jp2_check_color()
865 if ((OPJ_UINT32)info[i].cn == (nr_channels - 1U)) { in opj_jp2_check_color()
873 --nr_channels; in opj_jp2_check_color()
880 OPJ_UINT16 nr_channels = color->jp2_pclr->nr_channels; in opj_jp2_check_color() local
[all …]
D0008-jp2_check_color.patch8 for (i = 0; i < nr_channels; i++) {
17 if (pcol >= nr_channels) {
D0007-jp2_read_cmap.patch8 for(i = 0; i < nr_channels; ++i) {
Djp2.h128 OPJ_BYTE nr_channels; member
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture.c251 for (i = 0; i < desc->nr_channels; i++) { in r300_translate_texformat()
258 for (i = 1; i < desc->nr_channels; i++) { in r300_translate_texformat()
264 switch (desc->nr_channels) { in r300_translate_texformat()
321 switch (desc->nr_channels) { in r300_translate_texformat()
330 switch (desc->nr_channels) { in r300_translate_texformat()
341 switch (desc->nr_channels) { in r300_translate_texformat()
355 switch (desc->nr_channels) { in r300_translate_texformat()
366 switch (desc->nr_channels) { in r300_translate_texformat()
541 switch (desc->nr_channels) { in r300_translate_out_fmt()
555 switch (desc->nr_channels) { in r300_translate_out_fmt()
[all …]
Dr300_state_inlines.h365 if (desc->nr_channels > 2) { in r300_translate_vertex_data_type()
372 result = R300_DATA_TYPE_FLOAT_1 + (desc->nr_channels - 1); in r300_translate_vertex_data_type()
387 if (desc->nr_channels > 2) { in r300_translate_vertex_data_type()
424 for (i = 0; i < desc->nr_channels; i++) { in r300_translate_vertex_data_swizzle()
Dr300_state_derived.c697 if (desc->nr_channels == 2) { in r300_get_border_color()
713 if (desc->nr_channels <= 2) { in r300_get_border_color()
731 if (desc->nr_channels == 1) { in r300_get_border_color()
/external/mesa3d/src/gallium/tests/unit/
Dtranslate_test.c185 for(i = 0; i < output_format_desc->nr_channels; ++i) in main()
213 for(i = 0; i < input_format_desc->nr_channels; ++i) in main()
226 …&& input_format_size * output_format_desc->nr_channels > output_format_size * input_format_desc->n… in main()
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_parse.py136 def nr_channels(self): member in Format
137 nr_channels = 0
140 nr_channels += 1
141 return nr_channels
Du_format.c173 for (chan = 0; chan < desc->nr_channels; ++chan) { in util_format_is_array()
430 src_desc->nr_channels != dst_desc->nr_channels || in util_is_format_compatible()
495 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in util_format_fits_8unorm()
Du_format_table.py105 print " %u,\t/* nr_channels */" % (format.nr_channels(),)
Du_format.h156 unsigned nr_channels:3; member
921 return desc->nr_channels; in util_format_get_nr_components()
Du_format_pack.py419 for i in range(format.nr_channels()):
433 for i in range(format.nr_channels()):
/external/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c1004 for (i = 0; i < desc->nr_channels; i++) { in r600_translate_texformat()
1013 for (i = 1; i < desc->nr_channels; i++) { in r600_translate_texformat()
1022 switch(desc->nr_channels) { in r600_translate_texformat()
1077 switch (desc->nr_channels) { in r600_translate_texformat()
1087 switch (desc->nr_channels) { in r600_translate_texformat()
1101 switch (desc->nr_channels) { in r600_translate_texformat()
1114 switch (desc->nr_channels) { in r600_translate_texformat()
1131 switch (desc->nr_channels) { in r600_translate_texformat()
1144 switch (desc->nr_channels) { in r600_translate_texformat()
Dr600_asm.c2635 switch (desc->nr_channels) { in r600_vertex_data_type()
2649 switch (desc->nr_channels) { in r600_vertex_data_type()
2674 switch (desc->nr_channels) { in r600_vertex_data_type()
2688 if (desc->nr_channels != 4) in r600_vertex_data_type()
2694 switch (desc->nr_channels) { in r600_vertex_data_type()
2708 switch (desc->nr_channels) { in r600_vertex_data_type()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos_array.c67 src_type.length = format_desc->nr_channels; in lp_build_fetch_rgba_aos_array()
Dlp_bld_format_soa.c124 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_unpack_rgba_soa()
Dlp_bld_format_aos.c123 for (chan = 0; chan < desc->nr_channels; ++chan) { in format_matches_type()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c1119 for (i = 1; i < desc->nr_channels; i++) { in si_translate_texformat()
1125 switch(desc->nr_channels) { in si_translate_texformat()
1157 switch (desc->nr_channels) { in si_translate_texformat()
1165 switch (desc->nr_channels) { in si_translate_texformat()
1175 switch (desc->nr_channels) { in si_translate_texformat()
1185 switch (desc->nr_channels) { in si_translate_texformat()
1314 for (i = 0; i < desc->nr_channels; i++) { in si_translate_vertexformat()
1321 switch (desc->nr_channels) { in si_translate_vertexformat()
1332 switch (desc->nr_channels) { in si_translate_vertexformat()
1346 switch (desc->nr_channels) { in si_translate_vertexformat()