Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/webp
File: demux.h
// Copyright 2012 Google Inc. All Rights Reserved.
[0] Fix | Delete
//
[1] Fix | Delete
// Use of this source code is governed by a BSD-style license
[2] Fix | Delete
// that can be found in the COPYING file in the root of the source
[3] Fix | Delete
// tree. An additional intellectual property rights grant can be found
[4] Fix | Delete
// in the file PATENTS. All contributing project authors may
[5] Fix | Delete
// be found in the AUTHORS file in the root of the source tree.
[6] Fix | Delete
// -----------------------------------------------------------------------------
[7] Fix | Delete
//
[8] Fix | Delete
// Demux API.
[9] Fix | Delete
// Enables extraction of image and extended format data from WebP files.
[10] Fix | Delete
[11] Fix | Delete
// Code Example: Demuxing WebP data to extract all the frames, ICC profile
[12] Fix | Delete
// and EXIF/XMP metadata.
[13] Fix | Delete
/*
[14] Fix | Delete
WebPDemuxer* demux = WebPDemux(&webp_data);
[15] Fix | Delete
[16] Fix | Delete
uint32_t width = WebPDemuxGetI(demux, WEBP_FF_CANVAS_WIDTH);
[17] Fix | Delete
uint32_t height = WebPDemuxGetI(demux, WEBP_FF_CANVAS_HEIGHT);
[18] Fix | Delete
// ... (Get information about the features present in the WebP file).
[19] Fix | Delete
uint32_t flags = WebPDemuxGetI(demux, WEBP_FF_FORMAT_FLAGS);
[20] Fix | Delete
[21] Fix | Delete
// ... (Iterate over all frames).
[22] Fix | Delete
WebPIterator iter;
[23] Fix | Delete
if (WebPDemuxGetFrame(demux, 1, &iter)) {
[24] Fix | Delete
do {
[25] Fix | Delete
// ... (Consume 'iter'; e.g. Decode 'iter.fragment' with WebPDecode(),
[26] Fix | Delete
// ... and get other frame properties like width, height, offsets etc.
[27] Fix | Delete
// ... see 'struct WebPIterator' below for more info).
[28] Fix | Delete
} while (WebPDemuxNextFrame(&iter));
[29] Fix | Delete
WebPDemuxReleaseIterator(&iter);
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
// ... (Extract metadata).
[33] Fix | Delete
WebPChunkIterator chunk_iter;
[34] Fix | Delete
if (flags & ICCP_FLAG) WebPDemuxGetChunk(demux, "ICCP", 1, &chunk_iter);
[35] Fix | Delete
// ... (Consume the ICC profile in 'chunk_iter.chunk').
[36] Fix | Delete
WebPDemuxReleaseChunkIterator(&chunk_iter);
[37] Fix | Delete
if (flags & EXIF_FLAG) WebPDemuxGetChunk(demux, "EXIF", 1, &chunk_iter);
[38] Fix | Delete
// ... (Consume the EXIF metadata in 'chunk_iter.chunk').
[39] Fix | Delete
WebPDemuxReleaseChunkIterator(&chunk_iter);
[40] Fix | Delete
if (flags & XMP_FLAG) WebPDemuxGetChunk(demux, "XMP ", 1, &chunk_iter);
[41] Fix | Delete
// ... (Consume the XMP metadata in 'chunk_iter.chunk').
[42] Fix | Delete
WebPDemuxReleaseChunkIterator(&chunk_iter);
[43] Fix | Delete
WebPDemuxDelete(demux);
[44] Fix | Delete
*/
[45] Fix | Delete
[46] Fix | Delete
#ifndef WEBP_WEBP_DEMUX_H_
[47] Fix | Delete
#define WEBP_WEBP_DEMUX_H_
[48] Fix | Delete
[49] Fix | Delete
#include "./decode.h" // for WEBP_CSP_MODE
[50] Fix | Delete
#include "./mux_types.h"
[51] Fix | Delete
[52] Fix | Delete
#ifdef __cplusplus
[53] Fix | Delete
extern "C" {
[54] Fix | Delete
#endif
[55] Fix | Delete
[56] Fix | Delete
#define WEBP_DEMUX_ABI_VERSION 0x0107 // MAJOR(8b) + MINOR(8b)
[57] Fix | Delete
[58] Fix | Delete
// Note: forward declaring enumerations is not allowed in (strict) C and C++,
[59] Fix | Delete
// the types are left here for reference.
[60] Fix | Delete
// typedef enum WebPDemuxState WebPDemuxState;
[61] Fix | Delete
// typedef enum WebPFormatFeature WebPFormatFeature;
[62] Fix | Delete
typedef struct WebPDemuxer WebPDemuxer;
[63] Fix | Delete
typedef struct WebPIterator WebPIterator;
[64] Fix | Delete
typedef struct WebPChunkIterator WebPChunkIterator;
[65] Fix | Delete
typedef struct WebPAnimInfo WebPAnimInfo;
[66] Fix | Delete
typedef struct WebPAnimDecoderOptions WebPAnimDecoderOptions;
[67] Fix | Delete
[68] Fix | Delete
//------------------------------------------------------------------------------
[69] Fix | Delete
[70] Fix | Delete
// Returns the version number of the demux library, packed in hexadecimal using
[71] Fix | Delete
// 8bits for each of major/minor/revision. E.g: v2.5.7 is 0x020507.
[72] Fix | Delete
WEBP_EXTERN int WebPGetDemuxVersion(void);
[73] Fix | Delete
[74] Fix | Delete
//------------------------------------------------------------------------------
[75] Fix | Delete
// Life of a Demux object
[76] Fix | Delete
[77] Fix | Delete
typedef enum WebPDemuxState {
[78] Fix | Delete
WEBP_DEMUX_PARSE_ERROR = -1, // An error occurred while parsing.
[79] Fix | Delete
WEBP_DEMUX_PARSING_HEADER = 0, // Not enough data to parse full header.
[80] Fix | Delete
WEBP_DEMUX_PARSED_HEADER = 1, // Header parsing complete,
[81] Fix | Delete
// data may be available.
[82] Fix | Delete
WEBP_DEMUX_DONE = 2 // Entire file has been parsed.
[83] Fix | Delete
} WebPDemuxState;
[84] Fix | Delete
[85] Fix | Delete
// Internal, version-checked, entry point
[86] Fix | Delete
WEBP_EXTERN WebPDemuxer* WebPDemuxInternal(
[87] Fix | Delete
const WebPData*, int, WebPDemuxState*, int);
[88] Fix | Delete
[89] Fix | Delete
// Parses the full WebP file given by 'data'. For single images the WebP file
[90] Fix | Delete
// header alone or the file header and the chunk header may be absent.
[91] Fix | Delete
// Returns a WebPDemuxer object on successful parse, NULL otherwise.
[92] Fix | Delete
static WEBP_INLINE WebPDemuxer* WebPDemux(const WebPData* data) {
[93] Fix | Delete
return WebPDemuxInternal(data, 0, NULL, WEBP_DEMUX_ABI_VERSION);
[94] Fix | Delete
}
[95] Fix | Delete
[96] Fix | Delete
// Parses the possibly incomplete WebP file given by 'data'.
[97] Fix | Delete
// If 'state' is non-NULL it will be set to indicate the status of the demuxer.
[98] Fix | Delete
// Returns NULL in case of error or if there isn't enough data to start parsing;
[99] Fix | Delete
// and a WebPDemuxer object on successful parse.
[100] Fix | Delete
// Note that WebPDemuxer keeps internal pointers to 'data' memory segment.
[101] Fix | Delete
// If this data is volatile, the demuxer object should be deleted (by calling
[102] Fix | Delete
// WebPDemuxDelete()) and WebPDemuxPartial() called again on the new data.
[103] Fix | Delete
// This is usually an inexpensive operation.
[104] Fix | Delete
static WEBP_INLINE WebPDemuxer* WebPDemuxPartial(
[105] Fix | Delete
const WebPData* data, WebPDemuxState* state) {
[106] Fix | Delete
return WebPDemuxInternal(data, 1, state, WEBP_DEMUX_ABI_VERSION);
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
// Frees memory associated with 'dmux'.
[110] Fix | Delete
WEBP_EXTERN void WebPDemuxDelete(WebPDemuxer* dmux);
[111] Fix | Delete
[112] Fix | Delete
//------------------------------------------------------------------------------
[113] Fix | Delete
// Data/information extraction.
[114] Fix | Delete
[115] Fix | Delete
typedef enum WebPFormatFeature {
[116] Fix | Delete
WEBP_FF_FORMAT_FLAGS, // bit-wise combination of WebPFeatureFlags
[117] Fix | Delete
// corresponding to the 'VP8X' chunk (if present).
[118] Fix | Delete
WEBP_FF_CANVAS_WIDTH,
[119] Fix | Delete
WEBP_FF_CANVAS_HEIGHT,
[120] Fix | Delete
WEBP_FF_LOOP_COUNT, // only relevant for animated file
[121] Fix | Delete
WEBP_FF_BACKGROUND_COLOR, // idem.
[122] Fix | Delete
WEBP_FF_FRAME_COUNT // Number of frames present in the demux object.
[123] Fix | Delete
// In case of a partial demux, this is the number
[124] Fix | Delete
// of frames seen so far, with the last frame
[125] Fix | Delete
// possibly being partial.
[126] Fix | Delete
} WebPFormatFeature;
[127] Fix | Delete
[128] Fix | Delete
// Get the 'feature' value from the 'dmux'.
[129] Fix | Delete
// NOTE: values are only valid if WebPDemux() was used or WebPDemuxPartial()
[130] Fix | Delete
// returned a state > WEBP_DEMUX_PARSING_HEADER.
[131] Fix | Delete
// If 'feature' is WEBP_FF_FORMAT_FLAGS, the returned value is a bit-wise
[132] Fix | Delete
// combination of WebPFeatureFlags values.
[133] Fix | Delete
// If 'feature' is WEBP_FF_LOOP_COUNT, WEBP_FF_BACKGROUND_COLOR, the returned
[134] Fix | Delete
// value is only meaningful if the bitstream is animated.
[135] Fix | Delete
WEBP_EXTERN uint32_t WebPDemuxGetI(
[136] Fix | Delete
const WebPDemuxer* dmux, WebPFormatFeature feature);
[137] Fix | Delete
[138] Fix | Delete
//------------------------------------------------------------------------------
[139] Fix | Delete
// Frame iteration.
[140] Fix | Delete
[141] Fix | Delete
struct WebPIterator {
[142] Fix | Delete
int frame_num;
[143] Fix | Delete
int num_frames; // equivalent to WEBP_FF_FRAME_COUNT.
[144] Fix | Delete
int x_offset, y_offset; // offset relative to the canvas.
[145] Fix | Delete
int width, height; // dimensions of this frame.
[146] Fix | Delete
int duration; // display duration in milliseconds.
[147] Fix | Delete
WebPMuxAnimDispose dispose_method; // dispose method for the frame.
[148] Fix | Delete
int complete; // true if 'fragment' contains a full frame. partial images
[149] Fix | Delete
// may still be decoded with the WebP incremental decoder.
[150] Fix | Delete
WebPData fragment; // The frame given by 'frame_num'. Note for historical
[151] Fix | Delete
// reasons this is called a fragment.
[152] Fix | Delete
int has_alpha; // True if the frame contains transparency.
[153] Fix | Delete
WebPMuxAnimBlend blend_method; // Blend operation for the frame.
[154] Fix | Delete
[155] Fix | Delete
uint32_t pad[2]; // padding for later use.
[156] Fix | Delete
void* private_; // for internal use only.
[157] Fix | Delete
};
[158] Fix | Delete
[159] Fix | Delete
// Retrieves frame 'frame_number' from 'dmux'.
[160] Fix | Delete
// 'iter->fragment' points to the frame on return from this function.
[161] Fix | Delete
// Setting 'frame_number' equal to 0 will return the last frame of the image.
[162] Fix | Delete
// Returns false if 'dmux' is NULL or frame 'frame_number' is not present.
[163] Fix | Delete
// Call WebPDemuxReleaseIterator() when use of the iterator is complete.
[164] Fix | Delete
// NOTE: 'dmux' must persist for the lifetime of 'iter'.
[165] Fix | Delete
WEBP_EXTERN int WebPDemuxGetFrame(
[166] Fix | Delete
const WebPDemuxer* dmux, int frame_number, WebPIterator* iter);
[167] Fix | Delete
[168] Fix | Delete
// Sets 'iter->fragment' to point to the next ('iter->frame_num' + 1) or
[169] Fix | Delete
// previous ('iter->frame_num' - 1) frame. These functions do not loop.
[170] Fix | Delete
// Returns true on success, false otherwise.
[171] Fix | Delete
WEBP_EXTERN int WebPDemuxNextFrame(WebPIterator* iter);
[172] Fix | Delete
WEBP_EXTERN int WebPDemuxPrevFrame(WebPIterator* iter);
[173] Fix | Delete
[174] Fix | Delete
// Releases any memory associated with 'iter'.
[175] Fix | Delete
// Must be called before any subsequent calls to WebPDemuxGetChunk() on the same
[176] Fix | Delete
// iter. Also, must be called before destroying the associated WebPDemuxer with
[177] Fix | Delete
// WebPDemuxDelete().
[178] Fix | Delete
WEBP_EXTERN void WebPDemuxReleaseIterator(WebPIterator* iter);
[179] Fix | Delete
[180] Fix | Delete
//------------------------------------------------------------------------------
[181] Fix | Delete
// Chunk iteration.
[182] Fix | Delete
[183] Fix | Delete
struct WebPChunkIterator {
[184] Fix | Delete
// The current and total number of chunks with the fourcc given to
[185] Fix | Delete
// WebPDemuxGetChunk().
[186] Fix | Delete
int chunk_num;
[187] Fix | Delete
int num_chunks;
[188] Fix | Delete
WebPData chunk; // The payload of the chunk.
[189] Fix | Delete
[190] Fix | Delete
uint32_t pad[6]; // padding for later use
[191] Fix | Delete
void* private_;
[192] Fix | Delete
};
[193] Fix | Delete
[194] Fix | Delete
// Retrieves the 'chunk_number' instance of the chunk with id 'fourcc' from
[195] Fix | Delete
// 'dmux'.
[196] Fix | Delete
// 'fourcc' is a character array containing the fourcc of the chunk to return,
[197] Fix | Delete
// e.g., "ICCP", "XMP ", "EXIF", etc.
[198] Fix | Delete
// Setting 'chunk_number' equal to 0 will return the last chunk in a set.
[199] Fix | Delete
// Returns true if the chunk is found, false otherwise. Image related chunk
[200] Fix | Delete
// payloads are accessed through WebPDemuxGetFrame() and related functions.
[201] Fix | Delete
// Call WebPDemuxReleaseChunkIterator() when use of the iterator is complete.
[202] Fix | Delete
// NOTE: 'dmux' must persist for the lifetime of the iterator.
[203] Fix | Delete
WEBP_EXTERN int WebPDemuxGetChunk(const WebPDemuxer* dmux,
[204] Fix | Delete
const char fourcc[4], int chunk_number,
[205] Fix | Delete
WebPChunkIterator* iter);
[206] Fix | Delete
[207] Fix | Delete
// Sets 'iter->chunk' to point to the next ('iter->chunk_num' + 1) or previous
[208] Fix | Delete
// ('iter->chunk_num' - 1) chunk. These functions do not loop.
[209] Fix | Delete
// Returns true on success, false otherwise.
[210] Fix | Delete
WEBP_EXTERN int WebPDemuxNextChunk(WebPChunkIterator* iter);
[211] Fix | Delete
WEBP_EXTERN int WebPDemuxPrevChunk(WebPChunkIterator* iter);
[212] Fix | Delete
[213] Fix | Delete
// Releases any memory associated with 'iter'.
[214] Fix | Delete
// Must be called before destroying the associated WebPDemuxer with
[215] Fix | Delete
// WebPDemuxDelete().
[216] Fix | Delete
WEBP_EXTERN void WebPDemuxReleaseChunkIterator(WebPChunkIterator* iter);
[217] Fix | Delete
[218] Fix | Delete
//------------------------------------------------------------------------------
[219] Fix | Delete
// WebPAnimDecoder API
[220] Fix | Delete
//
[221] Fix | Delete
// This API allows decoding (possibly) animated WebP images.
[222] Fix | Delete
//
[223] Fix | Delete
// Code Example:
[224] Fix | Delete
/*
[225] Fix | Delete
WebPAnimDecoderOptions dec_options;
[226] Fix | Delete
WebPAnimDecoderOptionsInit(&dec_options);
[227] Fix | Delete
// Tune 'dec_options' as needed.
[228] Fix | Delete
WebPAnimDecoder* dec = WebPAnimDecoderNew(webp_data, &dec_options);
[229] Fix | Delete
WebPAnimInfo anim_info;
[230] Fix | Delete
WebPAnimDecoderGetInfo(dec, &anim_info);
[231] Fix | Delete
for (uint32_t i = 0; i < anim_info.loop_count; ++i) {
[232] Fix | Delete
while (WebPAnimDecoderHasMoreFrames(dec)) {
[233] Fix | Delete
uint8_t* buf;
[234] Fix | Delete
int timestamp;
[235] Fix | Delete
WebPAnimDecoderGetNext(dec, &buf, &timestamp);
[236] Fix | Delete
// ... (Render 'buf' based on 'timestamp').
[237] Fix | Delete
// ... (Do NOT free 'buf', as it is owned by 'dec').
[238] Fix | Delete
}
[239] Fix | Delete
WebPAnimDecoderReset(dec);
[240] Fix | Delete
}
[241] Fix | Delete
const WebPDemuxer* demuxer = WebPAnimDecoderGetDemuxer(dec);
[242] Fix | Delete
// ... (Do something using 'demuxer'; e.g. get EXIF/XMP/ICC data).
[243] Fix | Delete
WebPAnimDecoderDelete(dec);
[244] Fix | Delete
*/
[245] Fix | Delete
[246] Fix | Delete
typedef struct WebPAnimDecoder WebPAnimDecoder; // Main opaque object.
[247] Fix | Delete
[248] Fix | Delete
// Global options.
[249] Fix | Delete
struct WebPAnimDecoderOptions {
[250] Fix | Delete
// Output colorspace. Only the following modes are supported:
[251] Fix | Delete
// MODE_RGBA, MODE_BGRA, MODE_rgbA and MODE_bgrA.
[252] Fix | Delete
WEBP_CSP_MODE color_mode;
[253] Fix | Delete
int use_threads; // If true, use multi-threaded decoding.
[254] Fix | Delete
uint32_t padding[7]; // Padding for later use.
[255] Fix | Delete
};
[256] Fix | Delete
[257] Fix | Delete
// Internal, version-checked, entry point.
[258] Fix | Delete
WEBP_EXTERN int WebPAnimDecoderOptionsInitInternal(
[259] Fix | Delete
WebPAnimDecoderOptions*, int);
[260] Fix | Delete
[261] Fix | Delete
// Should always be called, to initialize a fresh WebPAnimDecoderOptions
[262] Fix | Delete
// structure before modification. Returns false in case of version mismatch.
[263] Fix | Delete
// WebPAnimDecoderOptionsInit() must have succeeded before using the
[264] Fix | Delete
// 'dec_options' object.
[265] Fix | Delete
static WEBP_INLINE int WebPAnimDecoderOptionsInit(
[266] Fix | Delete
WebPAnimDecoderOptions* dec_options) {
[267] Fix | Delete
return WebPAnimDecoderOptionsInitInternal(dec_options,
[268] Fix | Delete
WEBP_DEMUX_ABI_VERSION);
[269] Fix | Delete
}
[270] Fix | Delete
[271] Fix | Delete
// Internal, version-checked, entry point.
[272] Fix | Delete
WEBP_EXTERN WebPAnimDecoder* WebPAnimDecoderNewInternal(
[273] Fix | Delete
const WebPData*, const WebPAnimDecoderOptions*, int);
[274] Fix | Delete
[275] Fix | Delete
// Creates and initializes a WebPAnimDecoder object.
[276] Fix | Delete
// Parameters:
[277] Fix | Delete
// webp_data - (in) WebP bitstream. This should remain unchanged during the
[278] Fix | Delete
// lifetime of the output WebPAnimDecoder object.
[279] Fix | Delete
// dec_options - (in) decoding options. Can be passed NULL to choose
[280] Fix | Delete
// reasonable defaults (in particular, color mode MODE_RGBA
[281] Fix | Delete
// will be picked).
[282] Fix | Delete
// Returns:
[283] Fix | Delete
// A pointer to the newly created WebPAnimDecoder object, or NULL in case of
[284] Fix | Delete
// parsing error, invalid option or memory error.
[285] Fix | Delete
static WEBP_INLINE WebPAnimDecoder* WebPAnimDecoderNew(
[286] Fix | Delete
const WebPData* webp_data, const WebPAnimDecoderOptions* dec_options) {
[287] Fix | Delete
return WebPAnimDecoderNewInternal(webp_data, dec_options,
[288] Fix | Delete
WEBP_DEMUX_ABI_VERSION);
[289] Fix | Delete
}
[290] Fix | Delete
[291] Fix | Delete
// Global information about the animation..
[292] Fix | Delete
struct WebPAnimInfo {
[293] Fix | Delete
uint32_t canvas_width;
[294] Fix | Delete
uint32_t canvas_height;
[295] Fix | Delete
uint32_t loop_count;
[296] Fix | Delete
uint32_t bgcolor;
[297] Fix | Delete
uint32_t frame_count;
[298] Fix | Delete
uint32_t pad[4]; // padding for later use
[299] Fix | Delete
};
[300] Fix | Delete
[301] Fix | Delete
// Get global information about the animation.
[302] Fix | Delete
// Parameters:
[303] Fix | Delete
// dec - (in) decoder instance to get information from.
[304] Fix | Delete
// info - (out) global information fetched from the animation.
[305] Fix | Delete
// Returns:
[306] Fix | Delete
// True on success.
[307] Fix | Delete
WEBP_EXTERN int WebPAnimDecoderGetInfo(const WebPAnimDecoder* dec,
[308] Fix | Delete
WebPAnimInfo* info);
[309] Fix | Delete
[310] Fix | Delete
// Fetch the next frame from 'dec' based on options supplied to
[311] Fix | Delete
// WebPAnimDecoderNew(). This will be a fully reconstructed canvas of size
[312] Fix | Delete
// 'canvas_width * 4 * canvas_height', and not just the frame sub-rectangle. The
[313] Fix | Delete
// returned buffer 'buf' is valid only until the next call to
[314] Fix | Delete
// WebPAnimDecoderGetNext(), WebPAnimDecoderReset() or WebPAnimDecoderDelete().
[315] Fix | Delete
// Parameters:
[316] Fix | Delete
// dec - (in/out) decoder instance from which the next frame is to be fetched.
[317] Fix | Delete
// buf - (out) decoded frame.
[318] Fix | Delete
// timestamp - (out) timestamp of the frame in milliseconds.
[319] Fix | Delete
// Returns:
[320] Fix | Delete
// False if any of the arguments are NULL, or if there is a parsing or
[321] Fix | Delete
// decoding error, or if there are no more frames. Otherwise, returns true.
[322] Fix | Delete
WEBP_EXTERN int WebPAnimDecoderGetNext(WebPAnimDecoder* dec,
[323] Fix | Delete
uint8_t** buf, int* timestamp);
[324] Fix | Delete
[325] Fix | Delete
// Check if there are more frames left to decode.
[326] Fix | Delete
// Parameters:
[327] Fix | Delete
// dec - (in) decoder instance to be checked.
[328] Fix | Delete
// Returns:
[329] Fix | Delete
// True if 'dec' is not NULL and some frames are yet to be decoded.
[330] Fix | Delete
// Otherwise, returns false.
[331] Fix | Delete
WEBP_EXTERN int WebPAnimDecoderHasMoreFrames(const WebPAnimDecoder* dec);
[332] Fix | Delete
[333] Fix | Delete
// Resets the WebPAnimDecoder object, so that next call to
[334] Fix | Delete
// WebPAnimDecoderGetNext() will restart decoding from 1st frame. This would be
[335] Fix | Delete
// helpful when all frames need to be decoded multiple times (e.g.
[336] Fix | Delete
// info.loop_count times) without destroying and recreating the 'dec' object.
[337] Fix | Delete
// Parameters:
[338] Fix | Delete
// dec - (in/out) decoder instance to be reset
[339] Fix | Delete
WEBP_EXTERN void WebPAnimDecoderReset(WebPAnimDecoder* dec);
[340] Fix | Delete
[341] Fix | Delete
// Grab the internal demuxer object.
[342] Fix | Delete
// Getting the demuxer object can be useful if one wants to use operations only
[343] Fix | Delete
// available through demuxer; e.g. to get XMP/EXIF/ICC metadata. The returned
[344] Fix | Delete
// demuxer object is owned by 'dec' and is valid only until the next call to
[345] Fix | Delete
// WebPAnimDecoderDelete().
[346] Fix | Delete
//
[347] Fix | Delete
// Parameters:
[348] Fix | Delete
// dec - (in) decoder instance from which the demuxer object is to be fetched.
[349] Fix | Delete
WEBP_EXTERN const WebPDemuxer* WebPAnimDecoderGetDemuxer(
[350] Fix | Delete
const WebPAnimDecoder* dec);
[351] Fix | Delete
[352] Fix | Delete
// Deletes the WebPAnimDecoder object.
[353] Fix | Delete
// Parameters:
[354] Fix | Delete
// dec - (in/out) decoder instance to be deleted
[355] Fix | Delete
WEBP_EXTERN void WebPAnimDecoderDelete(WebPAnimDecoder* dec);
[356] Fix | Delete
[357] Fix | Delete
#ifdef __cplusplus
[358] Fix | Delete
} // extern "C"
[359] Fix | Delete
#endif
[360] Fix | Delete
[361] Fix | Delete
#endif /* WEBP_WEBP_DEMUX_H_ */
[362] Fix | Delete
[363] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function