Lines Matching refs:surface_image
2159 VAImage surface_image; in upload_yuv_to_surface() local
2174 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); in upload_yuv_to_surface()
2177 vaMapBuffer(va_dpy, surface_image.buf, &surface_p); in upload_yuv_to_surface()
2184 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()
2189 for (row = 0; row < surface_image.height; row++) { in upload_yuv_to_surface()
2190 memcpy(y_dst, y_src, surface_image.width); in upload_yuv_to_surface()
2191 y_dst += surface_image.pitches[0]; in upload_yuv_to_surface()
2199 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane */ in upload_yuv_to_surface()
2200 for (row = 0; row < surface_image.height / 2; row++) { in upload_yuv_to_surface()
2201 for (col = 0; col < surface_image.width / 2; col++) { in upload_yuv_to_surface()
2206 u_dst += surface_image.pitches[1]; in upload_yuv_to_surface()
2215 vaUnmapBuffer(va_dpy, surface_image.buf); in upload_yuv_to_surface()
2216 vaDestroyImage(va_dpy, surface_image.image_id); in upload_yuv_to_surface()