Home
last modified time | relevance | path

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

12345678910>>...30

/hardware/qcom/msm8994/original-kernel-headers/media/
Dmsm_media_info.h319 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
322 (void)width; in VENUS_EXTRADATA_SIZE()
331 static inline unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument
334 if (!width) in VENUS_Y_STRIDE()
343 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
347 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_Y_STRIDE()
356 static inline unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument
359 if (!width) in VENUS_UV_STRIDE()
368 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
372 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8994/kernel-headers/media/
Dmsm_media_info.h319 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
322 (void)width; in VENUS_EXTRADATA_SIZE()
331 static inline unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument
334 if (!width) in VENUS_Y_STRIDE()
343 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
347 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_Y_STRIDE()
356 static inline unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument
359 if (!width) in VENUS_UV_STRIDE()
368 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
372 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8996/original-kernel-headers/media/
Dmsm_media_info.h404 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
407 (void)width; in VENUS_EXTRADATA_SIZE()
416 static inline unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument
419 if (!width) in VENUS_Y_STRIDE()
428 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
432 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
442 static inline unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument
445 if (!width) in VENUS_UV_STRIDE()
454 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
458 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8996/kernel-headers/media/
Dmsm_media_info.h404 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
407 (void)width; in VENUS_EXTRADATA_SIZE()
416 static inline unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument
419 if (!width) in VENUS_Y_STRIDE()
428 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
432 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
442 static inline unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument
445 if (!width) in VENUS_UV_STRIDE()
454 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
458 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libyuv/source/
Drow.h29 int width);
35 int width);
41 int width);
85 uint8* dst_u, uint8* dst_v, int width);
87 uint8* dst_u, uint8* dst_v, int width);
89 uint8* dst_u, uint8* dst_v, int width);
98 uint8* dst_u, uint8* dst_v, int width);
100 uint8* dst_u, uint8* dst_v, int width);
103 void ReverseRow_SSSE3(const uint8* src, uint8* dst, int width);
106 void ReverseRow_NEON(const uint8* src, uint8* dst, int width);
[all …]
/hardware/qcom/msm8x84/original-kernel-headers/media/
Dmsm_media_info.h140 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
143 (void)width; in VENUS_EXTRADATA_SIZE()
152 static inline unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument
155 if (!width) in VENUS_Y_STRIDE()
163 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
172 static inline unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument
175 if (!width) in VENUS_UV_STRIDE()
183 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
233 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument
235 const unsigned int extra_size = VENUS_EXTRADATA_SIZE(width, height); in VENUS_BUFFER_SIZE()
[all …]
/hardware/qcom/msm8x84/kernel-headers/media/
Dmsm_media_info.h140 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument
143 (void)width; in VENUS_EXTRADATA_SIZE()
152 static inline unsigned int VENUS_Y_STRIDE(int color_fmt, int width) in VENUS_Y_STRIDE() argument
155 if (!width) in VENUS_Y_STRIDE()
163 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
172 static inline unsigned int VENUS_UV_STRIDE(int color_fmt, int width) in VENUS_UV_STRIDE() argument
175 if (!width) in VENUS_UV_STRIDE()
183 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
233 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument
235 const unsigned int extra_size = VENUS_EXTRADATA_SIZE(width, height); in VENUS_BUFFER_SIZE()
[all …]
/hardware/intel/common/libva/test/putsurface/
Dputsurface_x11.c35 static int create_window(void *win_display, int x, int y, int width, int height);
36 static int check_window_event(void *x11_display, void *drawable, int *width, int *height, int *quit…
52 static Pixmap create_pixmap(void *win_display, int width, int height) in create_pixmap() argument
64 …e a pixmap from ROOT window %dx%d, pixmap size %dx%d\n\n", attr.width, attr.height, width, height); in create_pixmap()
65 pixmap = XCreatePixmap(x11_display, root, width, height, in create_pixmap()
71 static int create_window(void *win_display, int x, int y, int width, int height) in create_window() argument
80 drawable_thread0 = (void *)XCreateSimpleWindow(x11_display, root, x, y, width, height, in create_window()
86 sizehints.width = width; in create_window()
101 drawable_thread0 = (void *)create_pixmap(x11_display, width, height); in create_window()
109 drawable_thread1 = (void *)XCreateSimpleWindow(x11_display, root, width, 0, width, height, in create_window()
[all …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/vc1/parser/
Dvc1parse_bitplane.c152 int32_t width, int32_t height) in vc1_Norm2ModeDecode() argument
176 if ((width*height) & 1) /* first bit if size is odd */ in vc1_Norm2ModeDecode()
179 put_bit(tmp_databits, 0, 0, width, height, pBitplane->invert, in vc1_Norm2ModeDecode()
187 if(width == 1) in vc1_Norm2ModeDecode()
197 for (i = (width*height) & 1; i < (width*height/2)*2; i += 2) in vc1_Norm2ModeDecode()
209 put_bit(0, col[0],row[0], width, height, pBitplane->invert, in vc1_Norm2ModeDecode()
211 put_bit(0, col[1],row[1], width, height, pBitplane->invert, in vc1_Norm2ModeDecode()
219 put_bit(1, col[0],row[0], width, height, pBitplane->invert, in vc1_Norm2ModeDecode()
221 put_bit(1, col[1],row[1], width, height, pBitplane->invert, in vc1_Norm2ModeDecode()
229 put_bit(1, col[0],row[0], width, height, pBitplane->invert, in vc1_Norm2ModeDecode()
[all …]
/hardware/intel/img/psb_video/src/
Dpsb_surface.c40 int width, int height, int fourcc, unsigned int flags, in psb_surface_create() argument
59 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { in psb_surface_create()
65 } else if (512 >= width) { in psb_surface_create()
68 } else if (1024 >= width) { in psb_surface_create()
71 } else if (1280 >= width) { in psb_surface_create()
80 } else if (2048 >= width) { in psb_surface_create()
83 } else if (4096 >= width) { in psb_surface_create()
88 psb_surface->stride = (width + 0x3f) & ~0x3f; in psb_surface_create()
98 psb_surface->stride = (width * 4 + pitchAlignMask) & ~pitchAlignMask;; in psb_surface_create()
104 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { in psb_surface_create()
[all …]
Dpsb_surface_attrib.c55 int width, int height, int fourcc, in psb_surface_create_from_ub() argument
66 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { in psb_surface_create_from_ub()
143 int width, height, buf_stride, buf_offset, size;
169 width = v4l2_fmt->fmt.pix.width;
172 buf_stride = width; /* ? */
177 width, height, buf_stride, buf_offset, size);
182 obj_surface->width = width;
204 …vaStatus = psb_surface_create_camera(driver_data, width, height, buf_stride, size, psb_surface, 1,…
217 vaStatus = psb_surface_create_camera_from_ub(driver_data, width, height,
280 unsigned int width = (unsigned int)Width; in psb_CreateSurfacesForUserPtr() local
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dalloc_controller.cpp169 aligned_w = hnd->width; in getAlignedWidthAndHeight()
209 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
217 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
219 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
221 aligned_w = width; in getAlignedWidthAndHeight()
231 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
234 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
237 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
240 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight()
243 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Dresize_util.c27 static int parse_dim(char *v, int *width, int *height) { in parse_dim() argument
33 *width = atoi(v); in parse_dim()
35 if (*width <= 0 || *height <= 0) in parse_dim()
48 int width, height, target_width, target_height; in main() local
58 if (!parse_dim(argv[2], &width, &height)) { in main()
87 width, height); in main()
95 inbuf = (uint8_t*)malloc(width * height * 3 / 2); in main()
97 inbuf_u = inbuf + width * height; in main()
98 inbuf_v = inbuf_u + width * height / 4; in main()
103 if (fread(inbuf, width * height * 3 / 2, 1, fpin) != 1) in main()
[all …]
/hardware/qcom/display/msm8994/libcopybit/
Dsoftware_converter.cpp52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local
57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP()
100 if(j == width) { in convertYV12toYCrCb420SP()
105 if (j+1 == width) { in convertYV12toYCrCb420SP()
106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
116 if (i == width/2 ) { in convertYV12toYCrCb420SP()
127 int width; member
[all …]
/hardware/qcom/display/msm8909/libcopybit/
Dsoftware_converter.cpp52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local
57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP()
100 if(j == width) { in convertYV12toYCrCb420SP()
105 if (j+1 == width) { in convertYV12toYCrCb420SP()
106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
116 if (i == width/2 ) { in convertYV12toYCrCb420SP()
127 int width; member
[all …]
/hardware/qcom/display/msm8996/libcopybit/
Dsoftware_converter.cpp52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local
57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP()
100 if(j == width) { in convertYV12toYCrCb420SP()
105 if (j+1 == width) { in convertYV12toYCrCb420SP()
106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
116 if (i == width/2 ) { in convertYV12toYCrCb420SP()
127 int width; member
[all …]
/hardware/qcom/display/msm8960/libcopybit/
Dsoftware_converter.cpp52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local
57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP()
100 if(j == width) { in convertYV12toYCrCb420SP()
105 if (j+1 == width) { in convertYV12toYCrCb420SP()
106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
116 if (i == width/2 ) { in convertYV12toYCrCb420SP()
127 int width; member
[all …]
/hardware/qcom/display/msm8226/libcopybit/
Dsoftware_converter.cpp52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local
57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP()
100 if(j == width) { in convertYV12toYCrCb420SP()
105 if (j+1 == width) { in convertYV12toYCrCb420SP()
106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
116 if (i == width/2 ) { in convertYV12toYCrCb420SP()
127 int width; member
[all …]
/hardware/qcom/display/msm8084/libcopybit/
Dsoftware_converter.cpp52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local
57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP()
100 if(j == width) { in convertYV12toYCrCb420SP()
105 if (j+1 == width) { in convertYV12toYCrCb420SP()
106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP()
112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP()
116 if (i == width/2 ) { in convertYV12toYCrCb420SP()
127 int width; member
[all …]
/hardware/ti/omap4-aah/test/CameraHal/
Dsurfacetexture_test.cpp112 test_format (int format, int page_mode, int width, int height) in test_format() argument
128 st->setDefaultBufferSize (width, height); in test_format()
142 width, height, format); in test_format()
146 Rect bounds(width, height); in test_format()
233 int width, height; in main() local
235 width = 640; in main()
237 test_format (HAL_PIXEL_FORMAT_TI_NV12, 0, width, height); in main()
238 test_format (HAL_PIXEL_FORMAT_TI_NV12, 1, width, height); in main()
239 test_format (HAL_PIXEL_FORMAT_TI_NV12_1D, 0, width, height); in main()
240 test_format (HAL_PIXEL_FORMAT_TI_Y8, 1, width, height); in main()
[all …]
/hardware/qcom/display/msm8994/libgralloc/
Dalloc_controller.cpp164 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
171 AdrenoMemInfo::getInstance().getGpuAlignedWidthHeight(width, in getAlignedWidthAndHeight()
177 getUBwcWidthAndHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
181 aligned_w = width; in getAlignedWidthAndHeight()
187 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
190 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
193 aligned_w = ALIGN(width * 10 /8, 8); in getAlignedWidthAndHeight()
196 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
204 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
208 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12, width); in getAlignedWidthAndHeight()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DRotationBufferProvider.cpp119 int RotationBufferProvider::getStride(bool isTarget, int width) in getStride() argument
122 if (width <= 512) in getStride()
124 else if (width <= 1024) in getStride()
126 else if (width <= 1280) { in getStride()
130 } else if (width <= 2048) in getStride()
132 else if (width <= 4096) in getStride()
135 stride = (width + 0x3f) & ~0x3f; in getStride()
139 uint32_t RotationBufferProvider::createWsbmBuffer(int width, int height, void **buf) in createWsbmBuffer() argument
141 int size = width * height * 3 / 2; // YUV420 NV12 format in createWsbmBuffer()
161 int width = 0, height = 0, bufferHeight = 0; in createVaSurface() local
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dalloc_controller.cpp131 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
134 aligned_w = width; in getAlignedWidthAndHeight()
138 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
166 LINK_adreno_compute_aligned_width_and_height(width, in getAlignedWidthAndHeight()
173 aligned_w = LINK_adreno_compute_padding(width, bpp, in getAlignedWidthAndHeight()
188 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
191 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
194 aligned_w = ALIGN(width * 10 /8, 16); in getAlignedWidthAndHeight()
197 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
205 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
[all …]
/hardware/intel/common/libmix/videoencoder/
DVideoEncoderUtils.cpp105 int left, int top, int width, int height, void** vaddr) { in gfx_lock() argument
117 left, top, width, height, vaddr); in gfx_lock()
195 vinfo.width = h->iWidth; in GetGfxBufferInfo()
222 LOG_V("Actual Width=%d, Height=%d, Stride=%d\n\n", vinfo.width, vinfo.height, vinfo.lumaStride); in GetGfxBufferInfo()
234 if (gfx_lock((buffer_handle_t)handle, usage, 0, 0, vinfo.width, vinfo.height, &vaddr[0]) != 0) in DumpGfx()
298 int width = mVASurfaceWidth = mVinfo.width; in doMapping() local
315 width = tmp.width; in doMapping()
326 … if (gfx_alloc(width, height, HAL_PIXEL_FORMAT_NV12, usage, &mGfxHandle, &stride) != 0) in doMapping()
330 mGfxHandle, width, height, stride); in doMapping()
344 if(mAction & MAP_ACTION_ALIGN64 && width <= 320 && height <= 240) { in doMapping()
[all …]
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DRotationBufferProvider.cpp119 int RotationBufferProvider::getStride(bool isTarget, int width) in getStride() argument
122 if (width <= 512) in getStride()
124 else if (width <= 1024) in getStride()
126 else if (width <= 1280) { in getStride()
130 } else if (width <= 2048) in getStride()
132 else if (width <= 4096) in getStride()
135 stride = (width + 0x3f) & ~0x3f; in getStride()
139 buffer_handle_t RotationBufferProvider::createWsbmBuffer(int width, int height, void **buf) in createWsbmBuffer() argument
141 int size = width * height * 3 / 2; // YUV420 NV12 format in createWsbmBuffer()
161 int width = 0, height = 0, bufferHeight = 0; in createVaSurface() local
[all …]

12345678910>>...30