Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 25 of 31) 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.cpp621 LOG_V("offsets[0] = %d\n", destImage.offsets[0]); in doActionCopy()
622 LOG_V("offsets[1] = %d\n", destImage.offsets[1]); in doActionCopy()
636 dstY = pDestBuffer + destImage.offsets[0]; in doActionCopy()
638 dstUV = pDestBuffer + destImage.offsets[1]; in doActionCopy()
714 extbuf.offsets[0] = 0; in CreateSurfaceFromExternalBuf()
715 extbuf.offsets[1] = vinfo.lumaStride * vinfo.height; in CreateSurfaceFromExternalBuf()
716 extbuf.offsets[2] = extbuf.offsets[1]; in CreateSurfaceFromExternalBuf()
717 extbuf.offsets[3] = 0; in CreateSurfaceFromExternalBuf()
786 extbuf.offsets[0] = 0; in CreateNewVASurface()
787 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()
1291 src = (uint8_t*)pBuf + vaImage.offsets[1]; in getRawDataFromSurface()
1335 surfExtBuf.offsets[0] = 0; in createSurfaceFromHandle()
1336 surfExtBuf.offsets[1] = mConfigBuffer.graphicBufferHStride * mConfigBuffer.graphicBufferVStride; in createSurfaceFromHandle()
[all …]
/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/intel/common/omx-components/videocodec/
DOMXVideoDecoderVP9HWR.cpp290 surfExtBuf->offsets[0] = 0; in ProcessorInit()
291 surfExtBuf->offsets[1] = surfaceHStride * surfaceVStride; in ProcessorInit()
292 surfExtBuf->offsets[2] = 0; in ProcessorInit()
293 surfExtBuf->offsets[3] = 0; in ProcessorInit()
/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()
1861 buf.offsets[0] = 0; in queueCompose()
1862 buf.offsets[1] = stride * bufHeight; in queueCompose()
1863 buf.offsets[2] = buf.offsets[1]; in queueCompose()
1864 buf.offsets[3] = 0; in queueCompose()
/hardware/ti/omap4-aah/hwc/
Drgz_2d.c699 int offsets[RGZ_SUBREGIONMAX]; in rgz_gen_blitregions() local
707 offsets[noffsets++] = max(0, left); in rgz_gen_blitregions()
708 offsets[noffsets++] = min(right, screen_width); in rgz_gen_blitregions()
710 rgz_bsort(offsets, noffsets); in rgz_gen_blitregions()
711 noffsets = rgz_bunique(offsets, noffsets); in rgz_gen_blitregions()
718 subregion.left = offsets[r]; in rgz_gen_blitregions()
719 subregion.right = offsets[r+1]; in rgz_gen_blitregions()
/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/ti/omap4xxx/camera/inc/
DCameraHal.h548 …status_t startPreviewCallbacks(CameraParameters &params, void *buffers, uint32_t *offsets, int fd,…
580 …status_t initSharedVideoBuffers(void *buffers, uint32_t *offsets, int fd, size_t length, size_t co…
/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/ti/omap4-aah/camera/inc/
DCameraHal.h683 …acks(android::CameraParameters &params, CameraBuffer *buffers, uint32_t *offsets, int fd, size_t l…
715 …status_t initSharedVideoBuffers(CameraBuffer *buffers, uint32_t *offsets, int fd, size_t length, s…
/hardware/ti/omap4-aah/camera/
DAppCallbackNotifier.cpp1513 …acks(android::CameraParameters &params, CameraBuffer *buffers, uint32_t *offsets, int fd, size_t l… in startPreviewCallbacks() argument
1680 status_t AppCallbackNotifier::initSharedVideoBuffers(CameraBuffer *buffers, uint32_t *offsets, int … in initSharedVideoBuffers() argument

12