AnimEncoder API: Support input frames in YUV(A) format.

We automatically convert them to ARGB format.

Change-Id: Ia21f07e08c746e16a318cb035af375c81d9af0de
This commit is contained in:
Urvang Joshi
2015-03-10 11:27:09 -07:00
parent 44bd95612e
commit 0873f85b54
2 changed files with 15 additions and 3 deletions

View File

@ -473,7 +473,8 @@ static WEBP_INLINE WebPAnimEncoder* WebPAnimEncoderNew(
// WebPAnimEncoder object.
// Parameters:
// enc - (in/out) object to which the frame is to be added.
// frame - (in/out) frame data in ARGB or YUVA format.
// frame - (in/out) frame data in ARGB or YUV(A) format. If it is in YUV(A)
// format, it will be converted to ARGB, which incurs a small loss.
// duration - (in) frame duration
// config - (in) encoding options; can be passed NULL to pick
// reasonable defaults.