Added VACodedBufferSegment
authorAustin Yuan <shengquan.yuan@gmail.com>
Tue, 27 Apr 2010 00:04:45 +0000 (08:04 +0800)
committerAustin Yuan <shengquan.yuan@gmail.com>
Tue, 27 Apr 2010 00:04:45 +0000 (08:04 +0800)
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
va/va.h

diff --git a/va/va.h b/va/va.h
index ab4162e..de962df 100644 (file)
--- a/va/va.h
+++ b/va/va.h
@@ -1221,10 +1221,24 @@ VAStatus vaBufferSetNumElements (
     unsigned int num_elements /* in */
 );
 
+
+/*
+ * device independent data structure for codedbuffer
+ */
+typedef  struct _VACodedBufferSegment {
+    unsigned int size; /* size of the data buffer in the coded buffer segment, in bytes */
+    unsigned int bit_offset;/* bit offset into the data buffer where valid bitstream data begins */
+    void *buf; /* pointer to the beginning of the data buffer in the coded buffer segment */
+    void *next; /* pointer to the next VACodedBufferSegment */
+} VACodedBufferSegment;
+     
 /*
  * Map data store of the buffer into the client's address space
  * vaCreateBuffer() needs to be called with "data" set to NULL before
  * calling vaMapBuffer()
+ *
+ * if buffer type is VAEncCodedBufferType, pbuf points to link-list of
+ * VACodedBufferSegment, and the list is terminated if "next" is NULL
  */
 VAStatus vaMapBuffer (
     VADisplay dpy,