/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | idct_test.cc | 26 int i; in SetUp() local 31 for (i = 0; i < 256; i++) output[i] = ((i & 0xF) < 4 && (i < 64)) ? 0 : -1; in SetUp() 43 int i; in TEST_P() local 45 for (i = 0; i < 256; i++) in TEST_P() 46 if ((i & 0xF) < 4 && i < 64) in TEST_P() 47 EXPECT_EQ(0, output[i]) << i; in TEST_P() 49 EXPECT_EQ(255, output[i]); in TEST_P() 53 int i; in TEST_P() local 57 for (i = 0; i < 256; i++) in TEST_P() 58 if ((i & 0xF) < 4 && i < 64) in TEST_P() [all …]
|
D | vp8_boolcoder_test.cc | 39 for (size_t i = 0; i < size; ++i) { in encrypt_buffer() local 40 buffer[i] ^= secret_key[i & 15]; in encrypt_buffer() 47 for (int i = 0; i < count; i++) { in test_decrypt_cb() local 48 output[i] = input[i] ^ secret_key[(offset + i) & 15]; in test_decrypt_cb() 63 for (int i = 0; i < kBitsToTest; ++i) { in TEST() local 64 const int parity = i & 1; in TEST() 65 probas[i] = in TEST() 85 for (int i = 0; i < kBitsToTest; ++i) { in TEST() local 87 bit = (i & 1); in TEST() 91 vp8_encode_bool(&bw, bit, static_cast<int>(probas[i])); in TEST() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_sad.c | 68 int i; in vp9_sad64x32x4d_c() local 69 for (i = 0; i < 4; ++i) in vp9_sad64x32x4d_c() 70 sad_array[i] = vp9_sad64x32(src_ptr, src_stride, ref_ptr[i], ref_stride, in vp9_sad64x32x4d_c() 77 int i; in vp9_sad32x64x4d_c() local 78 for (i = 0; i < 4; ++i) in vp9_sad32x64x4d_c() 79 sad_array[i] = vp9_sad32x64(src_ptr, src_stride, ref_ptr[i], ref_stride, in vp9_sad32x64x4d_c() 86 int i; in vp9_sad32x16x4d_c() local 87 for (i = 0; i < 4; ++i) in vp9_sad32x16x4d_c() 88 sad_array[i] = vp9_sad32x16(src_ptr, src_stride, ref_ptr[i], ref_stride, in vp9_sad32x16x4d_c() 95 int i; in vp9_sad16x32x4d_c() local [all …]
|
/hardware/ti/omap4-aah/ion/ |
D | ion_test_2.c | 65 int fd, ret = 0, i, count_alloc; in ion_alloc_test() local 82 for(i = 0; i < count; i++) { in ion_alloc_test() 83 ret = _ion_alloc_test(fd, &(handle[i])); in ion_alloc_test() 84 printf("%s(): Alloc handle[%d]=%p\n", __func__, i, handle[i]); in ion_alloc_test() 85 if(ret || ((int)handle[i] == -ENOMEM)) { in ion_alloc_test() 87 __func__, i, handle[i], strerror(ret)); in ion_alloc_test() 88 count_alloc = i; in ion_alloc_test() 95 for (i = 0; i < count_alloc; i++) { in ion_alloc_test() 96 printf("%s(): Free handle[%d]=%p\n", __func__, i, handle[i]); in ion_alloc_test() 97 ret = ion_free(fd, handle[i]); in ion_alloc_test() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/ |
D | vp8_multi_resolution_encoder.c | 182 int i; in main() local 231 for (i=0; i< NUM_ENCODERS; i++) in main() 233 if(!target_bitrate[i]) in main() 235 outfile[i] = NULL; in main() 239 if(!(outfile[i] = fopen(argv[i+4], "wb"))) in main() 240 die("Failed to open %s for writing", argv[i+4]); in main() 246 for (i=0; i< NUM_ENCODERS; i++) in main() 248 res[i] = vpx_codec_enc_config_default(interface, &cfg[i], 0); in main() 249 if(res[i]) { in main() 250 printf("Failed to get config: %s\n", vpx_codec_err_to_string(res[i])); in main() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/halloc/src/ |
D | hlist.h | 50 #define __hlist_init_item(i) { &hlist_null, &(i).next } argument 53 static_inline void hlist_init_item(hlist_item_t * i); 65 static_inline void hlist_add(hlist_head_t * h, hlist_item_t * i); 70 static_inline void hlist_del(hlist_item_t * i); 72 static_inline void hlist_relink(hlist_item_t * i); 75 #define hlist_for_each(i, h) \ argument 76 for (i = (h)->next; i != &hlist_null; i = i->next) 78 #define hlist_for_each_safe(i, tmp, h) \ argument 79 for (i = (h)->next, tmp = i->next; \ 80 i!= &hlist_null; \ [all …]
|
/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/ |
D | AKFS_AOC.c | 29 int16 i; in CalcR() local 33 for(i = 0; i < 3; i++){ in CalcR() 34 r += (x->v[i]-y->v[i]) * (x->v[i]-y->v[i]); in CalcR() 63 int16 i, j; in From4Points2Sphere() local 65 for(i = 0; i < 3; i++){ in From4Points2Sphere() 66 r2[i] = 0.0; 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() 72 r2[i] *= 0.5; in From4Points2Sphere() 125 int16 i; in MeanVar() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
D | vp9_entropymode.c | 352 int i, j; in vp9_adapt_mode_probs() local 357 for (i = 0; i < INTRA_INTER_CONTEXTS; i++) in vp9_adapt_mode_probs() 358 fc->intra_inter_prob[i] = adapt_prob(pre_fc->intra_inter_prob[i], in vp9_adapt_mode_probs() 359 counts->intra_inter[i]); in vp9_adapt_mode_probs() 360 for (i = 0; i < COMP_INTER_CONTEXTS; i++) in vp9_adapt_mode_probs() 361 fc->comp_inter_prob[i] = adapt_prob(pre_fc->comp_inter_prob[i], in vp9_adapt_mode_probs() 362 counts->comp_inter[i]); in vp9_adapt_mode_probs() 363 for (i = 0; i < REF_CONTEXTS; i++) in vp9_adapt_mode_probs() 364 fc->comp_ref_prob[i] = adapt_prob(pre_fc->comp_ref_prob[i], in vp9_adapt_mode_probs() 365 counts->comp_ref[i]); in vp9_adapt_mode_probs() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
D | reconintra.c | 26 int r, c, i; in vp8_build_intra_predictors_mby_s_c() local 28 for (i = 0; i < 16; i++) in vp8_build_intra_predictors_mby_s_c() 30 yleft_col[i] = yleft[i* left_stride]; in vp8_build_intra_predictors_mby_s_c() 47 for (i = 0; i < 16; i++) in vp8_build_intra_predictors_mby_s_c() 49 average += yabove_row[i]; in vp8_build_intra_predictors_mby_s_c() 56 for (i = 0; i < 16; i++) in vp8_build_intra_predictors_mby_s_c() 58 average += yleft_col[i]; in vp8_build_intra_predictors_mby_s_c() 156 int i, j; in vp8_build_intra_predictors_mbuv_s_c() local 158 for (i = 0; i < 8; i++) in vp8_build_intra_predictors_mbuv_s_c() 160 uleft_col[i] = uleft [i* left_stride]; in vp8_build_intra_predictors_mbuv_s_c() [all …]
|
/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 43 int i; in mm_app_tc_open_close() local 47 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_open_close() 49 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close() 52 __func__, i, rc); in mm_app_tc_open_close() 59 __func__, i, rc); in mm_app_tc_open_close() 75 int i, j; in mm_app_tc_start_stop_preview() local 79 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_start_stop_preview() 81 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_start_stop_preview() 84 __func__, i, rc); in mm_app_tc_start_stop_preview() 92 __func__, i, rc); in mm_app_tc_start_stop_preview() [all …]
|
/hardware/qcom/media/mm-core/omxcore/src/common/ |
D | qc_omx_core.c | 136 int rc = -1,i=0; in get_cmp_index() local 139 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index() 141 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index() 143 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index() 145 rc = i; in get_cmp_index() 168 unsigned i = 0,j=0; in clear_cmp_handle() local 173 for(i=0; i< SIZE_OF_CORE; i++) 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 [all …]
|
/hardware/qcom/media/mm-core/src/common/ |
D | qc_omx_core.c | 133 int rc = -1,i=0; in get_cmp_index() local 136 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index() 138 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index() 140 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index() 142 rc = i; in get_cmp_index() 165 unsigned i = 0,j=0; in clear_cmp_handle() local 170 for(i=0; i< SIZE_OF_CORE; i++) 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 [all …]
|
/hardware/libhardware/tests/camera2/ |
D | CameraBurstTests.cpp | 176 for (int i = 1; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local 177 exposures[i] = exposures[i-1] * CAMERA_EXPOSURE_DOUBLE; in TEST_F() 218 for (int i = 0; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local 221 &exposures[i], 1)); in TEST_F() 222 ALOGV("Submitting capture request %d with exposure %" PRId64, i, in TEST_F() 223 exposures[i]); in TEST_F() 224 dout << "Capture request " << i << " exposure is " in TEST_F() 225 << (exposures[i]/1e6f) << std::endl; in TEST_F() 233 for (int i = 0; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local 234 ALOGV("Reading capture request %d with exposure %" PRId64, i, exposures[i]); in TEST_F() [all …]
|
/hardware/intel/img/hwcomposer/merrifield/ips/anniedale/ |
D | AnnPlaneManager.cpp | 199 for (int i = 0; i < size; i++) { in isValidZOrder() local 200 if (config[i]->planeType == DisplayPlane::PLANE_CURSOR) { in isValidZOrder() 215 for (int i = 0; i < size; i++) { in isValidZOrder() local 216 if (config[i]->planeType == DisplayPlane::PLANE_OVERLAY) { in isValidZOrder() 217 firstOverlay = i; in isValidZOrder() 223 for (int i = 0; i < size; i++) { in isValidZOrder() local 224 if (config[i]->planeType != DisplayPlane::PLANE_OVERLAY && in isValidZOrder() 225 config[i]->planeType != DisplayPlane::PLANE_CURSOR) { in isValidZOrder() 243 for (int i = 0; i < size; i++) { in isValidZOrder() local 244 if (config[i]->planeType != DisplayPlane::PLANE_OVERLAY && in isValidZOrder() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/anniedale/ |
D | AnnPlaneManager.cpp | 180 for (int i = 0; i < size; i++) { in isValidZOrder() local 181 if (config[i]->planeType == DisplayPlane::PLANE_OVERLAY) { in isValidZOrder() 182 firstOverlay = i; in isValidZOrder() 188 for (int i = 0; i < size; i++) { in isValidZOrder() local 189 if (config[i]->planeType != DisplayPlane::PLANE_OVERLAY && in isValidZOrder() 190 config[i]->planeType != DisplayPlane::PLANE_CURSOR) { in isValidZOrder() 208 for (int i = 0; i < size; i++) { in isValidZOrder() local 209 if (config[i]->planeType != DisplayPlane::PLANE_OVERLAY && in isValidZOrder() 210 config[i]->planeType != DisplayPlane::PLANE_CURSOR) { in isValidZOrder() 236 for (int i = 0; i < size; i++) { in assignPlanes() local [all …]
|
/hardware/qcom/display/msm8974/liboverlay/ |
D | overlayRotator.cpp | 67 for(uint32_t i=0; i < RotMem::MAX_ROT_MEM; ++i) { in close() local 69 if(m[i].valid()) { in close() 70 if(m[i].close() == false) { in close() 71 ALOGE("%s error in closing rot mem %d", __FUNCTION__, i); in close() 81 for(int i = 0; i < ROT_NUM_BUFS; i++) { in Mem() local 82 mRelFence[i] = -1; in Mem() 87 for(int i = 0; i < ROT_NUM_BUFS; i++) { in ~Mem() local 88 ::close(mRelFence[i]); in ~Mem() 89 mRelFence[i] = -1; in ~Mem() 114 for(int i = 0; i < MAX_ROT_SESS; i++) { in RotMgr() local [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlayRotator.cpp | 67 for(uint32_t i=0; i < RotMem::MAX_ROT_MEM; ++i) { in close() local 69 if(m[i].valid()) { in close() 70 if(m[i].close() == false) { in close() 71 ALOGE("%s error in closing rot mem %d", __FUNCTION__, i); in close() 81 for(int i = 0; i < ROT_NUM_BUFS; i++) { in Mem() local 82 mRelFence[i] = -1; in Mem() 87 for(int i = 0; i < ROT_NUM_BUFS; i++) { in ~Mem() local 88 ::close(mRelFence[i]); in ~Mem() 89 mRelFence[i] = -1; in ~Mem() 114 for(int i = 0; i < MAX_ROT_SESS; i++) { in RotMgr() local [all …]
|
/hardware/qcom/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 204 size_t i, count; in reset() local 209 for (i = 0; i < count; i++) { in reset() 210 mMemInfo[i].fd = -1; in reset() 211 mMemInfo[i].main_ion_fd = -1; in reset() 249 for (int i = 1; i < bufDef.planes_buf.num_planes; i++) { in getBufDef() local 250 bufDef.planes_buf.planes[i].length = offset.mp[i].len; in getBufDef() 251 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef() 252 bufDef.planes_buf.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 253 bufDef.planes_buf.planes[i].reserved[0] = in getBufDef() 254 bufDef.planes_buf.planes[i-1].reserved[0] + in getBufDef() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/ |
D | DisplayPlaneManager.cpp | 30 int i; in DisplayPlaneManager() local 32 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in DisplayPlaneManager() 33 mPlaneCount[i] = 0; in DisplayPlaneManager() 34 mFreePlanes[i] = 0; in DisplayPlaneManager() 35 mReclaimedPlanes[i] = 0; in DisplayPlaneManager() 46 int i; in deinitialize() local 49 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in deinitialize() 50 for (j = 0; j < mPlanes[i].size(); j++) { in deinitialize() 52 DisplayPlane *plane = mPlanes[i].itemAt(j); in deinitialize() 57 mPlanes[i].clear(); in deinitialize() [all …]
|
/hardware/intel/img/hwcomposer/merrifield/common/planes/ |
D | DisplayPlaneManager.cpp | 30 int i; in DisplayPlaneManager() local 32 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in DisplayPlaneManager() 33 mPlaneCount[i] = 0; in DisplayPlaneManager() 34 mFreePlanes[i] = 0; in DisplayPlaneManager() 35 mReclaimedPlanes[i] = 0; in DisplayPlaneManager() 46 int i; in deinitialize() local 49 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in deinitialize() 50 for (j = 0; j < mPlanes[i].size(); j++) { in deinitialize() 52 DisplayPlane *plane = mPlanes[i].itemAt(j); in deinitialize() 57 mPlanes[i].clear(); in deinitialize() [all …]
|
/hardware/intel/common/libva/test/basic/ |
D | test_11.c | 61 int i,j; in test_unique_buffers() local 63 for(i = 0; i < buffer_count; i++) in test_unique_buffers() 65 for(j = 0; j < i; j++) in test_unique_buffers() 67 ASSERT(buffer_list[i] != buffer_list[j]); in test_unique_buffers() 107 unsigned int i, j; in test() local 109 for(i=0; i < NUM_BUFFER_TYPES; i++) in test() 113 input_data[i] = malloc(buffer_sizes[i]+4); in test() 114 ASSERT(input_data[i]); in test() 117 for(j = buffer_sizes[i] / 4; j--;) in test() 119 input_data[i][j] = random(); in test() [all …]
|
/hardware/intel/img/psb_video/src/hwdefs/ |
D | topazhp_core_regs.h | 2318 #define MASK_TOPAZHP_CR_JMCOMP_LUMA_QUANT_00(i) (0x000000FF << (0 + ((i) * 8))) argument 2319 #define SHIFT_TOPAZHP_CR_JMCOMP_LUMA_QUANT_00(i) (0 + ((i) * 8)) argument 2320 #define REGNUM_TOPAZHP_CR_JMCOMP_LUMA_QUANT_00(i) 0x0280 argument 2324 #define MASK_TOPAZHP_CR_JMCOMP_LUMA_QUANT_01(i) (0x000000FF << (0 + ((i) * 8))) argument 2325 #define SHIFT_TOPAZHP_CR_JMCOMP_LUMA_QUANT_01(i) (0 + ((i) * 8)) argument 2326 #define REGNUM_TOPAZHP_CR_JMCOMP_LUMA_QUANT_01(i) 0x0284 argument 2330 #define MASK_TOPAZHP_CR_JMCOMP_LUMA_QUANT_02(i) (0x000000FF << (0 + ((i) * 8))) argument 2331 #define SHIFT_TOPAZHP_CR_JMCOMP_LUMA_QUANT_02(i) (0 + ((i) * 8)) argument 2332 #define REGNUM_TOPAZHP_CR_JMCOMP_LUMA_QUANT_02(i) 0x0288 argument 2336 #define MASK_TOPAZHP_CR_JMCOMP_LUMA_QUANT_03(i) (0x000000FF << (0 + ((i) * 8))) argument [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/arm/neon/ |
D | vp9_idct32x32_add_neon.asm | 463 ;step1b[16][i] = dct_const_round_shift(temp1); 464 ;step1b[31][i] = dct_const_round_shift(temp2); 471 ;step1b[17][i] = dct_const_round_shift(temp1); 472 ;step1b[30][i] = dct_const_round_shift(temp2); 477 ;step2[16] = step1b[16][i] + step1b[17][i]; 478 ;step2[17] = step1b[16][i] - step1b[17][i]; 479 ;step2[30] = -step1b[30][i] + step1b[31][i]; 480 ;step2[31] = step1b[30][i] + step1b[31][i]; 487 ;temp1 = step1b[30][i] * cospi_28_64 - step1b[17][i] * cospi_4_64; 488 ;temp2 = step1b[30][i] * cospi_4_64 - step1b[17][i] * cospi_28_64; [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/ |
D | quantize_arm.c | 28 int i; in vp8_quantize_mby_neon() local 32 for (i = 0; i < 16; i+=2) in vp8_quantize_mby_neon() 33 x->quantize_b_pair(&x->block[i], &x->block[i+1], in vp8_quantize_mby_neon() 34 &x->e_mbd.block[i], &x->e_mbd.block[i+1]); in vp8_quantize_mby_neon() 42 int i; in vp8_quantize_mb_neon() local 46 for (i = 0; i < 24; i+=2) in vp8_quantize_mb_neon() 47 x->quantize_b_pair(&x->block[i], &x->block[i+1], in vp8_quantize_mb_neon() 48 &x->e_mbd.block[i], &x->e_mbd.block[i+1]); in vp8_quantize_mb_neon() 57 int i; in vp8_quantize_mbuv_neon() local 59 for (i = 16; i < 24; i+=2) in vp8_quantize_mbuv_neon() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | rate_hist.c | 39 int i; in init_rate_histogram() local 56 for (i = 0; i < RATE_BINS; i++) { in init_rate_histogram() 57 hist->bucket[i].low = INT_MAX; in init_rate_histogram() 58 hist->bucket[i].high = 0; in init_rate_histogram() 59 hist->bucket[i].count = 0; in init_rate_histogram() 76 int i; in update_rate_histogram() local 94 for (i = hist->frames; i > 0 && hist->frames - i < hist->samples; i--) { in update_rate_histogram() 95 const int i_idx = (i - 1) % hist->samples; in update_rate_histogram() 124 int i; in merge_hist_buckets() local 128 for (i = 0; i < buckets; i++) { in merge_hist_buckets() [all …]
|