diff options
author | Kusanagi Kouichi <[email protected]> | 2014-03-07 11:07:48 +0900 |
---|---|---|
committer | Christian König <[email protected]> | 2014-03-07 09:20:11 +0100 |
commit | e7e207658c6adb3dfd98038c248efde70fd43056 (patch) | |
tree | 9dd9ec95bf2c4c7373ad9201d6afd004219d6708 /src/gallium/auxiliary/vl/vl_compositor.h | |
parent | 53d1d879d533db55eed806343f4de28e5d0ae49b (diff) |
vl: Add rotation v3
v2: rotate in gen_rect_verts instead
v3: clear rotate in vl_compositor_clear_layers,
update calc_drawn_area as well
Signed-off-by: Kusanagi Kouichi <[email protected]>
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_compositor.h')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.h b/src/gallium/auxiliary/vl/vl_compositor.h index 97cbef03fa0..934b634b390 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.h +++ b/src/gallium/auxiliary/vl/vl_compositor.h @@ -53,6 +53,15 @@ enum vl_compositor_deinterlace VL_COMPOSITOR_BOB_BOTTOM }; +/* clockwise degree */ +enum vl_compositor_rotation +{ + VL_COMPOSITOR_ROTATE_0, + VL_COMPOSITOR_ROTATE_90, + VL_COMPOSITOR_ROTATE_180, + VL_COMPOSITOR_ROTATE_270 +}; + struct vl_compositor_layer { bool clearing; @@ -70,6 +79,7 @@ struct vl_compositor_layer } src, dst; struct vertex2f zw; struct vertex4f colors[4]; + enum vl_compositor_rotation rotate; }; struct vl_compositor_state @@ -216,6 +226,14 @@ vl_compositor_set_rgba_layer(struct vl_compositor_state *state, struct u_rect *dst_rect, struct vertex4f *colors); +/** + * set the layer rotation + */ +void +vl_compositor_set_layer_rotation(struct vl_compositor_state *state, + unsigned layer, + enum vl_compositor_rotation rotate); + /*@}*/ /** |