add a stride 'a_stride' for the alpha plane

(instead of hardcoding it to 'width')

Change-Id: Ibce97285bfe8ff4aea45b5797f53a53d3f60adab
This commit is contained in:
Pascal Massimino
2011-04-26 07:23:57 -07:00
parent b8dcbf2f35
commit 8fd42b3a81
2 changed files with 22 additions and 14 deletions

View File

@ -136,7 +136,8 @@ struct WebPPicture {
int width, height; // dimensions.
uint8_t *y, *u, *v; // pointers to luma/chroma planes.
int y_stride, uv_stride; // luma/chroma strides.
uint8_t *a; // pointer to the width x height alpha plane
uint8_t *a; // pointer to the alpha plane
int a_stride; // stride of the alpha plane
// output
WebPWriterFunction writer; // can be NULL