Commit f78f3ed3 authored by Jean-Paul Saman's avatar Jean-Paul Saman

vaapi-x11.c: vaSetImagePalette() fails.

Setting the palette does not work and the function always returns with
status VA_STATUS_ERROR_OPERATION_FAILED. Re-enable when figure out how
it should be used then.
parent 4f0330dd
......@@ -647,7 +647,7 @@ static VAStatus SubpictureUnlink( vlc_va_conn_t *p_connection, VASurfaceID surfa
}
return status;
}
#if 0
static void CopyPalette(vout_display_t *vd, VAImage *image, video_palette_t *p_palette)
{
vout_display_sys_t *sys = vd->sys;
......@@ -689,6 +689,7 @@ static void CopyPalette(vout_display_t *vd, VAImage *image, video_palette_t *p_p
if (status != VA_STATUS_SUCCESS)
msg_Err(vd, "failed setting palette. (%d)", status);
}
#endif
static int CopyPictureToVAImage(vout_display_t *vd, picture_t *pic,
VAImage *image, VAImageFormat *fmt)
......@@ -728,10 +729,10 @@ static int CopyPictureToVAImage(vout_display_t *vd, picture_t *pic,
image->num_palette_entries = 0;
image->entry_bytes = 0;
#if 0 /* FIXME: does not work */
if (pic->format.p_palette)
CopyPalette(vd, image, pic->format.p_palette);
#endif
void *p_base;
status = vaMapBuffer(sys->conn->p_display, image->buf, &p_base);
if (status != VA_STATUS_SUCCESS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment