summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/va_private.h
diff options
context:
space:
mode:
authorMichael Varga <[email protected]>2014-11-12 12:26:57 -0600
committerLeo Liu <[email protected]>2014-11-19 09:29:11 -0500
commit7523db174e0a8aaf12e111b094da404213862bf9 (patch)
tree919f1d6ea89f7cfd9a74c88021d4bc8d4c9070b6 /src/gallium/state_trackers/va/va_private.h
parent05e225b558a330994cacad5d97f640cff86b4aff (diff)
st/va: subpicture implementation
added BGRA format create/destroy set image associate/deassociate Signed-off-by: Michael Varga <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/va_private.h')
-rw-r--r--src/gallium/state_trackers/va/va_private.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index f250f74d2ef..1ea7be79aa3 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -41,6 +41,8 @@
#include "vl/vl_compositor.h"
#include "vl/vl_csc.h"
+#include "util/u_dynarray.h"
+
#define VL_VA_DRIVER(ctx) ((vlVaDriver *)ctx->pDriverData)
#define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)
@@ -155,6 +157,15 @@ typedef struct {
} vlVaDriver;
typedef struct {
+ VAImage *image;
+
+ struct u_rect src_rect;
+ struct u_rect dst_rect;
+
+ struct pipe_sampler_view *sampler;
+} vlVaSubpicture;
+
+typedef struct {
struct pipe_video_codec *decoder;
struct pipe_video_buffer *target;
union {
@@ -185,6 +196,7 @@ typedef struct {
typedef struct {
struct pipe_video_buffer templat, *buffer;
struct pipe_fence_handle *fence;
+ struct util_dynarray subpics; /* vlVaSubpicture */
} vlVaSurface;
// Public functions: