mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
1 parent
f4002c5b21
commit
fd69133c5d
2 files changed
+5
-5
No files matched your search
@@ -42432,7 +42432,7 @@ wuffs_tga__decoder__decode_image_config(
|
|||||||
self->private_impl.f_scratch_bytes_per_pixel = 1;
|
self->private_impl.f_scratch_bytes_per_pixel = 1;
|
||||||
self->private_impl.f_src_bytes_per_pixel = 1;
|
self->private_impl.f_src_bytes_per_pixel = 1;
|
||||||
self->private_impl.f_src_pixfmt = 2164523016;
|
self->private_impl.f_src_pixfmt = 2164523016;
|
||||||
self->private_impl.f_opaque = ((self->private_impl.f_header_color_map_entry_size != 15) || (self->private_impl.f_header_color_map_entry_size != 24));
|
self->private_impl.f_opaque = ((self->private_impl.f_header_color_map_entry_size == 15) || (self->private_impl.f_header_color_map_entry_size == 24));
|
||||||
} else if ((self->private_impl.f_header_image_type | 8) == 10) {
|
} else if ((self->private_impl.f_header_image_type | 8) == 10) {
|
||||||
if ((self->private_impl.f_header_pixel_depth == 15) || (self->private_impl.f_header_pixel_depth == 16)) {
|
if ((self->private_impl.f_header_pixel_depth == 15) || (self->private_impl.f_header_pixel_depth == 16)) {
|
||||||
self->private_impl.f_scratch_bytes_per_pixel = 4;
|
self->private_impl.f_scratch_bytes_per_pixel = 4;
|
||||||
@@ -42611,7 +42611,7 @@ wuffs_tga__decoder__decode_image_config(
|
|||||||
self->private_impl.f_width,
|
self->private_impl.f_width,
|
||||||
self->private_impl.f_height,
|
self->private_impl.f_height,
|
||||||
self->private_impl.f_frame_config_io_position,
|
self->private_impl.f_frame_config_io_position,
|
||||||
false);
|
self->private_impl.f_opaque);
|
||||||
}
|
}
|
||||||
self->private_impl.f_call_sequence = 3;
|
self->private_impl.f_call_sequence = 3;
|
||||||
|
|
||||||
|
|||||||
@@ -155,8 +155,8 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
|||||||
this.src_bytes_per_pixel = 1
|
this.src_bytes_per_pixel = 1
|
||||||
this.src_pixfmt = base.PIXEL_FORMAT__INDEXED__BGRA_NONPREMUL
|
this.src_pixfmt = base.PIXEL_FORMAT__INDEXED__BGRA_NONPREMUL
|
||||||
this.opaque =
|
this.opaque =
|
||||||
(this.header_color_map_entry_size <> 0x0F) or
|
(this.header_color_map_entry_size == 0x0F) or
|
||||||
(this.header_color_map_entry_size <> 0x18)
|
(this.header_color_map_entry_size == 0x18)
|
||||||
|
|
||||||
} else if (this.header_image_type | 8) == 0x0A {
|
} else if (this.header_image_type | 8) == 0x0A {
|
||||||
if (this.header_pixel_depth == 0x0F) or
|
if (this.header_pixel_depth == 0x0F) or
|
||||||
@@ -247,7 +247,7 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
|||||||
width: this.width,
|
width: this.width,
|
||||||
height: this.height,
|
height: this.height,
|
||||||
first_frame_io_position: this.frame_config_io_position,
|
first_frame_io_position: this.frame_config_io_position,
|
||||||
first_frame_is_opaque: false)
|
first_frame_is_opaque: this.opaque)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.call_sequence = 3
|
this.call_sequence = 3
|
||||||
|
|||||||
Reference in new issue
Block a user