From: Austin Yuan Date: Tue, 27 Apr 2010 00:04:45 +0000 (+0800) Subject: Added VACodedBufferSegment X-Git-Tag: PO-ww19.3-new~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be467652b91634b7f6c8989a78c25469ffc1827e;p=profile%2Fivi%2Flibva.git Added VACodedBufferSegment Signed-off-by: Austin Yuan --- diff --git a/va/va.h b/va/va.h index ab4162e..de962df 100644 --- 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,