Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 235) sorted by relevance

12345678910

/device/generic/goldfish/camera/
DConverters.cpp33 int width, in _YUV420SToRGB565() argument
40 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB565()
63 int width, in _YUV420SToRGB32() argument
70 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB32()
88 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) in YV12ToRGB565() argument
90 const int pix_total = width * height; in YV12ToRGB565()
94 _YUV420SToRGB565(Y, U, V, 1, reinterpret_cast<uint16_t*>(rgb), width, height); in YV12ToRGB565()
97 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) in YV12ToRGB32() argument
99 const int pix_total = width * height; in YV12ToRGB32()
103 _YUV420SToRGB32(Y, U, V, 1, reinterpret_cast<uint32_t*>(rgb), width, height); in YV12ToRGB32()
[all …]
DJpegStub.cpp37 int width, int height, int quality) in JpegStub_compress() argument
42 offsets[1] = width * height; in JpegStub_compress()
48 if (encoder->encode(stream, pY, width, height, offsets, quality)) { in JpegStub_compress()
50 __FUNCTION__, (width * height * 12) / 8, in JpegStub_compress()
51 width, height, stream->getOffset()); in JpegStub_compress()
DJpegCompressor.cpp43 int width, int height, int quality);
70 int width, in compressRawImage() argument
74 mStrides[0] = width; in compressRawImage()
75 mStrides[1] = width; in compressRawImage()
77 return (status_t)(*f)(&mStub, image, width, height, quality); in compressRawImage()
/device/lge/mako/camera/mm-camera-interface/
Dmm_camera_helper.c183 int width, in mm_camera_get_msm_frame_len() argument
198 size = (uint32_t)(PAD_TO_2K(width*height)*3/2); in mm_camera_get_msm_frame_len()
199 plane[0] = PAD_TO_WORD(width*height); in mm_camera_get_msm_frame_len()
202 plane[0] = PAD_TO_2K(width * height); in mm_camera_get_msm_frame_len()
203 plane[1] = PAD_TO_2K(width * height/2); in mm_camera_get_msm_frame_len()
205 plane[0] = PAD_TO_WORD(width * height); in mm_camera_get_msm_frame_len()
206 plane[1] = PAD_TO_WORD(width * height/2); in mm_camera_get_msm_frame_len()
208 plane[0] = PAD_TO_WORD(width * CEILING16(height)); in mm_camera_get_msm_frame_len()
209 plane[1] = PAD_TO_WORD(width * CEILING16(height)/2); in mm_camera_get_msm_frame_len()
217 size = (uint32_t)(PAD_TO_2K(width*height)*3/2); in mm_camera_get_msm_frame_len()
[all …]
Dmm_jpeg_encoder.c269 int8_t mm_jpeg_encoder_get_buffer_offset(uint32_t width, uint32_t height, in mm_jpeg_encoder_get_buffer_offset() argument
283 uint32_t actual_size = width*height; in mm_jpeg_encoder_get_buffer_offset()
284 uint32_t padded_size = width * CEILING16(height); in mm_jpeg_encoder_get_buffer_offset()
292 planes[0] = width * CEILING16(height); in mm_jpeg_encoder_get_buffer_offset()
293 planes[1] = width * CEILING16(height)/2; in mm_jpeg_encoder_get_buffer_offset()
296 *p_cbcr_offset = PAD_TO_WORD(width*CEILING16(height)); in mm_jpeg_encoder_get_buffer_offset()
298 planes[0] = PAD_TO_WORD(width*CEILING16(height)); in mm_jpeg_encoder_get_buffer_offset()
299 planes[1] = PAD_TO_WORD(width*CEILING16(height)/2); in mm_jpeg_encoder_get_buffer_offset()
386 tn_img_info.width = dimension->thumbnail_width * w_scale_factor; in mm_jpeg_encoder_encode()
388 buf_size = tn_img_info.width * tn_img_info.height * 2; in mm_jpeg_encoder_encode()
[all …]
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQCameraUsbParm.cpp380 snprintf(buffer, sizeof(buffer), "%dx%d", sizes[0].width, sizes[0].height); in create_sizes_str()
384 snprintf(buffer, sizeof(buffer), ",%dx%d", sizes[i].width, sizes[i].height); in create_sizes_str()
491 int rc = 0, width, height, i, numPrvwSizes, validSize; in usbCamSetPrvwSize() local
494 params.getPreviewSize(&width, &height); in usbCamSetPrvwSize()
495 ALOGI("%s: Requested preview size %d x %d", __func__, width, height); in usbCamSetPrvwSize()
500 if (width == previewSizes[i].width in usbCamSetPrvwSize()
504 camHal->qCamParams.setPreviewSize(width, height); in usbCamSetPrvwSize()
506 __func__, width, height); in usbCamSetPrvwSize()
508 camHal->prevWidth = width; in usbCamSetPrvwSize()
510 camHal->dispWidth = width; in usbCamSetPrvwSize()
[all …]
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_helper.c183 int width, in mm_camera_get_msm_frame_len() argument
198 size = (uint32_t)(PAD_TO_2K(width*height)*3/2); in mm_camera_get_msm_frame_len()
199 plane[0] = PAD_TO_WORD(width*height); in mm_camera_get_msm_frame_len()
202 plane[0] = PAD_TO_2K(width * height); in mm_camera_get_msm_frame_len()
203 plane[1] = PAD_TO_2K(width * height/2); in mm_camera_get_msm_frame_len()
205 plane[0] = PAD_TO_WORD(width * height); in mm_camera_get_msm_frame_len()
206 plane[1] = PAD_TO_WORD(width * height/2); in mm_camera_get_msm_frame_len()
208 plane[0] = PAD_TO_WORD(width * CEILING16(height)); in mm_camera_get_msm_frame_len()
209 plane[1] = PAD_TO_WORD(width * CEILING16(height)/2); in mm_camera_get_msm_frame_len()
216 plane[0] = PAD_TO_WORD(width * height); in mm_camera_get_msm_frame_len()
[all …]
/device/lge/hammerhead/camera/hdr/include/
Dmorpho_get_image_size.h30 morpho_getImageSize(int width, int height, const char *p_format);
43 morpho_getImageSizeY(int width, int height, const char *p_format);
56 morpho_getImageSizeU(int width, int height, const char *p_format);
69 morpho_getImageSizeV(int width, int height, const char *p_format);
82 morpho_getImageSizeUV(int width, int height, const char *p_format);
/device/asus/flo/camera/hdr/include/
Dmorpho_get_image_size.h30 morpho_getImageSize(int width, int height, const char *p_format);
43 morpho_getImageSizeY(int width, int height, const char *p_format);
56 morpho_getImageSizeU(int width, int height, const char *p_format);
69 morpho_getImageSizeV(int width, int height, const char *p_format);
82 morpho_getImageSizeUV(int width, int height, const char *p_format);
/device/lge/mako/camera/hdr/include/
Dmorpho_get_image_size.h30 morpho_getImageSize(int width, int height, const char *p_format);
43 morpho_getImageSizeY(int width, int height, const char *p_format);
56 morpho_getImageSizeU(int width, int height, const char *p_format);
69 morpho_getImageSizeV(int width, int height, const char *p_format);
82 morpho_getImageSizeUV(int width, int height, const char *p_format);
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c56 int width; member
67 int width; member
169 int size = p_input->width * p_input->height; in encode_init()
174 p_obj->width = p_input->width; in encode_init()
234 p_job_params->main_dim.src_dim.width = p_obj->width; in encode_init()
236 p_job_params->main_dim.dst_dim.width = p_obj->width; in encode_init()
240 p_job_params->main_dim.crop.width = p_obj->width; in encode_init()
244 p_job_params->thumb_dim.src_dim.width = p_obj->width; in encode_init()
246 p_job_params->thumb_dim.dst_dim.width = 512; in encode_init()
250 p_job_params->thumb_dim.crop.width = p_obj->width; in encode_init()
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c56 int width; member
67 int width; member
169 int size = p_input->width * p_input->height; in encode_init()
174 p_obj->width = p_input->width; in encode_init()
234 p_job_params->main_dim.src_dim.width = p_obj->width; in encode_init()
236 p_job_params->main_dim.dst_dim.width = p_obj->width; in encode_init()
240 p_job_params->main_dim.crop.width = p_obj->width; in encode_init()
244 p_job_params->thumb_dim.src_dim.width = p_obj->width; in encode_init()
246 p_job_params->thumb_dim.dst_dim.width = 512; in encode_init()
250 p_job_params->thumb_dim.crop.width = p_obj->width; in encode_init()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_stream.c1697 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_32); in mm_stream_calc_offset_preview()
1706 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview()
1709 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_32); in mm_stream_calc_offset_preview()
1718 buf_planes->plane_info.mp[1].width = dim->width; in mm_stream_calc_offset_preview()
1730 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_32); in mm_stream_calc_offset_preview()
1740 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview()
1743 stride = PAD_TO_SIZE(dim->width / 2, CAM_PAD_TO_32) * 2; in mm_stream_calc_offset_preview()
1753 buf_planes->plane_info.mp[1].width = dim->width; in mm_stream_calc_offset_preview()
1765 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_16); in mm_stream_calc_offset_preview()
1773 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c65 int width; member
78 int width; member
238 int size = CEILING16(p_input->width) * CEILING16(p_input->height); in decode_init()
244 p_obj->width = p_input->width; in decode_init()
278 p_params->dest_buf[0].offset.mp[0].stride = CEILING16(p_input->width); in decode_init()
280 p_params->dest_buf[0].offset.mp[1].stride = CEILING16(p_input->width); in decode_init()
302 p_job_params->main_dim.src_dim.width = p_obj->width; in decode_init()
304 p_job_params->main_dim.dst_dim.width = p_obj->width; in decode_init()
308 p_job_params->main_dim.crop.width = p_obj->width; in decode_init()
353 p_test->width = atoi(optarg); in mm_jpegdec_test_get_input()
[all …]
Dmm_jpeg_test.c65 int width; member
105 int width; member
250 int size = p_input->width * p_input->height; in encode_init()
258 p_obj->width = p_input->width; in encode_init()
286 p_params->src_main_buf[i].offset.mp[0].stride = p_input->width; in encode_init()
297 p_params->src_thumb_buf[i].offset.mp[0].stride = p_input->width; in encode_init()
354 p_job_params->main_dim.src_dim.width = p_obj->width; in encode_init()
356 p_job_params->main_dim.dst_dim.width = p_obj->width; in encode_init()
360 p_job_params->main_dim.crop.width = p_obj->width; in encode_init()
366 p_job_params->thumb_dim.src_dim.width = p_obj->width; in encode_init()
[all …]
/device/generic/goldfish/opengl/system/renderControl_enc/
DrenderControl_entry.cpp19 uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height);
21 uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat);
32 …void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum f…
33 …int rcUpdateColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum …
104 uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height) in rcCreateWindowSurface() argument
107 return ctx->rcCreateWindowSurface(ctx, config, width, height); in rcCreateWindowSurface()
116 uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat) in rcCreateColorBuffer() argument
119 return ctx->rcCreateColorBuffer(ctx, width, height, internalFormat); in rcCreateColorBuffer()
182 void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum fo… in rcReadColorBuffer() argument
185 ctx->rcReadColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); in rcReadColorBuffer()
[all …]
/device/moto/shamu/camera/QCamera2/HAL/test/
Dqcamera_test.cpp296 dstOffset = i*(dst->width())*mfmtMultiplier; in PiPCopyToOneFile()
297 srcOffset = i*(src->width())*mfmtMultiplier; in PiPCopyToOneFile()
300 src->width()*mfmtMultiplier); in PiPCopyToOneFile()
872 mWidthTmp[mPiPIdx] = currentPictureSize.width; in postData()
999 srcYStride = calcStride(currentVideoSize.width); in dataCallbackTimestamp()
1000 srcUVStride = calcStride(currentVideoSize.width); in dataCallbackTimestamp()
1003 mInterpr->mViVBuff.srcWidth = currentVideoSize.width; in dataCallbackTimestamp()
1018 dstYStride = calcStride(currentVideoSize.width); in dataCallbackTimestamp()
1019 dstUVStride = calcStride(currentVideoSize.width); in dataCallbackTimestamp()
1076 srcOffset, currentVideoSize.width); in dataCallbackTimestamp()
[all …]
/device/generic/goldfish/opengl/system/GLESv2_enc/
DGL2EncoderUtils.cpp23 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pac… in pixelDataSize() argument
27 return ctx->state()->pixelDataSize(width, height, format, type, pack); in pixelDataSize()
30 size_t pixelDataSize3D(void *self, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe… in pixelDataSize3D() argument
32 size_t layerSize = pixelDataSize(self, width, height, format, type, pack); in pixelDataSize3D()
Dgl2_entry.cpp30 …void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsi…
31 …Image2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, G…
32 …num target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, G…
33 …arget, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
97 void glLineWidth(GLfloat width);
101 …void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLv…
103 void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
105 void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
114 …void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,…
119 …void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsi…
[all …]
/device/generic/goldfish/opengl/system/egl/
DClientAPIExts.in126 (GLenum target, GLenum internalformat, GLsizei width, GLsizei height),
127 (target, internalformat, width, height))
172 (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height),
173 (x, y, z, width, height))
176 (GLint x, GLint y, GLint z, GLint width, GLint height),
177 (x, y, z, width, height))
180 (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height),
181 (x, y, z, width, height))
184 (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height),
185 (x, y, z, width, height))
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraStream.cpp75 mWidth = res->width; in setResolution()
80 if (mWidth != res->width || mHeight != res->height) in isResolutionSame()
87 res->width = mWidth; in getResolution()
251 stream_config.fmt.width = mWidth; in setFormat()
261 mHalCamCtrl->mRdiWidth = stream_config.fmt.width; in setFormat()
265 mWidth = stream_config.fmt.width; in setFormat()
339 v4l2_crop.width, in setCrop()
344 mCrop.width = v4l2_crop.width; in setCrop()
/device/generic/goldfish/camera/fake-pipeline2/
DBase.h38 uint32_t width, height; member
48 uint32_t width, height; member
55 uint32_t width, height; member
/device/generic/goldfish/opengl/tests/gles_android_wrapper/
Dgles.cpp151 void glLineWidth(GLfloat width) in glLineWidth() argument
153 getDispatch()->glLineWidth(width); in glLineWidth()
331 void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsiz… in glCompressedTexImage2D() argument
333 …getDispatch()->glCompressedTexImage2D(target, level, internalformat, width, height, border, imageS… in glCompressedTexImage2D()
336 …Image2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, G… in glCompressedTexSubImage2D() argument
338 …getDispatch()->glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, i… in glCompressedTexSubImage2D()
341 …num target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, G… in glCopyTexImage2D() argument
343 getDispatch()->glCopyTexImage2D(target, level, internalformat, x, y, width, height, border); in glCopyTexImage2D()
346 …target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) in glCopyTexSubImage2D() argument
348 getDispatch()->glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); in glCopyTexSubImage2D()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c724 p_jobparams->main_dim.src_dim.width; in mm_jpeg_session_config_ports()
747 p_jobparams->thumb_dim.src_dim.width; in mm_jpeg_session_config_ports()
823 cropped_width = floor((cropped_height * p_thumb_dim->dst_dim.width) / in mm_jpeg_get_thumbnail_crop()
827 cropped_width = p_thumb_dim->src_dim.width; in mm_jpeg_get_thumbnail_crop()
829 p_thumb_dim->dst_dim.width); in mm_jpeg_get_thumbnail_crop()
831 p_thumb_dim->crop.left = floor(p_thumb_dim->src_dim.width - cropped_width)/2; in mm_jpeg_get_thumbnail_crop()
833 p_thumb_dim->crop.width = cropped_width; in mm_jpeg_get_thumbnail_crop()
838 p_thumb_dim->crop.width, p_thumb_dim->crop.height); in mm_jpeg_get_thumbnail_crop()
874 if ((p_thumb_dim->dst_dim.width == 0) || (p_thumb_dim->dst_dim.height == 0)) { in mm_jpeg_session_config_thumbnail()
880 if ((p_thumb_dim->src_dim.width == 0) || (p_thumb_dim->src_dim.height == 0)) { in mm_jpeg_session_config_thumbnail()
[all …]
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraParameters.cpp791 snprintf(buffer, sizeof(buffer), "%dx%d", sizes[0].width, sizes[0].height); in createSizesString()
795 snprintf(buffer, sizeof(buffer), ",%dx%d", sizes[i].width, sizes[i].height); in createSizesString()
958 values[0].dim.width, values[0].dim.height); in createHfrSizesString()
963 values[i].dim.width, values[i].dim.height); in createHfrSizesString()
1108 int width, height; in setPreviewSize() local
1109 params.getPreviewSize(&width, &height); in setPreviewSize()
1110 CDBG("Requested preview size %d x %d", width, height); in setPreviewSize()
1114 if (width == m_pCapability->preview_sizes_tbl[i].width in setPreviewSize()
1119 if (width != old_width || height != old_height) { in setPreviewSize()
1124 CameraParameters::setPreviewSize(width, height); in setPreviewSize()
[all …]

12345678910