Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 25 of 30) sorted by relevance

12

/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/
Dinv_self_test.c541 int offsets[3] = {0}; in main() local
546 offsets[0] = -accel_bias[0].l / 1000 / 2 / scale_ratio; in main()
547 if (write_sysfs_int(mpu.accel_x_offset, offsets[0]) < 0) { in main()
550 offsets[1] = -accel_bias[1].l / 1000 / 2 / scale_ratio; in main()
551 if (write_sysfs_int(mpu.accel_y_offset, offsets[1]) < 0) { in main()
554 offsets[2] = -accel_bias[2].l / 1000 / 2 / scale_ratio; in main()
555 if (write_sysfs_int(mpu.accel_z_offset, offsets[2]) < 0) { in main()
559 offsets[0], offsets[1], offsets[2]); in main()
567 int offsets[3] = {0}; in main() local
570 offsets[0] = -gyro_bias[0].l / 1000 / scale_ratio; in main()
[all …]
/hardware/intel/common/libva/test/
Dloadsurface.h248 U_start = (char *)surface_p + surface_image.offsets[1]; in upload_surface()
254 U_start = (char *)surface_p + surface_image.offsets[1]; in upload_surface()
255 V_start = (char *)surface_p + surface_image.offsets[2]; in upload_surface()
260 U_start = (char *)surface_p + surface_image.offsets[2]; in upload_surface()
261 V_start = (char *)surface_p + surface_image.offsets[1]; in upload_surface()
314 U_start = (unsigned char *)surface_p + surface_image.offsets[1]; in upload_surface_yuv()
320 U_start = (unsigned char *)surface_p + surface_image.offsets[1]; in upload_surface_yuv()
321 V_start = (unsigned char *)surface_p + surface_image.offsets[2]; in upload_surface_yuv()
326 U_start = (unsigned char *)surface_p + surface_image.offsets[2]; in upload_surface_yuv()
327 V_start = (unsigned char *)surface_p + surface_image.offsets[1]; in upload_surface_yuv()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ducode_download.c124 actual_data_len = ROUNDUP(trx->offsets[0], 4) + ROUNDUP(trx->offsets[1], 4); in check_ucode_file()
157 fw_size = main_trx_hdr.offsets[0]; in proc_ucode_download()
158 second_offset = main_trx_hdr.offsets[2]; in proc_ucode_download()
196 ucode_len = ucode_trx_hdr->offsets[0]; in proc_ucode_download()
198 ROUNDUP(ucode_trx_hdr->offsets[0], 4); in proc_ucode_download()
199 initvals_len = ucode_trx_hdr->offsets[1]; in proc_ucode_download()
/hardware/intel/common/libmix/videoencoder/
DVideoEncoderUtils.cpp606 LOG_V("offsets[0] = %d\n", destImage.offsets[0]); in doActionCopy()
607 LOG_V("offsets[1] = %d\n", destImage.offsets[1]); in doActionCopy()
621 dstY = pDestBuffer + destImage.offsets[0]; in doActionCopy()
623 dstUV = pDestBuffer + destImage.offsets[1]; in doActionCopy()
699 extbuf.offsets[0] = 0; in CreateSurfaceFromExternalBuf()
700 extbuf.offsets[1] = vinfo.lumaStride * vinfo.height; in CreateSurfaceFromExternalBuf()
701 extbuf.offsets[2] = extbuf.offsets[1]; in CreateSurfaceFromExternalBuf()
702 extbuf.offsets[3] = 0; in CreateSurfaceFromExternalBuf()
771 extbuf.offsets[0] = 0; in CreateNewVASurface()
772 extbuf.offsets[1] = width * height; in CreateNewVASurface()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dtrxhdr.h57 uint32 offsets[TRX_MAX_OFFSET]; /* Offsets of partitions from start of header */ member
59 uint32 offsets[1]; /* Offsets of partitions from start of header */ member
/hardware/intel/img/psb_video/src/
Dpsb_output.c320 obj_image->image.offsets[0] = 0; in psb_CreateImage()
321 obj_image->image.offsets[1] = pitch_pot * height; in psb_CreateImage()
380 obj_image->image.offsets[0] = 0; in psb_CreateImage()
381 obj_image->image.offsets[1] = pitch_pot * height; in psb_CreateImage()
382 obj_image->image.offsets[2] = pitch_pot * height + (pitch_pot / 2) * (height / 2); in psb_CreateImage()
400 obj_image->image.offsets[0] = 0; in psb_CreateImage()
401 obj_image->image.offsets[1] = pitch_pot * height; in psb_CreateImage()
402 obj_image->image.offsets[2] = pitch_pot * height * 2; in psb_CreateImage()
551 obj_image->image.offsets[0] = srf_buf_ofs; in psb_DeriveImage()
552 …obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride; in psb_DeriveImage()
[all …]
/hardware/intel/common/libva/test/videoprocess/
Dvideoprocess.cpp223 y_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[0]); in construct_nv12_mask_surface()
224 u_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); in construct_nv12_mask_surface()
288 y_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[0]); in upload_yv12_frame_to_yuv_surface()
291 v_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); in upload_yv12_frame_to_yuv_surface()
292 u_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[2]); in upload_yv12_frame_to_yuv_surface()
294 u_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); in upload_yv12_frame_to_yuv_surface()
295 v_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[2]); in upload_yv12_frame_to_yuv_surface()
297 u_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); in upload_yv12_frame_to_yuv_surface()
391 y_src = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[0]); in store_yuv_surface_to_yv12_frame()
393 v_src = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); in store_yuv_surface_to_yv12_frame()
[all …]
/hardware/intel/common/utils/ISV/base/
Disv_worker.cpp242 vaExtBuf.offsets[0] = 0; in allocSurface()
243 vaExtBuf.offsets[1] = stride * *height; in allocSurface()
244 vaExtBuf.offsets[2] = vaExtBuf.offsets[1] + (stride / 2) * (*height / 2); in allocSurface()
245 vaExtBuf.offsets[3] = 0; in allocSurface()
254 vaExtBuf.offsets[0] = 0; in allocSurface()
256 vaExtBuf.offsets[1] = stride * ((*height + 31) & ~31); in allocSurface()
257 vaExtBuf.offsets[2] = vaExtBuf.offsets[1] + (stride / 2) * (((*height + 31) & ~31) / 2); in allocSurface()
258 vaExtBuf.offsets[3] = 0; in allocSurface()
275 vaExtBuf.offsets[0] = 0; in allocSurface()
276 vaExtBuf.offsets[1] = stride * *height; in allocSurface()
[all …]
/hardware/intel/common/libmix/videodecoder/
DVideoDecoderBase.cpp922 mVASurfaceAttrib->offsets[0] = 0; in setupVA()
923 …mVASurfaceAttrib->offsets[1] = mConfigBuffer.graphicBufferHStride * mConfigBuffer.graphicBufferVSt… in setupVA()
924 mVASurfaceAttrib->offsets[2] = 0; in setupVA()
925 mVASurfaceAttrib->offsets[3] = 0; in setupVA()
1178 mSurfaceBuffers[i].mappedData->offset[pi] = image.offsets[pi]; in mapSurface()
1184 image.offsets[0] != 0) { in mapSurface()
1185 …xpected VAImage format, w = %d, h = %d, offset = %d", image.width, image.height, image.offsets[0]); in mapSurface()
1292 src = (uint8_t*)pBuf + vaImage.offsets[1]; in getRawDataFromSurface()
1336 surfExtBuf.offsets[0] = 0; in createSurfaceFromHandle()
1337 surfExtBuf.offsets[1] = mConfigBuffer.graphicBufferHStride * mConfigBuffer.graphicBufferVStride; in createSurfaceFromHandle()
[all …]
/hardware/interfaces/renderscript/1.0/vts/functional/
DVtsCopyTests.cpp313 std::vector<uint32_t> offsets(9, 0); in TEST_F() local
314 offsets[0] = 128; in TEST_F()
315 offsets[1] = 128; in TEST_F()
317 _offsets.setToExternal(offsets.data(), offsets.size()); in TEST_F()
/hardware/intel/common/libmix/mix_video/src/
Dmixvideoformat_vc1.c875 ui32ChromaOffset = va_image.offsets[1]; in GetImageFromSurface()
892 g_print ("va_image.offsets[0] = %d\n", va_image.offsets[0]); in GetImageFromSurface()
893 g_print ("va_image.offsets[1] = %d\n", va_image.offsets[1]); in GetImageFromSurface()
894 g_print ("va_image.offsets[2] = %d\n", va_image.offsets[2]); in GetImageFromSurface()
897 r = fwrite (pBuffer, va_image.offsets[1], 1, fp); in GetImageFromSurface()
900 r = fwrite (pBuffer + va_image.offsets[1] + i / 2, 1, 1, fp); in GetImageFromSurface()
903 r = fwrite (pBuffer + va_image.offsets[1] + i / 2 + 1, 1, 1, fp); in GetImageFromSurface()
Dmixvideoformatenc_preview.c1014 "image->offsets[0] = %d\n", image->offsets[0]); in mix_videofmtenc_preview_process_encode()
1016 "image->offsets[1] = %d\n", image->offsets[1]); in mix_videofmtenc_preview_process_encode()
1030 dst_y = pvbuf +image->offsets[0]; in mix_videofmtenc_preview_process_encode()
1037 dst_uv = pvbuf + image->offsets[1]; in mix_videofmtenc_preview_process_encode()
Dmixvideoformatenc_mpeg4.c1349 "image->offsets[0] = %d\n", image->offsets[0]); in mix_videofmtenc_mpeg4_process_encode()
1351 "image->offsets[1] = %d\n", image->offsets[1]); in mix_videofmtenc_mpeg4_process_encode()
1365 dst_y = pvbuf +image->offsets[0]; in mix_videofmtenc_mpeg4_process_encode()
1372 dst_uv = pvbuf + image->offsets[1]; in mix_videofmtenc_mpeg4_process_encode()
Dmixvideoformatenc_h264.c1413 "image->offsets[0] = %d\n", image->offsets[0]); in mix_videofmtenc_h264_process_encode()
1415 "image->offsets[1] = %d\n", image->offsets[1]); in mix_videofmtenc_h264_process_encode()
1429 dst_y = pvbuf +image->offsets[0]; in mix_videofmtenc_h264_process_encode()
1436 dst_uv = pvbuf + image->offsets[1]; in mix_videofmtenc_h264_process_encode()
/hardware/qcom/display/msm8998/libdrmutils/
Ddrm_master.cpp105 copy(begin(drm_buffer.offset), end(drm_buffer.offset), begin(cmd2.offsets)); in CreateFbId()
/hardware/intel/img/hwcomposer/merrifield/common/devices/
DVirtualDevice.cpp164 buf.offsets[0] = 0; in VAMappedHandle()
165 buf.offsets[1] = 0; in VAMappedHandle()
166 buf.offsets[2] = 0; in VAMappedHandle()
167 buf.offsets[3] = 0; in VAMappedHandle()
177 buf.offsets[0] = 0; in VAMappedHandle()
178 buf.offsets[1] = stride * height; in VAMappedHandle()
1862 buf.offsets[0] = 0; in queueCompose()
1863 buf.offsets[1] = stride * bufHeight; in queueCompose()
1864 buf.offsets[2] = buf.offsets[1]; in queueCompose()
1865 buf.offsets[3] = 0; in queueCompose()
/hardware/interfaces/gnss/1.0/
DIGnssMeasurement.hal36 * intra-measurement time offsets in the range from 0-2000msec can be
/hardware/intel/img/hwcomposer/merrifield/common/base/
DDrm.cpp607 uint32_t offsets[4] = {0}; in setDrmMode() local
623 offsets, in setDrmMode()
/hardware/intel/common/libva/test/encode/
Davcenc.c380 y_dst = surface_p + surface_image.offsets[0]; in upload_yuv_to_surface()
381 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ in upload_yuv_to_surface()
382 v_dst = surface_p + surface_image.offsets[2]; in upload_yuv_to_surface()
407 u_dst = surface_p + surface_image.offsets[U]; in upload_yuv_to_surface()
408 v_dst = surface_p + surface_image.offsets[V]; in upload_yuv_to_surface()
Dmpeg2enc.c459 y_dst = surface_p + surface_image.offsets[0]; in upload_yuv_to_surface()
460 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ in upload_yuv_to_surface()
461 v_dst = surface_p + surface_image.offsets[2]; in upload_yuv_to_surface()
Dmpeg2vaenc.c459 y_dst = surface_p + surface_image.offsets[0]; in upload_yuv_to_surface()
460 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ in upload_yuv_to_surface()
461 v_dst = surface_p + surface_image.offsets[2]; in upload_yuv_to_surface()
/hardware/intel/common/libva/va/
Dva.h1089 unsigned int offsets[4]; member
2824 unsigned int offsets[3]; member
/hardware/intel/common/libva/test/transcode/
Dmpeg2transcode.cpp2184 y_dst = (unsigned char *)(surface_p + surface_image.offsets[0]); in upload_yuv_to_surface()
2185 u_dst = (unsigned char *)(surface_p + surface_image.offsets[1]); /* UV offset for NV12 */ in upload_yuv_to_surface()
2186 v_dst = (unsigned char *)(surface_p + surface_image.offsets[2]); in upload_yuv_to_surface()
/hardware/interfaces/renderscript/1.0/
DIContext.hal65 * TODO: Explain the flattened layout in the offsets vec
67 * Sets the offsets for an Allocation Adapter.
70 * @param offsets Collection of offsets
73 allocationAdapterOffset(AllocationAdapter alloc, vec<uint32_t> offsets);
/hardware/interfaces/renderscript/1.0/default/
DContext.h41 …Return<void> allocationAdapterOffset(Allocation alloc, const hidl_vec<uint32_t>& offsets) override;

12