mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 21:39:59 +02:00
rename WebPDecBuffer::memory -> private_memory
This makes it clear that it shouldn't be used externally. Change-Id: I10c04c6606abbe851b6a3b424832803e842b2057
This commit is contained in:
@ -139,12 +139,14 @@ typedef struct { // view as YUVA
|
||||
typedef struct {
|
||||
WEBP_CSP_MODE colorspace; // Colorspace.
|
||||
int width, height; // Dimensions.
|
||||
int is_external_memory; // If true, the *memory pointer is not owned.
|
||||
int is_external_memory; // If true, 'internal_memory' pointer is not used.
|
||||
union {
|
||||
WebPRGBABuffer RGBA;
|
||||
WebPYUVABuffer YUVA;
|
||||
} u; // nameless union of buffer parameters.
|
||||
uint8_t* memory; // main pointer (when is_external_memory is false)
|
||||
} u; // Nameless union of buffer parameters.
|
||||
uint8_t* private_memory; // Internally allocated memory (only when
|
||||
// is_external_memory is false). Should not be used
|
||||
// externally, but accessed via the buffer union.
|
||||
} WebPDecBuffer;
|
||||
|
||||
// Internal, version-checked, entry point
|
||||
|
Reference in New Issue
Block a user