Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 178) sorted by relevance

12345678

/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/
Dh264parse_dpb.c346 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/
Dtest_framemanager.c34 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/msm8998/QCamera2/HAL3/
DQCamera3Mem.cpp788 int32_t idx = -1; in registerBuffer() local
806 idx = getFreeIndexLocked(); in registerBuffer()
807 if (0 > idx) { in registerBuffer()
812 mBufferHandle[idx] = buffer; in registerBuffer()
813 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
815 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer()
817 mMemInfo[idx].main_ion_fd = open("/dev/ion", O_RDONLY); in registerBuffer()
818 if (mMemInfo[idx].main_ion_fd < 0) { in registerBuffer()
823 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer()
824 if (ioctl(mMemInfo[idx].main_ion_fd, in registerBuffer()
[all …]
/hardware/libhardware/tests/camera2/
DCameraModuleTests.cpp91 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/qcom/camera/QCamera2/HAL3/
DQCamera3Mem.cpp783 int32_t idx = -1; in registerBuffer() local
801 idx = getFreeIndexLocked(); in registerBuffer()
802 if (0 > idx) { in registerBuffer()
807 mBufferHandle[idx] = buffer; in registerBuffer()
808 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
810 setMetaData(mPrivateHandle[idx], UPDATE_COLOR_SPACE, &colorSpace); in registerBuffer()
817 ion_info_fd.fd = mPrivateHandle[idx]->fd; in registerBuffer()
826 idx, mPrivateHandle[idx]->fd, in registerBuffer()
827 mPrivateHandle[idx]->size, in registerBuffer()
828 mPrivateHandle[idx]->offset); in registerBuffer()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmcdc.h62 #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/
Dexternal_frame_buffer_test.cc64 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/intel/common/libmix/mix_video/src/
Dmixframemanager.c280 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 …]
Dmixvideorenderparams.c345 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()
Dmixvideoformat_mp42.c131 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/qcom/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c416 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/bsp/intel/peripheral/libupm/src/lcd/
Dssd1308.cxx66 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/java/
DMY9221_ledbarSample.java42 for (short idx = 1; idx < 11; idx++) { in main()
43 bar.setBarLevel(idx); in main()
DMY9221Sample.java41 for (short idx = 1; idx < 11; idx++) { in main()
42 bar.setBarLevel(idx); in main()
/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dmy9221-ledbar.cxx51 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/
Drate_hist.c84 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/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c410 uint8_t idx, uint32_t handler, int32_t fd, mm_camera_poll_notify_t notify_cb, in mm_camera_poll_thread_add_poll_fd() argument
415 if (MAX_STREAM_NUM_IN_BUNDLE > idx) { in mm_camera_poll_thread_add_poll_fd()
416 poll_cb->poll_entries[idx].fd = fd; in mm_camera_poll_thread_add_poll_fd()
417 poll_cb->poll_entries[idx].handler = handler; in mm_camera_poll_thread_add_poll_fd()
418 poll_cb->poll_entries[idx].notify_cb = notify_cb; in mm_camera_poll_thread_add_poll_fd()
419 poll_cb->poll_entries[idx].user_data = userdata; in mm_camera_poll_thread_add_poll_fd()
427 LOGE("invalid handler %d (%d)", handler, idx); in mm_camera_poll_thread_add_poll_fd()
448 uint8_t idx, uint32_t handler, mm_camera_call_type_t call_type) in mm_camera_poll_thread_del_poll_fd() argument
452 if ((MAX_STREAM_NUM_IN_BUNDLE > idx) && in mm_camera_poll_thread_del_poll_fd()
453 (handler == poll_cb->poll_entries[idx].handler)) { in mm_camera_poll_thread_del_poll_fd()
[all …]
Dmm_camera_interface.c2448 int idx = 0, i; in sort_camera_info() local
2481 temp_info[idx] = g_cam_ctrl.info[i]; in sort_camera_info()
2482 temp_type[idx] = CAM_TYPE_MAIN; in sort_camera_info()
2483 temp_mode[idx] = g_cam_ctrl.cam_mode[i]; in sort_camera_info()
2484 temp_is_yuv[idx] = g_cam_ctrl.is_yuv[i]; in sort_camera_info()
2485 cam_idx[idx] = idx; in sort_camera_info()
2486 b_prime_idx = idx; in sort_camera_info()
2487 LOGH("Found Back Main Camera: i: %d idx: %d", i, idx); in sort_camera_info()
2488 memcpy(temp_dev_name[idx],g_cam_ctrl.video_dev_name[i], in sort_camera_info()
2490 idx++; in sort_camera_info()
[all …]
/hardware/qcom/wlan/qcwcn/wcnss-service/
Dwcnss_service.c342 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/
Dbt_vendor_brcm.c168 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/
Dh264_utils.cpp742 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/msm8998/mm-video-v4l2/vidc/vdec/src/
Dh264_utils.cpp691 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/
Dh264_utils.cpp691 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/msm8996/mm-video-v4l2/vidc/vdec/src/
Dh264_utils.cpp691 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/
Drdopt.h44 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()

12345678