/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/ |
D | h264parse_dpb.c | 346 uint8_t idx = 0; in h264_dpb_remove_ref_list() local 349 while ((idx < p_dpb->ref_frames_in_buffer) && (!(Found))) in h264_dpb_remove_ref_list() 351 if (p_dpb->fs_ref_idc[idx] == ref_idc) in h264_dpb_remove_ref_list() 354 idx++; in h264_dpb_remove_ref_list() 360 while(idx < p_dpb->ref_frames_in_buffer - 1) { in h264_dpb_remove_ref_list() 361 p_dpb->fs_ref_idc[idx] = p_dpb->fs_ref_idc[idx + 1]; in h264_dpb_remove_ref_list() 362 idx ++; in h264_dpb_remove_ref_list() 365 p_dpb->fs_ref_idc[idx] = MPD_DPB_FS_NULL_IDC; // Clear the last one in h264_dpb_remove_ref_list() 382 uint8_t idx = 0; in h264_dpb_remove_ltref_list() local 385 while ((idx < p_dpb->ltref_frames_in_buffer) && (!(Found))) in h264_dpb_remove_ltref_list() [all …]
|
/hardware/intel/common/libmix/mix_video/test/src/ |
D | test_framemanager.c | 34 guint idx, jdx; in shuffle() local 36 for (idx = 0; idx < len - 1; idx++) { in shuffle() 38 if (idx != jdx) { in shuffle() 40 g_ptr_array_index(list, jdx) = g_ptr_array_index(list, idx); in shuffle() 41 g_ptr_array_index(list, idx) = tmp; in shuffle() 61 gint idx = 0; in main() local 89 for (idx = 0; idx < 16; idx++) { in main() 96 pts = idx * G_USEC_PER_SEC * G_GINT64_CONSTANT(1000) * fps_d / fps_n; in main() 104 if (idx == 0) { in main() 144 for (idx = 0; idx < fa->len; idx++) { in main() [all …]
|
/hardware/qcom/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 749 int32_t idx = -1; in registerBuffer() local 767 idx = getFreeIndexLocked(); in registerBuffer() 768 if (0 > idx) { in registerBuffer() 773 mBufferHandle[idx] = buffer; in registerBuffer() 774 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer() 776 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer() 778 mMemInfo[idx].main_ion_fd = open("/dev/ion", O_RDONLY); in registerBuffer() 779 if (mMemInfo[idx].main_ion_fd < 0) { in registerBuffer() 784 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer() 785 if (ioctl(mMemInfo[idx].main_ion_fd, in registerBuffer() [all …]
|
/hardware/libhardware/tests/camera2/ |
D | CameraModuleTests.cpp | 91 int idx[] = { -1, mNumberOfCameras, mNumberOfCameras + 1 }; in TEST_F() local 94 for (unsigned i = 0; i < sizeof(idx)/sizeof(idx[0]); ++i) { in TEST_F() 95 String8 deviceName = String8::format("%d", idx[i]); in TEST_F() 119 int idx[] = { -1, mNumberOfCameras, mNumberOfCameras + 1 }; in TEST_F() local 120 for (unsigned i = 0; i < sizeof(idx)/sizeof(idx[0]); ++i) { in TEST_F() 122 EXPECT_NE(OK, mModule->getCameraInfo(idx[i], &info)); in TEST_F() 123 EXPECT_EQ(-EINVAL, mModule->getCameraInfo(idx[i], &info)) in TEST_F() 125 << idx[i]; in TEST_F()
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
D | bcmcdc.h | 62 #define CDC_SET_IF_IDX(hdr, idx) \ argument 63 ((hdr)->flags = (((hdr)->flags & ~CDCF_IOC_IF_MASK) | ((idx) << CDCF_IOC_IF_SHIFT))) 108 #define BDC_SET_IF_IDX(hdr, idx) \ argument 109 ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | ((idx) << BDC_FLAG2_IF_SHIFT))) 120 #define BDC_SET_PAD_LEN(hdr, idx) \ argument 122 (((idx) & BDC_FLAG2_PAD_IDX) << BDC_FLAG2_PAD_SHIFT))); \ 124 (((idx) & BDC_FLAG_PAD_IDX) << BDC_FLAG_PAD_SHIFT)))
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | external_frame_buffer_test.cc | 64 const int idx = FindFreeBufferIndex(); in GetFreeFrameBuffer() local 65 if (idx == num_buffers_) in GetFreeFrameBuffer() 68 if (ext_fb_list_[idx].size < min_size) { in GetFreeFrameBuffer() 69 delete [] ext_fb_list_[idx].data; in GetFreeFrameBuffer() 70 ext_fb_list_[idx].data = new uint8_t[min_size]; in GetFreeFrameBuffer() 71 ext_fb_list_[idx].size = min_size; in GetFreeFrameBuffer() 74 SetFrameBuffer(idx, fb); in GetFreeFrameBuffer() 82 const int idx = FindFreeBufferIndex(); in GetZeroFrameBuffer() local 83 if (idx == num_buffers_) in GetZeroFrameBuffer() 86 if (ext_fb_list_[idx].size < min_size) { in GetZeroFrameBuffer() [all …]
|
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 416 uint8_t idx = 0; in mm_camera_poll_thread_add_poll_fd() local 420 idx = mm_camera_util_get_index_by_handler(handler); in mm_camera_poll_thread_add_poll_fd() 423 idx = 0; in mm_camera_poll_thread_add_poll_fd() 426 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd() 427 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd() 428 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd() 429 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd() 430 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd() 438 LOGE("invalid handler %d (%d)", handler, idx); in mm_camera_poll_thread_add_poll_fd() 462 uint8_t idx = 0; in mm_camera_poll_thread_del_poll_fd() local [all …]
|
/hardware/intel/common/libmix/mix_video/src/ |
D | mixframemanager.c | 280 guint idx = 0; in mix_framemanager_flush() local 282 for (idx = 0; idx < len; idx++) { in mix_framemanager_flush() 284 idx); in mix_framemanager_flush() 287 g_ptr_array_index(fm->frame_array, idx) = NULL; in mix_framemanager_flush() 322 guint idx = 0; in get_expected_frame_from_array() local 340 for (idx = 0; idx < len; idx++) { in get_expected_frame_from_array() 341 MixVideoFrame *_frame = (MixVideoFrame *) g_ptr_array_index(array, idx); in get_expected_frame_from_array() 355 g_ptr_array_index(array, idx) = NULL; in get_expected_frame_from_array() 363 lowest_timestamp_idx = idx; in get_expected_frame_from_array() 400 guint idx = 0; in add_frame_into_array() local [all …]
|
D | mixvideorenderparams.c | 345 gint idx = 0; in mix_videorenderparams_set_clipping_rects() local 361 for (idx = 0; idx < number_of_clipping_rects; idx++) { in mix_videorenderparams_set_clipping_rects() 362 priv->va_cliprects[idx].x = clipping_rects[idx].x; in mix_videorenderparams_set_clipping_rects() 363 priv->va_cliprects[idx].y = clipping_rects[idx].y; in mix_videorenderparams_set_clipping_rects() 364 priv->va_cliprects[idx].width = clipping_rects[idx].width; in mix_videorenderparams_set_clipping_rects() 365 priv->va_cliprects[idx].height = clipping_rects[idx].height; in mix_videorenderparams_set_clipping_rects()
|
D | mixvideoformat_mp42.c | 131 gint idx = 0; in mix_videoformat_mp42_finalize() local 132 for (idx = 0; idx < 2; idx++) { in mix_videoformat_mp42_finalize() 133 if (self->reference_frames[idx] != NULL) { in mix_videoformat_mp42_finalize() 134 mix_videoframe_unref(self->reference_frames[idx]); in mix_videoformat_mp42_finalize() 135 self->reference_frames[idx] = NULL; in mix_videoformat_mp42_finalize() 607 gint idx = 0, jdx = 0; in mix_videofmt_mp42_process_decode() local 674 for (idx = 0; idx < data->number_pictures; idx++) { in mix_videofmt_mp42_process_decode() 675 picture_data = &(data->picture_data[idx]); in mix_videofmt_mp42_process_decode() 680 if (idx == 0 && frame_type != MP4_VOP_TYPE_I && frame_type in mix_videofmt_mp42_process_decode() 687 if (idx != 0 && frame_type != MP4_VOP_TYPE_B) { in mix_videofmt_mp42_process_decode() [all …]
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
D | MY9221Sample.java | 41 for (short idx = 1; idx < 11; idx++) { in main() 42 bar.setBarLevel(idx); in main()
|
D | MY9221_ledbarSample.java | 42 for (short idx = 1; idx < 11; idx++) { in main() 43 bar.setBarLevel(idx); in main()
|
/hardware/bsp/intel/peripheral/libupm/src/lcd/ |
D | ssd1308.cxx | 66 for (int idx = 0; idx < bytes; idx++) { in draw() local 67 m_i2c_lcd_control.writeReg(LCD_DATA, data[idx]); in draw() 148 for (uint8_t idx = 0; idx < 8; idx++) { in writeChar() local 149 rv = m_i2c_lcd_control.writeReg(LCD_DATA, BasicFont[value - 32][idx]); in writeChar()
|
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
D | my9221-ledbar.cxx | 51 for (int idx = 1; idx < 11; idx++) { in main() local 52 bar->setBarLevel (idx); in main()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | rate_hist.c | 84 int idx = hist->frames++ % hist->samples; in update_rate_histogram() local 85 hist->pts[idx] = now; in update_rate_histogram() 86 hist->sz[idx] = (int)pkt->data.frame.sz; in update_rate_histogram() 107 idx = (int)(avg_bitrate * (RATE_BINS / 2) / (cfg->rc_target_bitrate * 1000)); in update_rate_histogram() 108 if (idx < 0) in update_rate_histogram() 109 idx = 0; in update_rate_histogram() 110 if (idx > RATE_BINS - 1) in update_rate_histogram() 111 idx = RATE_BINS - 1; in update_rate_histogram() 112 if (hist->bucket[idx].low > avg_bitrate) in update_rate_histogram() 113 hist->bucket[idx].low = (int)avg_bitrate; in update_rate_histogram() [all …]
|
/hardware/qcom/audio/msm8909/hal/audio_extn/ |
D | dolby.c | 155 int idx = 0; in update_ddp_endp_table() local 160 for(idx=0; idx<DDP_ENDP_NUM_DEVICES; idx++) { in update_ddp_endp_table() 161 if(ddp_endp_params[idx].device == device) { in update_ddp_endp_table() 162 if(ddp_endp_params[idx].dev_ch_cap == dev_ch_cap) { in update_ddp_endp_table() 168 if(idx>=DDP_ENDP_NUM_DEVICES) { in update_ddp_endp_table() 184 ALOGV("ddp_endp_params[%d].param_val[%d] = %d", idx, param_idx, param_val); in update_ddp_endp_table() 185 ddp_endp_params[idx].param_val[param_idx] = param_val; in update_ddp_endp_table() 193 int idx, i; in send_ddp_endp_params_stream() local 196 for(idx=0; idx<DDP_ENDP_NUM_DEVICES; idx++) { in send_ddp_endp_params_stream() 197 if(ddp_endp_params[idx].device & device) { in send_ddp_endp_params_stream() [all …]
|
/hardware/qcom/wlan/qcwcn/wcnss-service/ |
D | wcnss_service.c | 342 int idx = 0; in convert_string_to_hex() local 344 for(idx; string[idx] != '\0'; idx++){ in convert_string_to_hex() 345 if(isalpha(string[idx])) { in convert_string_to_hex() 346 if(string[idx] >='a' && string[idx] <='f') { in convert_string_to_hex() 347 hex_num = hex_num * HEX_BASE + ((int)string[idx] in convert_string_to_hex() 349 } else if ( string[idx] >='A' && string[idx] <='F') { in convert_string_to_hex() 350 hex_num = hex_num * HEX_BASE + ((int)string[idx] in convert_string_to_hex() 353 hex_num = hex_num * HEX_BASE + (int)string[idx]; in convert_string_to_hex() 355 hex_num = hex_num * HEX_BASE + (string[idx]- ASCII_0); in convert_string_to_hex()
|
/hardware/broadcom/libbt/src/ |
D | bt_vendor_brcm.c | 168 int fd, idx; in op() local 172 for (idx=0; idx < CH_MAX; idx++) in op() 173 (*fd_array)[idx] = fd; in op()
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
D | h264_utils.cpp | 742 int idx; in hrd_parameters() local 755 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) in hrd_parameters() 757 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 758 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 759 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 760 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 761 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 762 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 826 int idx; in sei_buffering_period() local 846 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) in sei_buffering_period() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | h264_utils.cpp | 691 OMX_U32 idx; in hrd_parameters() local 703 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) { in hrd_parameters() 704 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 705 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 706 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 707 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 708 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 709 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 770 OMX_U32 idx; in sei_buffering_period() local 787 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) { in sei_buffering_period() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | h264_utils.cpp | 691 OMX_U32 idx; in hrd_parameters() local 703 for (idx = 0; idx < hrd_param->cpb_cnt && more_bits(); idx++) { in hrd_parameters() 704 hrd_param->bit_rate_value[idx] = uev() + 1; in hrd_parameters() 705 hrd_param->cpb_size_value[idx] = uev() + 1; in hrd_parameters() 706 hrd_param->cbr_flag[idx] = extract_bits(1); in hrd_parameters() 707 ALOGV("-->bit_rate_value [%d] : %u", idx, hrd_param->bit_rate_value[idx]); in hrd_parameters() 708 ALOGV("-->cpb_size_value [%d] : %u", idx, hrd_param->cpb_size_value[idx]); in hrd_parameters() 709 ALOGV("-->cbr_flag [%d] : %u", idx, hrd_param->cbr_flag[idx]); in hrd_parameters() 770 OMX_U32 idx; in sei_buffering_period() local 787 for (idx = 0; idx < hrd_param->cpb_cnt ; idx++) { in sei_buffering_period() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
D | rdopt.h | 44 static void insertsortsad(int arr[],int idx[], int len) in insertsortsad() argument 57 tempi = idx[i]; in insertsortsad() 62 idx[k] = idx[k - 1]; in insertsortsad() 66 idx[j] = tempi; in insertsortsad()
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | amix.c | 37 unsigned idx = 0; in get_ctl() local 45 idx = atoi(p); in get_ctl() 48 return mixer_get_control(mixer, name, idx); in get_ctl()
|
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 236 int mm_jpeg_test_read(mm_jpeg_intf_test_t *p_obj, uint32_t idx) in mm_jpeg_test_read() argument 240 fp = fopen(p_obj->filename[idx], "rb"); in mm_jpeg_test_read() 249 file_size, p_obj->input[idx].size); in mm_jpeg_test_read() 251 if (p_obj->input[idx].size > file_size) { in mm_jpeg_test_read() 256 fread(p_obj->input[idx].addr, 1, p_obj->input[idx].size, fp); in mm_jpeg_test_read() 549 int idx = 0; in mm_jpeg_test_get_input() local 562 for (idx = optind - 1; idx < argc; idx++) { in mm_jpeg_test_get_input() 563 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input() 566 in_files[in_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input() 568 optind = idx -1; in mm_jpeg_test_get_input() [all …]
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/ |
D | vbp_mp42_parser.c | 295 uint8 idx = 0; in vbp_fill_picture_param() local 349 for (idx = 0; idx < 3; idx++) { in vbp_fill_picture_param() 350 picture_param->sprite_trajectory_du[idx] in vbp_fill_picture_param() 351 = parser->info.VisualObject.VideoObject.VideoObjectPlane.warping_mv_code_du[idx]; in vbp_fill_picture_param() 352 picture_param->sprite_trajectory_dv[idx] in vbp_fill_picture_param() 353 = parser->info.VisualObject.VideoObject.VideoObjectPlane.warping_mv_code_dv[idx]; in vbp_fill_picture_param() 1057 gint idx = 0; in vbp_free_query_data_mp42() local 1061 for (idx = 0; idx < MAX_NUM_PICTURES_MP42; idx++) { in vbp_free_query_data_mp42() 1062 g_free(query_data->picture_data[idx].slice_data); in vbp_free_query_data_mp42() 1080 gint idx = 0; in vbp_allocate_query_data_mp42() local [all …]
|