From 214b63c275ad533f922ea9dde566056d8f9346ac Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 18 Jun 2026 21:19:58 +1000 Subject: [PATCH] std/vp8: rename decode_first_partition --- release/c/wuffs-unsupported-snapshot.c | 8 ++++---- ...irst_partition.wuffs => decode_header_partition.wuffs} | 2 +- std/vp8/decode_vp8.wuffs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename std/vp8/{decode_first_partition.wuffs => decode_header_partition.wuffs} (99%) diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index 912a4fad..c67bf04c 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -81924,7 +81924,7 @@ wuffs_vp8__decoder__copy_partitions_to_workbuf( WUFFS_BASE__GENERATED_C_CODE static wuffs_base__status -wuffs_vp8__decoder__decode_first_partition( +wuffs_vp8__decoder__decode_header_partition( wuffs_vp8__decoder* self, wuffs_base__slice_u8 a_workbuf); @@ -83180,11 +83180,11 @@ wuffs_vp8__decoder__copy_partitions_to_workbuf( return status; } -// -------- func vp8.decoder.decode_first_partition +// -------- func vp8.decoder.decode_header_partition WUFFS_BASE__GENERATED_C_CODE static wuffs_base__status -wuffs_vp8__decoder__decode_first_partition( +wuffs_vp8__decoder__decode_header_partition( wuffs_vp8__decoder* self, wuffs_base__slice_u8 a_workbuf) { uint32_t v_v1 = 0; @@ -85641,7 +85641,7 @@ wuffs_vp8__decoder__do_decode_frame( self->private_impl.f_part_n_bits[v_i] = 0u; v_i += 1u; } - v_status = wuffs_vp8__decoder__decode_first_partition(self, a_workbuf); + v_status = wuffs_vp8__decoder__decode_header_partition(self, a_workbuf); if ( ! wuffs_base__status__is_ok(&v_status)) { status = v_status; if (wuffs_base__status__is_error(&status)) { diff --git a/std/vp8/decode_first_partition.wuffs b/std/vp8/decode_header_partition.wuffs similarity index 99% rename from std/vp8/decode_first_partition.wuffs rename to std/vp8/decode_header_partition.wuffs index 08a36760..c198532d 100644 --- a/std/vp8/decode_first_partition.wuffs +++ b/std/vp8/decode_header_partition.wuffs @@ -46,7 +46,7 @@ pri func decoder.copy_partitions_to_workbuf?(src: base.io_reader, workbuf: slice } } -pri func decoder.decode_first_partition!(workbuf: roslice base.u8) base.status { +pri func decoder.decode_header_partition!(workbuf: roslice base.u8) base.status { var v1 : base.u32[..= 1] var v32 : base.u32 diff --git a/std/vp8/decode_vp8.wuffs b/std/vp8/decode_vp8.wuffs index 0890e4c2..ac85c5d1 100644 --- a/std/vp8/decode_vp8.wuffs +++ b/std/vp8/decode_vp8.wuffs @@ -223,7 +223,7 @@ pri func decoder.do_decode_image_config?(dst: nptr base.image_config, src: base. this.partitioned_data_length = ((this.quirk_source_length >> 1) as base.u32) - 10 // RFC 6386 Section 9. Frame Header, up to and including 9.1. Uncompressed - // Data Chunk. decode_first_partition handles the rest of section 9. + // Data Chunk. decode_header_partition handles the rest of section 9. c32 = args.src.read_u24le_as_u32?() this.is_key_frame = ((c32 & 0x01) == 0) @@ -361,7 +361,7 @@ pri func decoder.do_decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reade i += 1 } - status = this.decode_first_partition!(workbuf: args.workbuf) + status = this.decode_header_partition!(workbuf: args.workbuf) if not status.is_ok() { return status }