summaryrefslogtreecommitdiff
path: root/src/va_backend.h
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-06-20 02:20:52 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2009-06-20 02:20:52 +0800
commit69d3a3c349b0b8c4aad4f8bb6454b3a8033c25de (patch)
tree205849e68b227049450fff9255d49990ca581808 /src/va_backend.h
parentc21aaad55d016ef0c5d0d1ebc1772c3f3d5d8cb5 (diff)
downloadlibva-69d3a3c349b0b8c4aad4f8bb6454b3a8033c25de.tar.gz
Proposed new vaCreateSurfaceFromV4L2Buffer to replace origin vaCreateSurfaceFromMrstV4L2 buffer to make it more generic
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'src/va_backend.h')
-rwxr-xr-xsrc/va_backend.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/va_backend.h b/src/va_backend.h
index fee5181..f8456ad 100755
--- a/src/va_backend.h
+++ b/src/va_backend.h
@@ -38,6 +38,7 @@
#endif
#include <stdlib.h>
+#include <linux/videodev2.h>
typedef struct VADriverContext *VADriverContextP;
@@ -382,19 +383,12 @@ struct VADriverVTable
);
- VAStatus (*vaCreateSurfaceFromMrstV4L2Buf) (
- VADriverContextP ctx,
- unsigned int width,
- unsigned int height,
- unsigned int size,
- 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 */
+ VAStatus (*vaCreateSurfaceFromV4L2Buf) (
+ VADriverContextP ctx,
+ int v4l2_fd, /* file descriptor of V4L2 device */
+ struct v4l2_format *v4l2_fmt, /* format of V4L2 */
+ struct v4l2_buffer *v4l2_buf, /* V4L2 buffer */
+ VASurfaceID *surface /* out */
);
VAStatus (*vaCopySurfaceToBuffer) (