mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Rename METADATA_RAW as METADATA_RAW_PASSTHROUGH
This commit is contained in:
1 parent
c754f81634
commit
8f9a4f40c2
6 files changed
+40
-33
No files matched your search
@@ -164,8 +164,8 @@ HandleMetadata(
|
||||
case WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_PARSED:
|
||||
break;
|
||||
|
||||
case WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_RAW: {
|
||||
wuffs_base__range_ie_u64 r = minfo.metadata_raw__range();
|
||||
case WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_RAW_PASSTHROUGH: {
|
||||
wuffs_base__range_ie_u64 r = minfo.metadata_raw_passthrough__range();
|
||||
if (r.is_empty()) {
|
||||
break;
|
||||
} else if (r.length() > (max_incl_metadata_length - raw.size())) {
|
||||
|
||||
@@ -92,9 +92,9 @@ class DecodeImageCallbacks {
|
||||
SelectDecoder(uint32_t fourcc, wuffs_base__slice_u8 prefix);
|
||||
|
||||
// HandleMetadata acknowledges image metadata. minfo.flavor will be one of:
|
||||
// - WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_RAW
|
||||
// - WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_RAW_PASSTHROUGH
|
||||
// - WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_PARSED
|
||||
// If it is ETC__METADATA_RAW then raw contains the metadata bytes. Those
|
||||
// If it is ETC__METADATA_RAW_ETC then raw contains the metadata bytes. Those
|
||||
// bytes should not be retained beyond the the HandleMetadata call.
|
||||
//
|
||||
// minfo.metadata__fourcc() will typically match one of the
|
||||
|
||||
Reference in new issue
Block a user