mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
std/vp8: rename decode_first_partition
This commit is contained in:
1 parent
7b69762670
commit
214b63c275
3 files changed
+7
-7
No files matched your search
@@ -81924,7 +81924,7 @@ wuffs_vp8__decoder__copy_partitions_to_workbuf(
|
|||||||
|
|
||||||
WUFFS_BASE__GENERATED_C_CODE
|
WUFFS_BASE__GENERATED_C_CODE
|
||||||
static wuffs_base__status
|
static wuffs_base__status
|
||||||
wuffs_vp8__decoder__decode_first_partition(
|
wuffs_vp8__decoder__decode_header_partition(
|
||||||
wuffs_vp8__decoder* self,
|
wuffs_vp8__decoder* self,
|
||||||
wuffs_base__slice_u8 a_workbuf);
|
wuffs_base__slice_u8 a_workbuf);
|
||||||
|
|
||||||
@@ -83180,11 +83180,11 @@ wuffs_vp8__decoder__copy_partitions_to_workbuf(
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------- func vp8.decoder.decode_first_partition
|
// -------- func vp8.decoder.decode_header_partition
|
||||||
|
|
||||||
WUFFS_BASE__GENERATED_C_CODE
|
WUFFS_BASE__GENERATED_C_CODE
|
||||||
static wuffs_base__status
|
static wuffs_base__status
|
||||||
wuffs_vp8__decoder__decode_first_partition(
|
wuffs_vp8__decoder__decode_header_partition(
|
||||||
wuffs_vp8__decoder* self,
|
wuffs_vp8__decoder* self,
|
||||||
wuffs_base__slice_u8 a_workbuf) {
|
wuffs_base__slice_u8 a_workbuf) {
|
||||||
uint32_t v_v1 = 0;
|
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;
|
self->private_impl.f_part_n_bits[v_i] = 0u;
|
||||||
v_i += 1u;
|
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)) {
|
if ( ! wuffs_base__status__is_ok(&v_status)) {
|
||||||
status = v_status;
|
status = v_status;
|
||||||
if (wuffs_base__status__is_error(&status)) {
|
if (wuffs_base__status__is_error(&status)) {
|
||||||
|
|||||||
@@ -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 v1 : base.u32[..= 1]
|
||||||
var v32 : base.u32
|
var v32 : base.u32
|
||||||
|
|
||||||
@@ -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
|
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
|
// 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?()
|
c32 = args.src.read_u24le_as_u32?()
|
||||||
this.is_key_frame = ((c32 & 0x01) == 0)
|
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
|
i += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
status = this.decode_first_partition!(workbuf: args.workbuf)
|
status = this.decode_header_partition!(workbuf: args.workbuf)
|
||||||
if not status.is_ok() {
|
if not status.is_ok() {
|
||||||
return status
|
return status
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user