mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 22:09:57 +02:00
Alpha flag fix for lossless.
- Make sure alpha flag is set in case of a lossless file with VP8X chunk. The semantic of ALPHA_FLAG changes with this: it means the images contain alpha (rather than ALPH chunk in particular). - Update the mux container spec to add 1-line description of alpha flag. - Rename "HasLosslessImages()" to "MuxHasLosslessImages()", and other similar function renames. - Rename FeatureFlags to WebPFeatureFlags - Elaborated a comment for a special case. - A misc comment fix. Change-Id: If212ccf4338c125b4c71c10bf281a51b3ba7ff45
This commit is contained in:
@ -257,19 +257,22 @@ size_t MuxImageListDiskSize(const WebPMuxImage* wpi_list);
|
||||
// Write out the given list of images into 'dst'.
|
||||
uint8_t* MuxImageListEmit(const WebPMuxImage* wpi_list, uint8_t* dst);
|
||||
|
||||
// Checks if the given image list contains at least one lossless image.
|
||||
int MuxHasLosslessImages(const WebPMuxImage* images);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Helper methods for mux.
|
||||
|
||||
// Returns the list where chunk with given ID is to be inserted in mux.
|
||||
// Return value is NULL if this chunk should be inserted in mux->images_ list
|
||||
// or if 'id' is not known.
|
||||
WebPChunk** GetChunkListFromId(const WebPMux* mux, TAG_ID id);
|
||||
WebPChunk** MuxGetChunkListFromId(const WebPMux* mux, TAG_ID id);
|
||||
|
||||
// Validates that the given mux has a single image.
|
||||
WebPMuxError ValidateForImage(const WebPMux* const mux);
|
||||
WebPMuxError MuxValidateForImage(const WebPMux* const mux);
|
||||
|
||||
// Validates the given mux object.
|
||||
WebPMuxError WebPMuxValidate(const WebPMux* const mux);
|
||||
WebPMuxError MuxValidate(const WebPMux* const mux);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user