extern void xa_context_destroy(struct xa_context *r);
+/**
+ * xa_yuv_planar_blit - 2D blit with color conversion and scaling.
+ *
+ * Performs a scaled blit with color conversion according to
+ * (R,G,B,A)^T = (CM)^T (Y,U,V,1)^T, where @conversion_matrix or CM in the
+ * formula is a four by four coefficient matrix. The input variable
+ * @yuv is an array of three xa_yuv_component surfaces.
+ */
extern int xa_yuv_planar_blit(struct xa_context *r,
int src_x,
int src_y,
int to_surface, struct xa_box *boxes,
unsigned int num_boxes);
+extern void *xa_surface_map(struct xa_context *ctx,
+ struct xa_surface *srf, unsigned int usage);
+
+extern void xa_surface_unmap(struct xa_surface *srf);
+
extern int
xa_solid_prepare(struct xa_context *ctx, struct xa_surface *dst,
uint32_t fg);