st/xa: Link with -Wl,-r instead of -r.
[mesa.git] / src / gallium / state_trackers / xa / xa_context.h
index ea2b923a5a11d73ca7e4b5ba9dbd891ab7c95826..b547abf96a33d7f5ecd98232c08dc5e78ba9c75e 100644 (file)
@@ -40,6 +40,14 @@ extern struct xa_context *xa_context_create(struct xa_tracker *xa);
 
 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,
@@ -69,6 +77,11 @@ extern int xa_surface_dma(struct xa_context *ctx,
                          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);