Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Didct8x8_test.cc51 for (int j = 0; j < 8; ++j) in reference_dct_2d() local
52 temp_in[j] = input[j*8 + i]; in reference_dct_2d()
54 for (int j = 0; j < 8; ++j) in reference_dct_2d() local
55 output[j*8 + i] = temp_out[j]; in reference_dct_2d()
60 for (int j = 0; j < 8; ++j) in reference_dct_2d() local
61 temp_in[j] = output[j + i*8]; in reference_dct_2d()
63 for (int j = 0; j < 8; ++j) in reference_dct_2d() local
64 output[j + i*8] = temp_out[j]; in reference_dct_2d()
89 for (int j = 0; j < 8; ++j) in reference_idct_2d() local
90 temp_in[j] = input[j + i*8]; in reference_idct_2d()
[all …]
Ddct32x32_test.cc56 for (int j = 0; j < 32; ++j) in reference_32x32_dct_2d() local
57 temp_in[j] = input[j*32 + i]; in reference_32x32_dct_2d()
59 for (int j = 0; j < 32; ++j) in reference_32x32_dct_2d() local
60 output[j * 32 + i] = temp_out[j]; in reference_32x32_dct_2d()
65 for (int j = 0; j < 32; ++j) in reference_32x32_dct_2d() local
66 temp_in[j] = output[j + i*32]; in reference_32x32_dct_2d()
69 for (int j = 0; j < 32; ++j) in reference_32x32_dct_2d() local
70 output[j + i * 32] = temp_out[j] / 4; in reference_32x32_dct_2d()
109 for (int j = 0; j < kNumCoeffs; ++j) { in TEST_P() local
110 src[j] = rnd.Rand8(); in TEST_P()
[all …]
Dfdct8x8_test.cc69 for (int j = 0; j < 64; ++j) in RunSignBiasCheck() local
70 test_input_block[j] = rnd.Rand8() - rnd.Rand8(); in RunSignBiasCheck()
74 for (int j = 0; j < 64; ++j) { in RunSignBiasCheck() local
75 if (test_output_block[j] < 0) in RunSignBiasCheck()
76 ++count_sign_block[j][0]; in RunSignBiasCheck()
77 else if (test_output_block[j] > 0) in RunSignBiasCheck()
78 ++count_sign_block[j][1]; in RunSignBiasCheck()
82 for (int j = 0; j < 64; ++j) { in RunSignBiasCheck() local
83 const int diff = abs(count_sign_block[j][0] - count_sign_block[j][1]); in RunSignBiasCheck()
88 << " for input range [-255, 255] at index " << j in RunSignBiasCheck()
[all …]
Dvp8_fdct4x4_test.cc83 for (int j = 0; j < 16; ++j) in TEST() local
84 test_input_block[j] = rnd.Rand8() - rnd.Rand8(); in TEST()
88 for (int j = 0; j < 16; ++j) { in TEST() local
89 if (test_output_block[j] < 0) in TEST()
90 ++count_sign_block[j][0]; in TEST()
91 else if (test_output_block[j] > 0) in TEST()
92 ++count_sign_block[j][1]; in TEST()
97 for (int j = 0; j < 16; ++j) in TEST() local
99 (abs(count_sign_block[j][0] - count_sign_block[j][1]) < 10000); in TEST()
108 for (int j = 0; j < 16; ++j) in TEST() local
[all …]
Dfdct4x4_test.cc72 for (int j = 0; j < kNumCoeffs; ++j) { in RunAccuracyCheck() local
73 src[j] = rnd.Rand8(); in RunAccuracyCheck()
74 dst[j] = rnd.Rand8(); in RunAccuracyCheck()
75 test_input_block[j] = src[j] - dst[j]; in RunAccuracyCheck()
82 for (int j = 0; j < kNumCoeffs; ++j) { in RunAccuracyCheck() local
83 const uint32_t diff = dst[j] - src[j]; in RunAccuracyCheck()
107 for (int j = 0; j < kNumCoeffs; ++j) in RunCoeffCheck() local
108 input_block[j] = rnd.Rand8() - rnd.Rand8(); in RunCoeffCheck()
114 for (int j = 0; j < kNumCoeffs; ++j) in RunCoeffCheck() local
115 EXPECT_EQ(output_block[j], output_ref_block[j]); in RunCoeffCheck()
[all …]
Ddct16x16_test.cc50 for (int j = 0; j < 16; ++j) { in reference2_16x16_idct_2d() local
51 x = cos(PI * j * (l + 0.5) / 16.0) * in reference2_16x16_idct_2d()
53 input[i * 16 + j] / 256; in reference2_16x16_idct_2d()
56 if (j != 0) in reference2_16x16_idct_2d()
243 for (int j = 0; j < 16; ++j) in reference_16x16_dct_2d() local
244 temp_in[j] = input[j * 16 + i]; in reference_16x16_dct_2d()
246 for (int j = 0; j < 16; ++j) in reference_16x16_dct_2d() local
247 output[j * 16 + i] = temp_out[j]; in reference_16x16_dct_2d()
252 for (int j = 0; j < 16; ++j) in reference_16x16_dct_2d() local
253 temp_in[j] = output[j + i * 16]; in reference_16x16_dct_2d()
[all …]
/hardware/intel/img/psb_video/src/
Dpsb_drv_debug.c349 int j,k; in psb__dump_I420_buffers() local
354 for(j = 0; j < srch; ++j) in psb__dump_I420_buffers()
360 for(j = 0; j < srch /2; ++j) { in psb__dump_I420_buffers()
370 for(j = 0; j < srch /2; ++j) in psb__dump_I420_buffers()
841 unsigned int j,k; in psb__dump_va_buffers() local
853 j=0; in psb__dump_va_buffers()
855 …mp_vabuf_fp,"0x%02x ,",*((unsigned char *)(obj_buffer->buffer_data+obj_buffer->num_elements*j+k))); in psb__dump_va_buffers()
865 for(j=0; j<obj_buffer->size;++j) { in psb__dump_va_buffers()
866 if(j%16 == 0) fprintf(psb_dump_vabuf_fp,"\n"); in psb__dump_va_buffers()
868 …tf(psb_dump_vabuf_fp,"0x%02x ",*((unsigned char *)(mapped_buffer+obj_buffer->num_elements*j+k))); in psb__dump_va_buffers()
[all …]
/hardware/samsung_slsi/exynos5/libswconverter/
Dswconvertor.c153 unsigned int i, j, k; in csc_tiled_to_linear_y() local
163 for (j = 0; j<aligned_width; j = j + 16) { in csc_tiled_to_linear_y()
164 src_offset = (tiled_width * i) + (j << 4); in csc_tiled_to_linear_y()
165 dst_offset = width * i + j; in csc_tiled_to_linear_y()
176 src_offset = (tiled_width * i) + (j << 4); in csc_tiled_to_linear_y()
177 dst_offset = width * i + j; in csc_tiled_to_linear_y()
179 memcpy(y_dst + dst_offset, y_src + src_offset, width - j); in csc_tiled_to_linear_y()
182 memcpy(y_dst + dst_offset, y_src + src_offset, width - j); in csc_tiled_to_linear_y()
190 for (j = 0; j<aligned_width; j = j + 16) { in csc_tiled_to_linear_y()
191 src_offset = (tiled_width * i) + (j << 4); in csc_tiled_to_linear_y()
[all …]
/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
DAKFS_AOC.c63 int16 i, j; in From4Points2Sphere() local
67 for(j = 0; j < 3; j++){ in From4Points2Sphere()
68 dif[i][j] = points[i].v[j] - points[3].v[j]; in From4Points2Sphere()
69 r2[i] += (points[i].v[j]*points[i].v[j] in From4Points2Sphere()
70 - points[3].v[j]*points[3].v[j]); in From4Points2Sphere()
126 int16 j; in MeanVar() local
130 for(j = 0; j < 3; j++){ in MeanVar()
131 min.v[j] = v[0].v[j]; in MeanVar()
132 max.v[j] = v[0].v[j]; in MeanVar()
134 if(v[i].v[j] < min.v[j]){ in MeanVar()
[all …]
/hardware/qcom/media/mm-core/omxcore/src/common/
Dqc_omx_core.c168 unsigned i = 0,j=0; in clear_cmp_handle() local
175 for(j=0; j< OMX_COMP_MAX_INST; j++) in clear_cmp_handle()
177 if(inst == core[i].inst[j]) in clear_cmp_handle()
179 core[i].inst[j] = NULL; in clear_cmp_handle()
202 unsigned i=0,j=0; in is_cmp_handle_exists() local
210 for(j=0; j< OMX_COMP_MAX_INST; j++) in is_cmp_handle_exists()
212 if(inst == core[i].inst[j]) in is_cmp_handle_exists()
237 unsigned i=0,j=0; in get_comp_handle_index() local
243 for(j=0; j< OMX_COMP_MAX_INST; j++) in get_comp_handle_index()
245 if(NULL == core[i].inst[j]) in get_comp_handle_index()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_ssim.c18 int i, j; in vp9_ssim_parms_16x16_c() local
20 for (j = 0; j < 16; j++) { in vp9_ssim_parms_16x16_c()
21 *sum_s += s[j]; in vp9_ssim_parms_16x16_c()
22 *sum_r += r[j]; in vp9_ssim_parms_16x16_c()
23 *sum_sq_s += s[j] * s[j]; in vp9_ssim_parms_16x16_c()
24 *sum_sq_r += r[j] * r[j]; in vp9_ssim_parms_16x16_c()
25 *sum_sxr += s[j] * r[j]; in vp9_ssim_parms_16x16_c()
33 int i, j; in vp9_ssim_parms_8x8_c() local
35 for (j = 0; j < 8; j++) { in vp9_ssim_parms_8x8_c()
36 *sum_s += s[j]; in vp9_ssim_parms_8x8_c()
[all …]
Dvp9_resize.c317 int i, j; in down2_symeven() local
327 for (j = 0; j < filter_len_half; ++j) { in down2_symeven()
328 sum += (input[(i - j < 0 ? 0 : i - j)] + in down2_symeven()
329 input[(i + 1 + j >= length ? length - 1 : i + 1 + j)]) * in down2_symeven()
330 filter[j]; in down2_symeven()
339 for (j = 0; j < filter_len_half; ++j) { in down2_symeven()
340 sum += (input[(i - j < 0 ? 0 : i - j)] + input[i + 1 + j]) * filter[j]; in down2_symeven()
348 for (j = 0; j < filter_len_half; ++j) { in down2_symeven()
349 sum += (input[i - j] + input[i + 1 + j]) * filter[j]; in down2_symeven()
357 for (j = 0; j < filter_len_half; ++j) { in down2_symeven()
[all …]
/hardware/qcom/media/mm-core/src/common/
Dqc_omx_core.c165 unsigned i = 0,j=0; in clear_cmp_handle() local
172 for(j=0; j< OMX_COMP_MAX_INST; j++) in clear_cmp_handle()
174 if(inst == core[i].inst[j]) in clear_cmp_handle()
176 core[i].inst[j] = NULL; in clear_cmp_handle()
199 unsigned i=0,j=0; in is_cmp_handle_exists() local
208 for(j=0; j< OMX_COMP_MAX_INST; j++) in is_cmp_handle_exists()
210 if(inst == core[i].inst[j]) in is_cmp_handle_exists()
237 unsigned i=0,j=0; in get_comp_handle_index() local
243 for(j=0; j< OMX_COMP_MAX_INST; j++) in get_comp_handle_index()
245 if(NULL == core[i].inst[j]) in get_comp_handle_index()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dssim.c27 int i,j; in vp8_ssim_parms_16x16_c() local
30 for(j=0;j<16;j++) in vp8_ssim_parms_16x16_c()
32 *sum_s += s[j]; in vp8_ssim_parms_16x16_c()
33 *sum_r += r[j]; in vp8_ssim_parms_16x16_c()
34 *sum_sq_s += s[j] * s[j]; in vp8_ssim_parms_16x16_c()
35 *sum_sq_r += r[j] * r[j]; in vp8_ssim_parms_16x16_c()
36 *sum_sxr += s[j] * r[j]; in vp8_ssim_parms_16x16_c()
53 int i,j; in vp8_ssim_parms_8x8_c() local
56 for(j=0;j<8;j++) in vp8_ssim_parms_8x8_c()
58 *sum_s += s[j]; in vp8_ssim_parms_8x8_c()
[all …]
Drdopt.h23 int i, j, k; in insertsortmv() local
27 for ( j = 0 ; j < i ; j++ ) in insertsortmv()
29 if ( arr[j] > arr[i] ) in insertsortmv()
35 for ( k = i; k >j; k--) in insertsortmv()
38 arr[j] = temp ; in insertsortmv()
46 int i, j, k; in insertsortsad() local
50 for ( j = 0 ; j < i ; j++ ) in insertsortsad()
52 if ( arr[j] > arr[i] ) in insertsortsad()
59 for ( k = i; k >j; k--) in insertsortsad()
65 arr[j] = temp ; in insertsortsad()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DALSAMixer.cpp209 for (int j = 0; mixerProp[j][i].device; j++) { in ALSAMixer() local
211 mixer_info_t *info = mixerProp[j][i].mInfo = new mixer_info_t; in ALSAMixer()
213 property_get (mixerProp[j][i].propName, in ALSAMixer()
215 mixerProp[j][i].propDefault); in ALSAMixer()
257 for (int j = 0; mixerProp[j][i].device; j++) { in ~ALSAMixer() local
258 if (mixerProp[j][i].mInfo) { in ~ALSAMixer()
259 delete mixerProp[j][i].mInfo; in ~ALSAMixer()
260 mixerProp[j][i].mInfo = NULL; in ~ALSAMixer()
307 for (int j = 0; mixerProp[j][SND_PCM_STREAM_PLAYBACK].device; j++) in setVolume() local
308 if (mixerProp[j][SND_PCM_STREAM_PLAYBACK].device & device) { in setVolume()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_idct.c122 int i, j; in vp9_idct4x4_16_add_c() local
134 for (j = 0; j < 4; ++j) in vp9_idct4x4_16_add_c()
135 temp_in[j] = out[j * 4 + i]; in vp9_idct4x4_16_add_c()
137 for (j = 0; j < 4; ++j) in vp9_idct4x4_16_add_c()
138 dest[j * stride + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 4) in vp9_idct4x4_16_add_c()
139 + dest[j * stride + i]); in vp9_idct4x4_16_add_c()
207 int i, j; in vp9_idct8x8_64_add_c() local
219 for (j = 0; j < 8; ++j) in vp9_idct8x8_64_add_c()
220 temp_in[j] = out[j * 8 + i]; in vp9_idct8x8_64_add_c()
222 for (j = 0; j < 8; ++j) in vp9_idct8x8_64_add_c()
[all …]
Dvp9_entropymode.c352 int i, j; in vp9_adapt_mode_probs() local
367 for (j = 0; j < 2; j++) in vp9_adapt_mode_probs()
368 fc->single_ref_prob[i][j] = adapt_prob(pre_fc->single_ref_prob[i][j], in vp9_adapt_mode_probs()
369 counts->single_ref[i][j]); in vp9_adapt_mode_probs()
394 int j; in vp9_adapt_mode_probs() local
401 for (j = 0; j < TX_SIZES - 3; ++j) in vp9_adapt_mode_probs()
402 fc->tx_probs.p8x8[i][j] = adapt_prob(pre_fc->tx_probs.p8x8[i][j], in vp9_adapt_mode_probs()
403 branch_ct_8x8p[j]); in vp9_adapt_mode_probs()
406 for (j = 0; j < TX_SIZES - 2; ++j) in vp9_adapt_mode_probs()
407 fc->tx_probs.p16x16[i][j] = adapt_prob(pre_fc->tx_probs.p16x16[i][j], in vp9_adapt_mode_probs()
[all …]
/hardware/intel/img/libdrm/tests/
Ddristat.c187 int j; in getstats() local
194 for (j = 0; j < prev.count; j++) { in getstats()
196 printf(prev.data[j].long_format, prev.data[j].long_name); in getstats()
197 if (prev.data[j].isvalue) printf(" 0x%08lx\n", prev.data[j].value); in getstats()
198 else printf(" %10lu\n", prev.data[j].value); in getstats()
204 for (j = 0; j < prev.count; j++) in getstats()
205 if (!prev.data[j].verbose) { in getstats()
207 printf(prev.data[j].rate_format, prev.data[j].rate_name); in getstats()
215 for (j = 0; j < curr.count; j++) { in getstats()
216 if (curr.data[j].verbose) continue; in getstats()
[all …]
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c106 int i, j, result, find_flag; in parsing_proc_input() local
134 j = 0; in parsing_proc_input()
137 while(j < CHIP_NUM){ in parsing_proc_input()
138 if(!memcmp(&line[i], chip_name[j], strlen(chip_name[j]))){ in parsing_proc_input()
140 chip_ind = j; in parsing_proc_input()
142 j++; in parsing_proc_input()
157 j = 0; in parsing_proc_input()
159 tmp[j] = line[i]; in parsing_proc_input()
160 i ++; j++; in parsing_proc_input()
185 j = 0; in parsing_proc_input()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/mips/dspr2/
Didct_blk_dspr2.c20 int i, j; in vp8_dequant_idct_add_y_block_dspr2() local
24 for (j = 0; j < 4; j++) in vp8_dequant_idct_add_y_block_dspr2()
46 int i, j; in vp8_dequant_idct_add_uv_block_dspr2() local
50 for (j = 0; j < 2; j++) in vp8_dequant_idct_add_uv_block_dspr2()
69 for (j = 0; j < 2; j++) in vp8_dequant_idct_add_uv_block_dspr2()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Didct_blk.c25 int i, j; in vp8_dequant_idct_add_y_block_c() local
29 for (j = 0; j < 4; j++) in vp8_dequant_idct_add_y_block_c()
51 int i, j; in vp8_dequant_idct_add_uv_block_c() local
55 for (j = 0; j < 2; j++) in vp8_dequant_idct_add_uv_block_c()
74 for (j = 0; j < 2; j++) in vp8_dequant_idct_add_uv_block_c()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c124 int i, j, result, find_flag; in parsing_proc_input() local
152 j = 0; in parsing_proc_input()
155 while(j < CHIP_NUM){ in parsing_proc_input()
156 if(!memcmp(&line[i], chip_name[j], strlen(chip_name[j]))){ in parsing_proc_input()
158 chip_ind = j; in parsing_proc_input()
160 j++; in parsing_proc_input()
175 j = 0; in parsing_proc_input()
177 tmp[j] = line[i]; in parsing_proc_input()
178 i ++; j++; in parsing_proc_input()
203 j = 0; in parsing_proc_input()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c117 int i, j, result, find_flag; in parsing_proc_input() local
145 j = 0; in parsing_proc_input()
148 while(j < CHIP_NUM){ in parsing_proc_input()
149 if(!memcmp(&line[i], chip_name[j], strlen(chip_name[j]))){ in parsing_proc_input()
151 chip_ind = j; in parsing_proc_input()
153 j++; in parsing_proc_input()
168 j = 0; in parsing_proc_input()
170 tmp[j] = line[i]; in parsing_proc_input()
171 i ++; j++; in parsing_proc_input()
196 j = 0; in parsing_proc_input()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/mips/dspr2/
Dvp9_itrans4_dspr2.c367 int i, j; in vp9_iht4x4_16_add_dspr2() local
393 for (j = 0; j < 4; ++j) in vp9_iht4x4_16_add_dspr2()
394 dest[j * dest_stride + i] = in vp9_iht4x4_16_add_dspr2()
395 clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 4) in vp9_iht4x4_16_add_dspr2()
396 + dest[j * dest_stride + i]); in vp9_iht4x4_16_add_dspr2()
409 for (j = 0; j < 4; ++j) { in vp9_iht4x4_16_add_dspr2()
410 temp_in[i * 4 + j] = out[j * 4 + i]; in vp9_iht4x4_16_add_dspr2()
423 for (j = 0; j < 4; ++j) in vp9_iht4x4_16_add_dspr2()
424 temp_in[j] = out[j * 4 + i]; in vp9_iht4x4_16_add_dspr2()
427 for (j = 0; j < 4; ++j) in vp9_iht4x4_16_add_dspr2()
[all …]

12345678910>>...12