Home | History | Annotate | Download | only in gralloc

Lines Matching refs:format

134 static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage,
141 switch (format) {
165 if (format != HAL_PIXEL_FORMAT_BLOB) {
183 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride,
189 static int gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format,
197 switch (format) {
207 ALOGE("invalid yuv format %d\n", format);
215 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h);
219 static int gralloc_alloc_yuv(int ionfd, int w, int h, int format,
230 if (format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
233 format = HAL_PIXEL_FORMAT_YCbCr_422_I; // YUYV
235 format = HAL_PIXEL_FORMAT_EXYNOS_YV12;
237 format = HAL_PIXEL_FORMAT_YCbCr_420_SP; // NV12M
240 switch (format) {
263 return gralloc_alloc_framework_yuv(ionfd, w, h, format, usage,
274 ALOGE("invalid yuv format %d\n", format);
286 format, *stride, luma_vstride);
297 format, *stride, luma_vstride);
299 *hnd = new private_handle_t(fd, fd1, luma_size, usage, w, h, format,
323 int w, int h, int format, int usage,
342 err = gralloc_alloc_rgb(m->ionfd, w, h, format, usage, ion_flags, &hnd,
345 err = gralloc_alloc_yuv(m->ionfd, w, h, format, usage, ion_flags,