summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-02-16 08:37:07 -0500
committerAustin Yuan <shengquan.yuan@intel.com>2009-02-16 08:37:07 -0500
commitad7f7f2b72da6e5b632ebed6878e84d7c3527beb (patch)
tree0f53912b62c5d1287ed0ee76b9de5c0a38d68bd0
parent939437e3fc617cdbc0e258d6f6ea51238341a307 (diff)
clean vaDbyCreateSurfaceFromMrstV4L2Buf
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--src/va.c16
-rwxr-xr-xsrc/va_backend.h10
2 files changed, 19 insertions, 7 deletions
diff --git a/src/va.c b/src/va.c
index 3e8a799..4e58dd3 100644
--- a/src/va.c
+++ b/src/va.c
@@ -1271,13 +1271,19 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy,
return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride );
}
-
-VAStatus vaDbgCreateSurfaceFromUB(
+#warning TODO: Remove vaDbgCreateSurfaceFromMrstV4L2Buf in rev 0.29
+VAStatus vaDbgCreateSurfaceFromMrstV4L2Buf(
VADisplay dpy,
unsigned int width,
unsigned int height,
unsigned int size,
- void *start,
+ unsigned int fourcc,
+ unsigned int luma_stride,
+ unsigned int chroma_u_stride,
+ unsigned int chroma_v_stride,
+ unsigned int luma_offset,
+ unsigned int chroma_u_offset,
+ unsigned int chroma_v_offset,
VASurfaceID *surface /* out */
)
{
@@ -1285,7 +1291,7 @@ VAStatus vaDbgCreateSurfaceFromUB(
CHECK_DISPLAY(dpy);
ctx = CTX(dpy);
- TRACE(vaDbgCreateSurfaceFromUB);
- return ctx->vtable.vaDbgCreateSurfaceFromUB( ctx, width, height, size, start, surface );
+ TRACE(vtable.vaDbgCreateSurfaceFromMrstV4L2Buf);
+ return ctx->vtable.vaDbgCreateSurfaceFromMrstV4L2Buf( ctx, width, height, size, fourcc, luma_stride, chroma_u_stride, chroma_v_stride, luma_offset, chroma_u_offset, chroma_v_offset, surface );
}
diff --git a/src/va_backend.h b/src/va_backend.h
index 7411eac..7f1f6a2 100755
--- a/src/va_backend.h
+++ b/src/va_backend.h
@@ -393,12 +393,18 @@ struct VADriverVTable
void **buffer, /* out */
unsigned int *stride /* out */
);
- VAStatus (*vaDbgCreateSurfaceFromUB) (
+ VAStatus (*vaDbgCreateSurfaceFromMrstV4L2Buf) (
VADriverContextP ctx,
unsigned int width,
unsigned int height,
unsigned int size,
- void *start,
+ unsigned int fourcc,
+ unsigned int luma_stride,
+ unsigned int chroma_u_stride,
+ unsigned int chroma_v_stride,
+ unsigned int luma_offset,
+ unsigned int chroma_u_offset,
+ unsigned int chroma_v_offset,
VASurfaceID *surface /* out */
);
};