Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 159) sorted by relevance

1234567

/hardware/qcom/media/mm-video-v4l2/vidc/vdec/inc/
DMap.h47 node* tmp; variable
51 Map() : head( NULL ), tail ( NULL ),tmp(head),size_of_list(0) {} in Map()
80 tmp = head; in find()
82 while (tmp) { in find()
83 if (tmp->data == d1) { in find()
84 return tmp->data2; in find()
87 tmp = tmp->next; in find()
96 tmp = head; in find_ele()
98 while (tmp) { in find_ele()
99 if (tmp->data == d1) { in find_ele()
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/vdec/inc/
DMap.h48 node* tmp; variable
52 Map() : head( NULL ), tail ( NULL ),tmp(head),size_of_list(0) {} in Map()
79 tmp = head; in find()
80 while(tmp) in find()
82 if(tmp->data == d1) in find()
84 return tmp->data2; in find()
86 tmp = tmp->next; in find()
94 tmp = head; in find_ele()
95 while(tmp) in find_ele()
97 if(tmp->data == d1) in find_ele()
[all …]
/hardware/qcom/gps/utils/
Dlinked_list.c140 list_element* tmp = p_list->p_head; in linked_list_add() local
143 p_list->p_head->next = tmp; in linked_list_add()
145 if( tmp != NULL ) in linked_list_add()
147 tmp->prev = p_list->p_head; in linked_list_add()
183 list_element* tmp = p_list->p_tail; in linked_list_remove() local
186 p_list->p_tail = tmp->prev; in linked_list_remove()
198 *data_obj = tmp->data_ptr; in linked_list_remove()
201 free(tmp); in linked_list_remove()
243 list_element* tmp = p_list->p_head->next; in linked_list_flush() local
254 p_list->p_head = tmp; in linked_list_flush()
[all …]
/hardware/qcom/gps/msm8960/utils/
Dlinked_list.c140 list_element* tmp = p_list->p_head; in linked_list_add() local
143 p_list->p_head->next = tmp; in linked_list_add()
145 if( tmp != NULL ) in linked_list_add()
147 tmp->prev = p_list->p_head; in linked_list_add()
183 list_element* tmp = p_list->p_tail; in linked_list_remove() local
186 p_list->p_tail = tmp->prev; in linked_list_remove()
198 *data_obj = tmp->data_ptr; in linked_list_remove()
201 free(tmp); in linked_list_remove()
243 list_element* tmp = p_list->p_head->next; in linked_list_flush() local
254 p_list->p_head = tmp; in linked_list_flush()
[all …]
/hardware/invensense/60xx/mlsdk/mllite/
Dml_stored_data.c396 long long tmp; in inv_load_cal_V2() local
426 tmp = 0; in inv_load_cal_V2()
427 tmp += 16777216LL * (long long)calData[ptr++]; in inv_load_cal_V2()
428 tmp += 65536LL * (long long)calData[ptr++]; in inv_load_cal_V2()
429 tmp += 256LL * (long long)calData[ptr++]; in inv_load_cal_V2()
430 tmp += (long long)calData[ptr++]; in inv_load_cal_V2()
431 if (tmp > 2147483648LL) { in inv_load_cal_V2()
432 tmp -= 4294967296LL; in inv_load_cal_V2()
434 inv_obj.temp_data[i][j] = ((float)tmp) / 65536.0f; in inv_load_cal_V2()
442 tmp = 0; in inv_load_cal_V2()
[all …]
Daccel.c135 long tmp[ACCEL_NUM_AXES]; in inv_get_accel_data() local
158 for (ii = 0; ii < ARRAY_SIZE(tmp); ii++) { in inv_get_accel_data()
160 tmp[ii] = (long)((signed char)raw_data[2 * ii + 1]) * 256; in inv_get_accel_data()
161 tmp[ii] += (long)((unsigned char)raw_data[2 * ii]); in inv_get_accel_data()
164 tmp[ii] = (long)((signed char)raw_data[2 * ii]) * 256; in inv_get_accel_data()
165 tmp[ii] += (long)((unsigned char)raw_data[2 * ii + 1]); in inv_get_accel_data()
167 tmp[ii] = (long)((short)(((unsigned short)tmp[ii]) in inv_get_accel_data()
171 tmp[ii] = (long)((signed char)raw_data[ii]) * 256; in inv_get_accel_data()
177 for (ii = 0; ii < ARRAY_SIZE(tmp); ii++) { in inv_get_accel_data()
178 data[ii] = ((long)tmp[0] * mtx[3 * ii] + in inv_get_accel_data()
[all …]
Dpressure.c134 unsigned char tmp[3]; in inv_get_pressure_data() local
145 inv_get_serial_handle(), tmp); in inv_get_pressure_data()
154 (((long)((signed char)tmp[0])) << 16) + (((long)tmp[1]) << 8) + in inv_get_pressure_data()
155 ((long)tmp[2]); in inv_get_pressure_data()
158 (((long)((signed char)tmp[2])) << 16) + (((long)tmp[1]) << 8) + in inv_get_pressure_data()
159 ((long)tmp[0]); in inv_get_pressure_data()
Dmlarray.c288 float tmp; in inv_get_euler_angles_x() local
297 tmp = rotMatrix[6]; in inv_get_euler_angles_x()
298 if (tmp > 1.0f) { in inv_get_euler_angles_x()
299 tmp = 1.0f; in inv_get_euler_angles_x()
301 if (tmp < -1.0f) { in inv_get_euler_angles_x()
302 tmp = -1.0f; in inv_get_euler_angles_x()
308 data[1] = (long)((float)((double)asin(tmp) * 57.29577951308) * 65536L); in inv_get_euler_angles_x()
346 float tmp; in inv_get_euler_angles_y() local
355 tmp = rotMatrix[7]; in inv_get_euler_angles_y()
356 if (tmp > 1.0f) { in inv_get_euler_angles_y()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dy4minput.c279 unsigned char *tmp; in y4m_convert_42xpaldv_42xjpeg() local
292 tmp = _aux + 2 * c_sz; in y4m_convert_42xpaldv_42xjpeg()
297 y4m_42xmpeg2_42xjpeg_helper(tmp, _aux, c_w, c_h); in y4m_convert_42xpaldv_42xjpeg()
305 _dst[y * c_w] = (unsigned char)OC_CLAMPI(0, (tmp[0] in y4m_convert_42xpaldv_42xjpeg()
306 … - 9 * tmp[OC_MAXI(y - 2, 0) * c_w] + 35 * tmp[OC_MAXI(y - 1, 0) * c_w] in y4m_convert_42xpaldv_42xjpeg()
307 … + 114 * tmp[y * c_w] - 17 * tmp[OC_MINI(y + 1, c_h - 1) * c_w] in y4m_convert_42xpaldv_42xjpeg()
308 … + 4 * tmp[OC_MINI(y + 2, c_h - 1) * c_w] + 64) >> 7, 255); in y4m_convert_42xpaldv_42xjpeg()
311 _dst[y * c_w] = (unsigned char)OC_CLAMPI(0, (tmp[(y - 3) * c_w] in y4m_convert_42xpaldv_42xjpeg()
312 … - 9 * tmp[(y - 2) * c_w] + 35 * tmp[(y - 1) * c_w] + 114 * tmp[y * c_w] in y4m_convert_42xpaldv_42xjpeg()
313 … - 17 * tmp[(y + 1) * c_w] + 4 * tmp[(y + 2) * c_w] + 64) >> 7, 255); in y4m_convert_42xpaldv_42xjpeg()
[all …]
/hardware/qcom/display/msm8226/libmemtrack/
Dkgsl.c52 char tmp[128]; in kgsl_memtrack_get_memory() local
65 snprintf(tmp, sizeof(tmp), "/proc/%d/cmdline", pid); in kgsl_memtrack_get_memory()
66 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
78 snprintf(tmp, sizeof(tmp), "/d/kgsl/proc/%d/mem", pid); in kgsl_memtrack_get_memory()
79 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
85 snprintf(tmp, sizeof(tmp), "/proc/%d/smaps", pid); in kgsl_memtrack_get_memory()
86 smaps_fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
/hardware/libhardware/modules/camera/
DMetadata.cpp53 camera_metadata_t* tmp; in init() local
58 tmp = clone_camera_metadata(metadata); in init()
59 if (tmp == NULL) in init()
62 replace(tmp); in init()
133 camera_metadata_t* tmp; in add() local
144 tmp = allocate_camera_metadata(entry_capacity * 2, data_capacity * 2); in add()
145 if (tmp == NULL) { in add()
151 res = append_camera_metadata(tmp, mData); in add()
154 __func__, mData, tmp); in add()
158 res = add_camera_metadata_entry(tmp, tag, tag_data, count); in add()
[all …]
/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
DAKFS_Device.c64 AKFLOAT tmp; in AKFS_Rotate() local
71 tmp = vec->u.x; in AKFS_Rotate()
73 vec->u.y = -tmp; in AKFS_Rotate()
80 tmp = vec->u.x; in AKFS_Rotate()
82 vec->u.y = tmp; in AKFS_Rotate()
90 tmp = vec->u.x; in AKFS_Rotate()
92 vec->u.y = tmp; in AKFS_Rotate()
100 tmp = vec->u.x; in AKFS_Rotate()
102 vec->u.y = -tmp; in AKFS_Rotate()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/build/make/
Dversion.sh59 echo "${changelog_version}${git_version_id}" > $$.tmp
61 cat<<EOF>$$.tmp
72 diff $$.tmp ${out_file} >/dev/null 2>&1 || cat $$.tmp > ${out_file}
74 cat $$.tmp
76 rm $$.tmp
/hardware/qcom/display/msm8084/libmemtrack/
Dkgsl.c51 char tmp[128]; in kgsl_memtrack_get_memory() local
64 snprintf(tmp, sizeof(tmp), "/proc/%d/cmdline", pid); in kgsl_memtrack_get_memory()
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
77 snprintf(tmp, sizeof(tmp), "/d/kgsl/proc/%d/mem", pid); in kgsl_memtrack_get_memory()
78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/
DOMXFD.cpp301 double tmp; in encodeFaceCoordinates() local
398 tmp = ( double ) nLeft / ( double ) previewWidth; in encodeFaceCoordinates()
399 tmp *= hRange; in encodeFaceCoordinates()
400 tmp -= hRange/2; in encodeFaceCoordinates()
401 faces[i].rect[trans_left] = tmp; in encodeFaceCoordinates()
403 tmp = ( double ) nTop / ( double )previewHeight; in encodeFaceCoordinates()
404 tmp *= vRange; in encodeFaceCoordinates()
405 tmp -= vRange/2; in encodeFaceCoordinates()
406 faces[i].rect[trans_top] = tmp; in encodeFaceCoordinates()
408 tmp = ( double ) faceData->tFacePosition[j].nWidth / ( double ) previewWidth; in encodeFaceCoordinates()
[all …]
/hardware/intel/common/libwsbm/src/
Dwsbm_fencemgr.c118 struct _WsbmFenceMgr *tmp; in wsbmFenceMgrCreate() local
122 tmp = calloc(1, sizeof(*tmp)); in wsbmFenceMgrCreate()
123 if (!tmp) in wsbmFenceMgrCreate()
126 tmp->info = *info; in wsbmFenceMgrCreate()
127 tmp->classes = calloc(tmp->info.num_classes, sizeof(*tmp->classes)); in wsbmFenceMgrCreate()
128 if (!tmp->classes) in wsbmFenceMgrCreate()
131 for (i = 0; i < tmp->info.num_classes; ++i) { in wsbmFenceMgrCreate()
132 struct _WsbmFenceClass *fc = &tmp->classes[i]; in wsbmFenceMgrCreate()
144 wsbmAtomicSet(&tmp->count, 0); in wsbmFenceMgrCreate()
146 return tmp; in wsbmFenceMgrCreate()
[all …]
/hardware/intel/img/libdrm/libdrm/radeon/
Dradeon_track.c88 void *tmp; in radeon_tracker_remove_track() local
100 tmp = event; in radeon_tracker_remove_track()
105 free(tmp); in radeon_tracker_remove_track()
115 void *tmp; in radeon_tracker_print() local
122 tmp = event; in radeon_tracker_print()
133 free(tmp); in radeon_tracker_print()
136 tmp = track; in radeon_tracker_print()
138 free(tmp); in radeon_tracker_print()
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXFD.cpp309 double tmp; in encodeFaceCoordinates() local
405 tmp = ( double ) nLeft / ( double ) previewWidth; in encodeFaceCoordinates()
406 tmp *= hRange; in encodeFaceCoordinates()
407 tmp -= hRange/2; in encodeFaceCoordinates()
408 faces[i].rect[trans_left] = tmp; in encodeFaceCoordinates()
410 tmp = ( double ) nTop / ( double )previewHeight; in encodeFaceCoordinates()
411 tmp *= vRange; in encodeFaceCoordinates()
412 tmp -= vRange/2; in encodeFaceCoordinates()
413 faces[i].rect[trans_top] = tmp; in encodeFaceCoordinates()
415 tmp = ( double ) faceData->tFacePosition[j].nWidth / ( double ) previewWidth; in encodeFaceCoordinates()
[all …]
/hardware/qcom/display/msm8960/libmemtrack/
Dkgsl.c51 char tmp[128]; in kgsl_memtrack_get_memory() local
63 snprintf(tmp, sizeof(tmp), "/proc/%d/cmdline", pid); in kgsl_memtrack_get_memory()
64 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
76 sprintf(tmp, "/d/kgsl/proc/%d/mem", pid); in kgsl_memtrack_get_memory()
77 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8974/libmemtrack/
Dkgsl.c51 char tmp[128]; in kgsl_memtrack_get_memory() local
63 snprintf(tmp, sizeof(tmp), "/proc/%d/cmdline", pid); in kgsl_memtrack_get_memory()
64 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
76 sprintf(tmp, "/d/kgsl/proc/%d/mem", pid); in kgsl_memtrack_get_memory()
77 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
/hardware/samsung_slsi/exynos5/libcamera2/
DExynosJpegEncoderForCamera.cpp342 unsigned int tmp, LongerTagOffest = 0, exifSizeExceptThumb; in makeExif() local
359 tmp = NUM_0TH_IFD_TIFF; in makeExif()
361 tmp = NUM_0TH_IFD_TIFF - 1; in makeExif()
363 memcpy(pCur, &tmp, NUM_SIZE); in makeExif()
366 LongerTagOffest += 8 + NUM_SIZE + tmp*IFD_SIZE + OFFSET_SIZE; in makeExif()
399 tmp = NUM_0TH_IFD_EXIF; in makeExif()
400 memcpy(pCur, &tmp , NUM_SIZE); in makeExif()
457 tmp = 0; in makeExif()
458 memcpy(pCur, &tmp, OFFSET_SIZE); // next IFD offset in makeExif()
470 tmp = NUM_0TH_IFD_GPS - 1; in makeExif()
[all …]
/hardware/samsung_slsi/exynos5/libcamera/
DExynosJpegEncoderForCamera.cpp365 unsigned int tmp, LongerTagOffest = 0, exifSizeExceptThumb; in makeExif() local
382 tmp = NUM_0TH_IFD_TIFF; in makeExif()
384 tmp = NUM_0TH_IFD_TIFF - 1; in makeExif()
386 memcpy(pCur, &tmp, NUM_SIZE); in makeExif()
389 LongerTagOffest += 8 + NUM_SIZE + tmp*IFD_SIZE + OFFSET_SIZE; in makeExif()
420 tmp = NUM_0TH_IFD_EXIF; in makeExif()
421 memcpy(pCur, &tmp , NUM_SIZE); in makeExif()
474 tmp = 0; in makeExif()
475 memcpy(pCur, &tmp, OFFSET_SIZE); // next IFD offset in makeExif()
487 tmp = NUM_0TH_IFD_GPS - 1; in makeExif()
[all …]
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c104 char tmp[100]; in parsing_proc_input() local
153 memset(tmp, 0, 100); in parsing_proc_input()
159 tmp[j] = line[i]; in parsing_proc_input()
162 sprintf(sysfs_path, "%s%s", "/sys", tmp); in parsing_proc_input()
181 memset(tmp, 0, 100); in parsing_proc_input()
187 tmp[j] = line[i]; in parsing_proc_input()
191 if(tmp[j-2] >= '0' && tmp[j-2] <= '9') in parsing_proc_input()
192 input_number += (tmp[j-2]-0x30)*10; in parsing_proc_input()
193 if(tmp[j-1] >= '0' && tmp[j-1] <= '9') in parsing_proc_input()
194 input_number += (tmp[j-1]-0x30); in parsing_proc_input()
/hardware/intel/common/libva/test/encode/
Dh264encode.c868 struct stat tmp; in process_cmdline() local
870 fstat(fileno(srcyuv_fp), &tmp); in process_cmdline()
871 srcyuv_frames = tmp.st_size / (frame_width * frame_height * 1.5); in process_cmdline()
1008 int tmp = attrib[VAConfigAttribRateControl].value; in init_va() local
1010 printf("Support rate control mode (0x%x):", tmp); in init_va()
1012 if (tmp & VA_RC_NONE) in init_va()
1014 if (tmp & VA_RC_CBR) in init_va()
1016 if (tmp & VA_RC_VBR) in init_va()
1018 if (tmp & VA_RC_VCM) in init_va()
1020 if (tmp & VA_RC_CQP) in init_va()
[all …]
/hardware/samsung_slsi/exynos5/libswconverter/
Dswconvertor.c521 unsigned int tmp; in csc_RGB565_to_YUV420P() local
541 tmp = pSrc[j * width + i]; in csc_RGB565_to_YUV420P()
543 R = (tmp & 0x0000F800) >> 8; in csc_RGB565_to_YUV420P()
544 G = (tmp & 0x000007E0) >> 3; in csc_RGB565_to_YUV420P()
545 B = (tmp & 0x0000001F); in csc_RGB565_to_YUV420P()
595 unsigned int tmp; in csc_RGB565_to_YUV420SP() local
612 tmp = pSrc[j * width + i]; in csc_RGB565_to_YUV420SP()
614 R = (tmp & 0x0000F800) >> 11; in csc_RGB565_to_YUV420SP()
616 G = (tmp & 0x000007E0) >> 5; in csc_RGB565_to_YUV420SP()
618 B = (tmp & 0x0000001F); in csc_RGB565_to_YUV420SP()
[all …]

1234567