/device/google/contexthub/firmware/os/algos/common/math/ |
D | vec.c | 54 void vecAdd(float *u, const float *v, const float *w, size_t dim) { in vecAdd() argument 59 for (i = 0; i < dim; i++) { in vecAdd() 64 void vecAddInPlace(float *v, const float *w, size_t dim) { in vecAddInPlace() argument 68 for (i = 0; i < dim; i++) { in vecAddInPlace() 73 void vecSub(float *u, const float *v, const float *w, size_t dim) { in vecSub() argument 78 for (i = 0; i < dim; i++) { in vecSub() 83 void vecScalarMul(float *u, const float *v, float c, size_t dim) { in vecScalarMul() argument 87 for (i = 0; i < dim; i++) { in vecScalarMul() 92 void vecScalarMulInPlace(float *v, float c, size_t dim) { in vecScalarMulInPlace() argument 95 for (i = 0; i < dim; i++) { in vecScalarMulInPlace() [all …]
|
D | vec.h | 160 void vecAdd(float *u, const float *v, const float *w, size_t dim); 164 void vecAddInPlace(float *v, const float *w, size_t dim); 168 void vecSub(float *u, const float *v, const float *w, size_t dim); 172 void vecScalarMul(float *u, const float *v, float c, size_t dim); 176 void vecScalarMulInPlace(float *v, float c, size_t dim); 179 float vecNorm(const float *v, size_t dim); 182 float vecNormSquared(const float *v, size_t dim); 185 float vecDot(const float *v, const float *w, size_t dim); 188 float vecMaxAbsoluteValue(const float *v, size_t dim);
|
D | levenberg_marquardt.c | 14 size_t dim, float relative_error_threshold); 25 float damping_factor, size_t dim, float *step); 186 size_t dim, float relative_error_threshold) { in checkRelativeStepSize() argument 189 (vecNorm(state, dim) + relative_error_threshold); in checkRelativeStepSize() 193 return (vecNormSquared(step, dim) <= relative_error * relative_error); in checkRelativeStepSize() 258 float damping_factor, size_t dim, float *step) { in computeStep() argument 261 matAddConstantDiagonal(hessian, damping_factor, dim); in computeStep() 265 if (!matCholeskyDecomposition(L, hessian, dim)) { in computeStep() 270 return matLinearSolveCholesky(step, L, gradient, dim); in computeStep()
|
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 89 cam_dimension_t *dim, 93 cam_dimension_t *dim, 97 cam_dimension_t *dim, 101 cam_dimension_t *dim, 105 cam_dimension_t *dim, 107 int32_t mm_stream_calc_offset_metadata(cam_dimension_t *dim, 2469 cam_dimension_t *dim, in mm_stream_calc_offset_preview() argument 2497 stride = PAD_TO_SIZE(dim->width, width_padding); in mm_stream_calc_offset_preview() 2498 scanline = PAD_TO_SIZE(dim->height, height_padding); in mm_stream_calc_offset_preview() 2506 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 84 cam_dimension_t *dim, 87 cam_dimension_t *dim, 91 cam_dimension_t *dim, 95 cam_dimension_t *dim, 98 int32_t mm_stream_calc_offset_video(cam_dimension_t *dim, 100 int32_t mm_stream_calc_offset_metadata(cam_dimension_t *dim, 2036 cam_dimension_t *dim, in mm_stream_calc_offset_preview() argument 2048 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_32); in mm_stream_calc_offset_preview() 2049 scanline = PAD_TO_SIZE(dim->height, CAM_PAD_TO_2); in mm_stream_calc_offset_preview() 2057 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 84 cam_dimension_t *dim, 87 cam_dimension_t *dim, 91 cam_dimension_t *dim, 95 cam_dimension_t *dim, 98 int32_t mm_stream_calc_offset_video(cam_dimension_t *dim, 100 int32_t mm_stream_calc_offset_metadata(cam_dimension_t *dim, 2036 cam_dimension_t *dim, in mm_stream_calc_offset_preview() argument 2048 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_32); in mm_stream_calc_offset_preview() 2049 scanline = PAD_TO_SIZE(dim->height, CAM_PAD_TO_2); in mm_stream_calc_offset_preview() 2057 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview() [all …]
|
/device/google/marlin/camera/QCamera2/HAL3/ |
D | QCamera3Channel.cpp | 499 void QCamera3Channel::dumpYUV(mm_camera_buf_def_t *frame, cam_dimension_t dim, in dumpYUV() argument 529 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 533 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 537 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 541 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 545 counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 799 cam_dimension_t dim; in streamCbRoutine() local 802 memset(&dim, 0, sizeof(dim)); in streamCbRoutine() 819 stream->getFrameDimension(dim); in streamCbRoutine() 822 dumpYUV(super_frame->bufs[0], dim, offset, QCAMERA_DUMP_FRM_PREVIEW); in streamCbRoutine() [all …]
|
/device/lge/bullhead/camera/QCamera2/HAL3/ |
D | QCamera3Channel.cpp | 469 void QCamera3Channel::dumpYUV(mm_camera_buf_def_t *frame, cam_dimension_t dim, in dumpYUV() argument 480 name, counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 702 cam_dimension_t dim; in request() local 704 memset(&dim, 0, sizeof(dim)); in request() 705 setReprocConfig(reproc_cfg, pInputBuffer, metadata, mStreamFormat, dim); in request() 895 cam_dimension_t dim = {sizeof(metadata_buffer_t), 1}; in setFwkInputPPData() local 897 rc = mm_stream_calc_offset_metadata(&dim, mPaddingInfo, &meta_planes); in setFwkInputPPData() 982 int32_t QCamera3ProcessingChannel::getStreamSize(cam_dimension_t &dim) in getStreamSize() argument 985 dim.width = mCamera3Stream->width; in getStreamSize() 986 dim.height = mCamera3Stream->height; in getStreamSize() [all …]
|
/device/huawei/angler/camera/QCamera2/HAL3/ |
D | QCamera3Channel.cpp | 469 void QCamera3Channel::dumpYUV(mm_camera_buf_def_t *frame, cam_dimension_t dim, in dumpYUV() argument 480 name, counter, frame->frame_idx, dim.width, dim.height); in dumpYUV() 702 cam_dimension_t dim; in request() local 704 memset(&dim, 0, sizeof(dim)); in request() 705 setReprocConfig(reproc_cfg, pInputBuffer, metadata, mStreamFormat, dim); in request() 895 cam_dimension_t dim = {sizeof(metadata_buffer_t), 1}; in setFwkInputPPData() local 897 rc = mm_stream_calc_offset_metadata(&dim, mPaddingInfo, &meta_planes); in setFwkInputPPData() 982 int32_t QCamera3ProcessingChannel::getStreamSize(cam_dimension_t &dim) in getStreamSize() argument 985 dim.width = mCamera3Stream->width; in getStreamSize() 986 dim.height = mCamera3Stream->height; in getStreamSize() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/ |
D | Dates.py | 55 for dim in _DAYS_IN_MONTH: 57 dbm = dbm + dim 58 del dbm, dim 124 dim = _days_in_month(month, year) 125 if not 1 <= day <= dim: 126 raise ValueError, 'day must be in 1..%r: %r' % (dim, day)
|
/device/huawei/angler/camera/QCamera2/stack/common/ |
D | mm_camera_interface.h | 779 cam_dimension_t *dim, 783 cam_dimension_t *dim, 787 cam_dimension_t *dim, 792 cam_dimension_t *dim, 796 int32_t mm_stream_calc_offset_video(cam_dimension_t *dim, 799 int32_t mm_stream_calc_offset_metadata(cam_dimension_t *dim, 808 cam_dimension_t *dim,
|
/device/lge/bullhead/camera/QCamera2/stack/common/ |
D | mm_camera_interface.h | 779 cam_dimension_t *dim, 783 cam_dimension_t *dim, 787 cam_dimension_t *dim, 792 cam_dimension_t *dim, 796 int32_t mm_stream_calc_offset_video(cam_dimension_t *dim, 799 int32_t mm_stream_calc_offset_metadata(cam_dimension_t *dim, 808 cam_dimension_t *dim,
|
/device/google/marlin/camera/QCamera2/stack/common/ |
D | mm_camera_interface.h | 898 cam_dimension_t *dim, 903 cam_dimension_t *dim, 907 cam_dimension_t *dim, 912 cam_dimension_t *dim, 917 cam_dimension_t *dim, 920 int32_t mm_stream_calc_offset_metadata(cam_dimension_t *dim, 929 cam_dimension_t *dim,
|
/device/lge/bullhead/camera/QCamera2/HAL/ |
D | QCameraStream.cpp | 674 cam_dimension_t dim = streamInfo->dim; in calcOffset() local 680 dim.width = streamInfo->dim.height; in calcOffset() 681 dim.height = streamInfo->dim.width; in calcOffset() 688 &dim, in calcOffset() 693 &dim, in calcOffset() 698 &dim, in calcOffset() 708 rc = mm_stream_calc_offset_video(&dim, in calcOffset() 713 &dim, in calcOffset() 719 &dim, in calcOffset() 724 rc = mm_stream_calc_offset_metadata(&dim, in calcOffset() [all …]
|
D | QCamera2HWICallbacks.cpp | 1913 cam_dimension_t dim; in dumpJpegToFile() local 1915 memset(&dim, 0, sizeof(dim)); in dumpJpegToFile() 2117 cam_dimension_t dim; in dumpFrameToFile() local 2118 memset(&dim, 0, sizeof(dim)); in dumpFrameToFile() 2119 stream->getFrameDimension(dim); in dumpFrameToFile() 2134 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() 2140 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() 2145 mParameters.getStreamDimension(CAM_STREAM_TYPE_SNAPSHOT, dim); in dumpFrameToFile() 2147 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() 2153 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() [all …]
|
/device/huawei/angler/camera/QCamera2/HAL/ |
D | QCameraStream.cpp | 674 cam_dimension_t dim = streamInfo->dim; in calcOffset() local 680 dim.width = streamInfo->dim.height; in calcOffset() 681 dim.height = streamInfo->dim.width; in calcOffset() 688 &dim, in calcOffset() 693 &dim, in calcOffset() 698 &dim, in calcOffset() 708 rc = mm_stream_calc_offset_video(&dim, in calcOffset() 713 &dim, in calcOffset() 719 &dim, in calcOffset() 724 rc = mm_stream_calc_offset_metadata(&dim, in calcOffset() [all …]
|
D | QCamera2HWICallbacks.cpp | 1913 cam_dimension_t dim; in dumpJpegToFile() local 1915 memset(&dim, 0, sizeof(dim)); in dumpJpegToFile() 2117 cam_dimension_t dim; in dumpFrameToFile() local 2118 memset(&dim, 0, sizeof(dim)); in dumpFrameToFile() 2119 stream->getFrameDimension(dim); in dumpFrameToFile() 2134 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() 2140 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() 2145 mParameters.getStreamDimension(CAM_STREAM_TYPE_SNAPSHOT, dim); in dumpFrameToFile() 2147 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() 2153 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile() [all …]
|
/device/google/marlin/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 522 cam_dimension_t dim; in TsMakeupProcess_Snapshot() local 523 pStream->getFrameDimension(dim); in TsMakeupProcess_Snapshot() 528 inMakeupData.frameWidth = dim.width; in TsMakeupProcess_Snapshot() 529 inMakeupData.frameHeight = dim.height; in TsMakeupProcess_Snapshot() 576 cam_dimension_t dim; in TsMakeupProcess() local 578 pStream->getFrameDimension(dim); in TsMakeupProcess() 593 inMakeupData.frameWidth = dim.width; // NV21 Frame width > 0 in TsMakeupProcess() 594 inMakeupData.frameHeight = dim.height; // NV21 Frame height > 0 in TsMakeupProcess() 599 outMakeupData.frameWidth = dim.width; // NV21 Frame width > 0 in TsMakeupProcess() 600 outMakeupData.frameHeight = dim.height; // NV21 Frame height > 0 in TsMakeupProcess() [all …]
|
D | QCameraStream.cpp | 820 cam_dimension_t dim = streamInfo->dim; in calcOffset() local 826 dim.width = streamInfo->dim.height; in calcOffset() 827 dim.height = streamInfo->dim.width; in calcOffset() 835 &dim, in calcOffset() 841 &dim, in calcOffset() 846 &dim, in calcOffset() 857 &dim, &streamInfo->buf_planes); in calcOffset() 861 &dim, in calcOffset() 867 &dim, in calcOffset() 872 rc = mm_stream_calc_offset_metadata(&dim, in calcOffset() [all …]
|
D | QCameraChannel.cpp | 1064 param.getThumbnailSize(&(streamInfo->dim.width), &(streamInfo->dim.height)); in addReprocStreamsFromSource() 1069 streamInfo->dim); in addReprocStreamsFromSource() 1072 param.getStreamDimension(CAM_STREAM_TYPE_SNAPSHOT,streamInfo->dim); in addReprocStreamsFromSource() 1074 rc = pStream->getFrameDimension(streamInfo->dim); in addReprocStreamsFromSource() 1107 streamInfo->pp_config, streamInfo->dim); in addReprocStreamsFromSource() 1162 streamInfo->dim.width = in addReprocStreamsFromSource() 1164 streamInfo->dim.height = in addReprocStreamsFromSource() 1168 streamInfo->dim.width, streamInfo->dim.height); in addReprocStreamsFromSource() 1177 pStream->getMyOriginalType(), streamInfo->dim.width, in addReprocStreamsFromSource() 1178 streamInfo->dim.height, streamInfo->fmt, type); in addReprocStreamsFromSource()
|
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1206 mm_jpeg_dim_t *dim = &p_jobparams->main_dim; in mm_jpeg_session_config_main_crop() local 1208 if ((dim->crop.width == 0) || (dim->crop.height == 0)) { in mm_jpeg_session_config_main_crop() 1209 dim->crop.width = dim->src_dim.width; in mm_jpeg_session_config_main_crop() 1210 dim->crop.height = dim->src_dim.height; in mm_jpeg_session_config_main_crop() 1213 if ((dim->crop.width + dim->crop.left > dim->src_dim.width) || in mm_jpeg_session_config_main_crop() 1214 (dim->crop.height + dim->crop.top > dim->src_dim.height)) { in mm_jpeg_session_config_main_crop() 1216 dim->crop.width + dim->crop.left, in mm_jpeg_session_config_main_crop() 1217 dim->crop.height + dim->crop.top, in mm_jpeg_session_config_main_crop() 1218 dim->src_dim.width, in mm_jpeg_session_config_main_crop() 1219 dim->src_dim.height); in mm_jpeg_session_config_main_crop() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1076 mm_jpeg_dim_t *dim = &p_jobparams->main_dim; in mm_jpeg_session_config_main_crop() local 1078 if ((dim->crop.width == 0) || (dim->crop.height == 0)) { in mm_jpeg_session_config_main_crop() 1079 dim->crop.width = dim->src_dim.width; in mm_jpeg_session_config_main_crop() 1080 dim->crop.height = dim->src_dim.height; in mm_jpeg_session_config_main_crop() 1083 if ((dim->crop.width + dim->crop.left > dim->src_dim.width) || in mm_jpeg_session_config_main_crop() 1084 (dim->crop.height + dim->crop.top > dim->src_dim.height)) { in mm_jpeg_session_config_main_crop() 1087 dim->crop.width + dim->crop.left, in mm_jpeg_session_config_main_crop() 1088 dim->crop.height + dim->crop.top, in mm_jpeg_session_config_main_crop() 1089 dim->src_dim.width, in mm_jpeg_session_config_main_crop() 1090 dim->src_dim.height); in mm_jpeg_session_config_main_crop() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1076 mm_jpeg_dim_t *dim = &p_jobparams->main_dim; in mm_jpeg_session_config_main_crop() local 1078 if ((dim->crop.width == 0) || (dim->crop.height == 0)) { in mm_jpeg_session_config_main_crop() 1079 dim->crop.width = dim->src_dim.width; in mm_jpeg_session_config_main_crop() 1080 dim->crop.height = dim->src_dim.height; in mm_jpeg_session_config_main_crop() 1083 if ((dim->crop.width + dim->crop.left > dim->src_dim.width) || in mm_jpeg_session_config_main_crop() 1084 (dim->crop.height + dim->crop.top > dim->src_dim.height)) { in mm_jpeg_session_config_main_crop() 1087 dim->crop.width + dim->crop.left, in mm_jpeg_session_config_main_crop() 1088 dim->crop.height + dim->crop.top, in mm_jpeg_session_config_main_crop() 1089 dim->src_dim.width, in mm_jpeg_session_config_main_crop() 1090 dim->src_dim.height); in mm_jpeg_session_config_main_crop() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_preview.c | 418 stream->s_config.stream_info->dim.width = sizeof(metadata_buffer_t); in mm_app_add_metadata_stream() 419 stream->s_config.stream_info->dim.height = 1; in mm_app_add_metadata_stream() 464 stream->s_config.stream_info->dim.width = DEFAULT_PREVIEW_WIDTH; in mm_app_add_preview_stream() 465 stream->s_config.stream_info->dim.height = DEFAULT_PREVIEW_HEIGHT; in mm_app_add_preview_stream() 467 … stream->s_config.stream_info->dim.width = test_obj->preview_resolution.user_input_display_width; in mm_app_add_preview_stream() 468 … stream->s_config.stream_info->dim.height = test_obj->preview_resolution.user_input_display_height; in mm_app_add_preview_stream() 518 stream->s_config.stream_info->dim.width = DEFAULT_SNAPSHOT_WIDTH; in mm_app_add_raw_stream() 519 stream->s_config.stream_info->dim.height = DEFAULT_SNAPSHOT_HEIGHT; in mm_app_add_raw_stream() 521 stream->s_config.stream_info->dim.width = (int32_t)test_obj->buffer_width; in mm_app_add_raw_stream() 522 stream->s_config.stream_info->dim.height = (int32_t)test_obj->buffer_height; in mm_app_add_raw_stream() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_preview.c | 418 stream->s_config.stream_info->dim.width = sizeof(metadata_buffer_t); in mm_app_add_metadata_stream() 419 stream->s_config.stream_info->dim.height = 1; in mm_app_add_metadata_stream() 464 stream->s_config.stream_info->dim.width = DEFAULT_PREVIEW_WIDTH; in mm_app_add_preview_stream() 465 stream->s_config.stream_info->dim.height = DEFAULT_PREVIEW_HEIGHT; in mm_app_add_preview_stream() 467 … stream->s_config.stream_info->dim.width = test_obj->preview_resolution.user_input_display_width; in mm_app_add_preview_stream() 468 … stream->s_config.stream_info->dim.height = test_obj->preview_resolution.user_input_display_height; in mm_app_add_preview_stream() 518 stream->s_config.stream_info->dim.width = DEFAULT_SNAPSHOT_WIDTH; in mm_app_add_raw_stream() 519 stream->s_config.stream_info->dim.height = DEFAULT_SNAPSHOT_HEIGHT; in mm_app_add_raw_stream() 521 stream->s_config.stream_info->dim.width = (int32_t)test_obj->buffer_width; in mm_app_add_raw_stream() 522 stream->s_config.stream_info->dim.height = (int32_t)test_obj->buffer_height; in mm_app_add_raw_stream() [all …]
|