Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/device/google/cuttlefish_common/guest/hals/camera/
DConverters.cpp30 int width, int height) { in _YUV420SToRGB565() argument
34 for (int y = 0; y < height; y++) { in _YUV420SToRGB565()
57 int height) { in _YUV420SToRGB32() argument
61 for (int y = 0; y < height; y++) { in _YUV420SToRGB32()
82 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) { in YV12ToRGB565() argument
83 const int pix_total = width * height; in YV12ToRGB565()
87 _YUV420SToRGB565(Y, U, V, 1, reinterpret_cast<uint16_t*>(rgb), width, height); in YV12ToRGB565()
90 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) { in YV12ToRGB32() argument
91 const int pix_total = width * height; in YV12ToRGB32()
95 _YUV420SToRGB32(Y, U, V, 1, reinterpret_cast<uint32_t*>(rgb), width, height); in YV12ToRGB32()
[all …]
DCameraConfiguration.cpp149 const std::string& height, in ValueToCameraResolution() argument
160 resolution->height = strtol(height.c_str(), &endptr, 10); in ValueToCameraResolution()
161 if (endptr != height.c_str() + height.size()) { in ValueToCameraResolution()
163 __FUNCTION__, height.c_str()); in ValueToCameraResolution()
168 if (resolution->width <= 0 || resolution->height <= 0) { in ValueToCameraResolution()
170 resolution->width, resolution->height); in ValueToCameraResolution()
175 if ((resolution->width & 7) != 0 || (resolution->height & 7) != 0) { in ValueToCameraResolution()
179 __FUNCTION__, resolution->width, resolution->height, in ValueToCameraResolution()
180 resolution->width & 7, resolution->height & 7); in ValueToCameraResolution()
/device/generic/goldfish/camera/
DConverters.cpp36 int height, in _YUV420SToRGB565() argument
44 for (int y = 0; y < height; y++) { in _YUV420SToRGB565()
65 int height, in _YUV420SToRGB32() argument
73 for (int y = 0; y < height; y++) { in _YUV420SToRGB32()
96 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) in YV12ToRGB565() argument
102 const uint8_t* U = Y + y_stride * height; in YV12ToRGB565()
103 const uint8_t* V = U + uv_stride * (height / 2); in YV12ToRGB565()
105 width, height, y_stride, uv_stride); in YV12ToRGB565()
108 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) in YV12ToRGB32() argument
114 const uint8_t* V = Y + y_stride * height; in YV12ToRGB32()
[all …]
DEmulatedFakeRotatingCameraDevice.cpp71 static void rgba8888_to_nv21(uint8_t* input, uint8_t* output, int width, int height) { in rgba8888_to_nv21() argument
74 uint8_t* outputVU = output + height*yStride; in rgba8888_to_nv21()
75 for (int j = 0; j < height; ++j) { in rgba8888_to_nv21()
95 static void nv21_to_rgba8888(uint8_t* input, uint32_t * output, int width, int height) { in nv21_to_rgba8888() argument
98 uint8_t* inputVU = input + height*yStride; in nv21_to_rgba8888()
100 for (int j = 0; j < height; ++j) { in nv21_to_rgba8888()
115 void EmulatedFakeRotatingCameraDevice::render(int width, int height) in render() argument
117 update_scene((float)width, (float)height); in render()
145 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf); in render()
169 void EmulatedFakeRotatingCameraDevice::create_texture_dotx(int width, int height) { in create_texture_dotx() argument
[all …]
DEmulatedFakeRotatingCameraDevice.h68 status_t startDevice(int width, int height, uint32_t pix_fmt);
85 void render(int width, int height);
86 int init_gl_surface(int width, int height);
93 void update_scene(float width, float height);
94 void create_texture_dotx(int width, int height);
/device/linaro/hikey/gralloc960/
Dmali_gralloc_bufferallocation.cpp103 static void get_rgb_stride_and_size(int width, int height, int pixel_size, int *pixel_stride, int *… in get_rgb_stride_and_size() argument
116 *size = stride *height; in get_rgb_stride_and_size()
132 int h_aligned = GRALLOC_ALIGN(height, AFBC_NORMAL_HEIGHT_ALIGN); in get_rgb_stride_and_size()
139 h_aligned = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_rgb_stride_and_size()
145 h_aligned = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_rgb_stride_and_size()
155 h_aligned = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_rgb_stride_and_size()
197 static bool get_afbc_yuv420_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv420_8bit_stride_and_size() argument
203 *internalHeight = height; in get_afbc_yuv420_8bit_stride_and_size()
227 height = GRALLOC_ALIGN(*internalHeight, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
233 height = GRALLOC_ALIGN(*internalHeight, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_imageop.py25 for height in VALUES:
27 strlen = abs(width * height)
35 arguments = (data, size, width, height) + extra
37 arguments = (data, width, height) + extra
80 image, width, height = getimage('test'+os.extsep+'rgb')
86 newimage = imageop.crop (image, 4, width, height, 0, 0, 1, 1)
94 scaleimage = imageop.scale(image, 4, width, height, 1, 1)
102 videoimage = imageop.tovideo (image, 4, width, height)
107 greyimage = imageop.rgb2rgb8(image, width, height)
112 image = imageop.rgb82rgb(greyimage, width, height)
[all …]
/device/google/crosshatch/sdm845/kernel-headers/media/
Dmsm_media_info.h816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
818 (void)height; in VENUS_EXTRADATA_SIZE()
919 static __inline__ unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument
923 if (!height) in VENUS_Y_SCANLINES()
941 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES()
953 static __inline__ unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument
957 if (!height) in VENUS_UV_SCANLINES()
976 sclines = MSM_MEDIA_ALIGN((height+1)>>1, alignment); in VENUS_UV_SCANLINES()
1022 static __inline__ unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument
1026 if (!height) in VENUS_Y_META_SCANLINES()
[all …]
/device/google/bonito/sdm710/kernel-headers/media/
Dmsm_media_info.h816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
818 (void)height; in VENUS_EXTRADATA_SIZE()
919 static __inline__ unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument
923 if (!height) in VENUS_Y_SCANLINES()
941 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES()
953 static __inline__ unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument
957 if (!height) in VENUS_UV_SCANLINES()
976 sclines = MSM_MEDIA_ALIGN((height+1)>>1, alignment); in VENUS_UV_SCANLINES()
1022 static __inline__ unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument
1026 if (!height) in VENUS_Y_META_SCANLINES()
[all …]
/device/google/bonito/sdm710/original-kernel-headers/media/
Dmsm_media_info.h816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
818 (void)height; in VENUS_EXTRADATA_SIZE()
919 static __inline__ unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument
923 if (!height) in VENUS_Y_SCANLINES()
941 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES()
953 static __inline__ unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument
957 if (!height) in VENUS_UV_SCANLINES()
976 sclines = MSM_MEDIA_ALIGN((height+1)>>1, alignment); in VENUS_UV_SCANLINES()
1022 static __inline__ unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument
1026 if (!height) in VENUS_Y_META_SCANLINES()
[all …]
/device/google/crosshatch/sdm845/original-kernel-headers/media/
Dmsm_media_info.h816 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
818 (void)height; in VENUS_EXTRADATA_SIZE()
919 static __inline__ unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument
923 if (!height) in VENUS_Y_SCANLINES()
941 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES()
953 static __inline__ unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument
957 if (!height) in VENUS_UV_SCANLINES()
976 sclines = MSM_MEDIA_ALIGN((height+1)>>1, alignment); in VENUS_UV_SCANLINES()
1022 static __inline__ unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument
1026 if (!height) in VENUS_Y_META_SCANLINES()
[all …]
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.h21 void get_yv12_offsets(int width, int height,
25 void get_yuv420p_offsets(int width, int height,
30 void rgb565_to_yv12(char* dest, char* src, int width, int height,
32 void rgb888_to_yv12(char* dest, char* src, int width, int height,
34 void rgb888_to_yuv420p(char* dest, char* src, int width, int height,
36 void yv12_to_rgb565(char* dest, char* src, int width, int height,
38 void yv12_to_rgb888(char* dest, char* src, int width, int height,
40 void yuv420p_to_rgb888(char* dest, char* src, int width, int height,
44 int width, int height, int top, int left,
DFormatConversions.cpp36 void get_yv12_offsets(int width, int height, in get_yv12_offsets() argument
43 uint32_t uvHeight = height / 2; in get_yv12_offsets()
44 uint32_t sz = yStride * height + 2 * (uvHeight * uvStride); in get_yv12_offsets()
51 void get_yuv420p_offsets(int width, int height, in get_yuv420p_offsets() argument
58 uint32_t uvHeight = height / 2; in get_yuv420p_offsets()
59 uint32_t sz = yStride * height + 2 * (uvHeight * uvStride); in get_yuv420p_offsets()
75 void rgb565_to_yv12(char* dest, char* src, int width, int height, in rgb565_to_yv12() argument
83 int cSize = cStride * height/2; in rgb565_to_yv12()
87 uint8_t *yv12_v0 = yv12_y0 + yStride * height; in rgb565_to_yv12()
116 void rgb888_to_yv12(char* dest, char* src, int width, int height, in rgb888_to_yv12() argument
[all …]
/device/generic/goldfish/camera/qemu-pipeline3/
DQemuSensor.cpp50 QemuSensor::QemuSensor(const char *deviceName, uint32_t width, uint32_t height): in QemuSensor() argument
53 mHeight(height), in QemuSensor()
54 mActiveArray{0, 0, width, height}, in QemuSensor()
65 ALOGV("QemuSensor created with pixel array %d x %d", width, height);
276 i, b.streamId, b.width, b.height, b.format, b.stride, in threadLoop()
280 captureRGB(b.img, b.width, b.height, b.stride, &timestamp); in threadLoop()
283 captureRGBA(b.img, b.width, b.height, b.stride, &timestamp); in threadLoop()
296 bAux.height = b.height; in threadLoop()
301 bAux.img = new uint8_t[b.width * b.height * 3]; in threadLoop()
306 captureNV21(b.img, b.width, b.height, b.stride, &timestamp); in threadLoop()
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/libOpenglRender/
DYUVConverter.cpp30 static void getPlanarYUVSizes(int width, int height, in getPlanarYUVSizes() argument
59 uint32_t cHeight = height / 2; in getPlanarYUVSizes()
61 *nBytes_out = yStride * height + 2 * (cStride * cHeight); in getPlanarYUVSizes()
71 static void getYUVSizes(int width, int height, in getYUVSizes() argument
80 getPlanarYUVSizes(width, height, format, in getYUVSizes()
91 static void getPlanarYUVOffsets(int width, int height, FrameworkFormat format, in getPlanarYUVOffsets() argument
98 getYUVSizes(width, height, format, &totalSize, &yStride, &cStride, &cHeight); in getPlanarYUVOffsets()
99 int cSize = cStride * height / 2; in getPlanarYUVOffsets()
108 *voff = (*yoff) + yStride * height; in getPlanarYUVOffsets()
115 *uoff = (*yoff) + yStride * height; in getPlanarYUVOffsets()
[all …]
/device/google/marlin/camera/QCamera2/stack/mm-lib2d-interface/test/
Dmm_lib2d_test.c112 int32_t height; member
142 int height, int stride, char *fname) in lib2d_dump_tga() argument
156 fprintf(f, "%c%c%c%c", width & 0xff, width >> 8, height & 0xff, height >> 8); in lib2d_dump_tga()
159 for (i = 0; i < height; i++) { in lib2d_dump_tga()
266 int32_t height, int32_t crcb_offset, void *addr) in lib2d_test_load_input_yuv_data_linebyline() argument
282 i = fread(y_ptr, 1, (input_yuv_stride * height), fp); in lib2d_test_load_input_yuv_data_linebyline()
284 i = fread(crcb_ptr, 1, (input_yuv_stride * height / 2), fp); in lib2d_test_load_input_yuv_data_linebyline()
288 for (line = 0;line < height; line++) { in lib2d_test_load_input_yuv_data_linebyline()
292 for (line = 0;line < height; line++) { in lib2d_test_load_input_yuv_data_linebyline()
330 int32_t height = 0; in main() local
[all …]
/device/google/marlin/camera/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()
501 && height == previewSizes[i].height) { in usbCamSetPrvwSize()
504 camHal->qCamParams.setPreviewSize(width, height); in usbCamSetPrvwSize()
506 __func__, width, height); in usbCamSetPrvwSize()
509 camHal->prevHeight = height; in usbCamSetPrvwSize()
511 camHal->dispHeight = height; in usbCamSetPrvwSize()
[all …]
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_stream.c2498 scanline = PAD_TO_SIZE(dim->height, height_padding); in mm_stream_calc_offset_preview()
2507 buf_planes->plane_info.mp[0].height = dim->height; in mm_stream_calc_offset_preview()
2510 scanline = PAD_TO_SIZE(dim->height / 2, height_padding); in mm_stream_calc_offset_preview()
2519 buf_planes->plane_info.mp[1].height = dim->height / 2; in mm_stream_calc_offset_preview()
2532 scanline = PAD_TO_SIZE(dim->height, CAM_PAD_TO_32); in mm_stream_calc_offset_preview()
2535 scanline = PAD_TO_SIZE(dim->height, padding->height_padding); in mm_stream_calc_offset_preview()
2545 buf_planes->plane_info.mp[0].height = dim->height; in mm_stream_calc_offset_preview()
2548 scanline = PAD_TO_SIZE(dim->height / 2, CAM_PAD_TO_32); in mm_stream_calc_offset_preview()
2557 buf_planes->plane_info.mp[1].height = dim->height / 2; in mm_stream_calc_offset_preview()
2570 scanline = PAD_TO_SIZE(dim->height, CAM_PAD_TO_2); in mm_stream_calc_offset_preview()
[all …]
/device/generic/goldfish/camera/fake-pipeline2/
DSensor.cpp98 Sensor::Sensor(uint32_t width, uint32_t height): in Sensor() argument
100 mResolution{width, height}, in Sensor()
101 mActiveArray{0, 0, width, height},
102 mRowReadoutTime(kFrameDurationRange[0] / height),
111 mScene(width, height, kElectronsPerLuxSecond)
113 ALOGV("Sensor created with pixel array %d x %d", width, height);
318 i, b.streamId, b.width, b.height, b.format, b.stride, in threadLoop()
325 captureRGB(b.img, gain, b.width, b.height); in threadLoop()
328 captureRGBA(b.img, gain, b.width, b.height); in threadLoop()
338 bAux.height = b.height; in threadLoop()
[all …]
/device/google/cuttlefish_common/guest/hals/hwcomposer/cutf_cvm/
Dvsoc_composer.cpp146 int height; member
154 BufferSpec(uint8_t* buffer, size_t size, int width, int height, int stride) in BufferSpec()
158 height(height), in BufferSpec()
163 crop_height(height), in BufferSpec()
176 uint8_t* src_v = src_y + stride_y * src.height; in ConvertFromYV12()
178 uint8_t* src_u = src_v + stride_v * src.height / 2; in ConvertFromYV12()
205 int height = src.crop_height; in DoCopy() local
208 height = -height; in DoCopy()
216 height); in DoCopy()
227 int height = src.crop_height; in DoRotation() local
[all …]
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/
Dvsoc_composer.cpp148 int height; member
156 BufferSpec(uint8_t* buffer, size_t size, int width, int height, int stride) in BufferSpec()
160 height(height), in BufferSpec()
165 crop_height(height), in BufferSpec()
178 uint8_t* src_v = src_y + stride_y * src.height; in ConvertFromYV12()
180 uint8_t* src_u = src_v + stride_v * src.height / 2; in ConvertFromYV12()
207 int height = src.crop_height; in DoCopy() local
210 height = -height; in DoCopy()
218 height); in DoCopy()
229 int height = src.crop_height; in DoRotation() local
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLESTextureUtils.cpp206 static int computePackingOffset(GLenum format, GLenum type, GLsizei width, GLsizei height, int alig… in computePackingOffset() argument
209 (skipImages * height + skipRows); in computePackingOffset()
214 GLsizei width, GLsizei height, GLsizei depth, in computeTextureStartEnd() argument
227 GLsizei inputHeight = (unpackImageHeight == 0) ? height : unpackImageHeight; in computeTextureStartEnd()
229 …ALOGV("%s: input idim %d %d %d w p h %d %d %d:", __FUNCTION__, width, height, depth, inputWidth, i… in computeTextureStartEnd()
242 GLsizei width, GLsizei height, GLsizei depth, in computeTotalImageSize() argument
253 width, height, depth, in computeTotalImageSize()
267 GLsizei width, GLsizei height, GLsizei depth, in computeNeededBufferSize() argument
278 width, height, depth, in computeNeededBufferSize()
292 GLsizei width, GLsizei height, in computePackingOffsets2D() argument
[all …]
DGLESTextureUtils.h9 GLsizei width, GLsizei height, GLsizei depth,
21 GLsizei width, GLsizei height, GLsizei depth,
31 GLsizei width, GLsizei height, GLsizei depth,
46 GLsizei width, GLsizei height,
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c74 int height; member
82 int height; member
241 size_t size = (size_t)(CEILING16(p_input->width) * CEILING16(p_input->height)); in decode_init()
248 p_obj->height = p_input->height; in decode_init()
283 p_params->dest_buf[0].offset.mp[0].scanline = CEILING16(p_input->height); in decode_init()
285 p_params->dest_buf[0].offset.mp[1].scanline = CEILING16(p_input->height); in decode_init()
307 p_job_params->main_dim.src_dim.height = p_obj->height; in decode_init()
309 p_job_params->main_dim.dst_dim.height = p_obj->height; in decode_init()
313 p_job_params->main_dim.crop.height = p_obj->height; in decode_init()
361 p_test->height = atoi(optarg); in mm_jpegdec_test_get_input()
[all …]
/device/generic/goldfish-opengl/system/include/ETC1/
Detc1.h58 etc1_uint32 etc1_get_encoded_data_size(etc1_uint32 width, etc1_uint32 height);
67 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height,
79 etc1_uint32 width, etc1_uint32 height,
88 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height);

12345678910>>...13