mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Factor std/gif's decode_id into two parts
This commit is contained in:
1 parent
981bf19ad8
commit
aa4029d29d
3 files changed
+334
-184
No files matched your search
+12
-2
@@ -1213,6 +1213,9 @@ typedef struct {
|
||||
struct {
|
||||
uint32_t coro_susp_point;
|
||||
} c_decode_frame[1];
|
||||
struct {
|
||||
uint32_t coro_susp_point;
|
||||
} c_decode_up_to_id_part1[1];
|
||||
struct {
|
||||
uint32_t coro_susp_point;
|
||||
uint8_t v_c[6];
|
||||
@@ -1245,6 +1248,10 @@ typedef struct {
|
||||
uint32_t coro_susp_point;
|
||||
uint32_t v_frame_x;
|
||||
uint32_t v_frame_y;
|
||||
uint64_t scratch;
|
||||
} c_decode_id_part0[1];
|
||||
struct {
|
||||
uint32_t coro_susp_point;
|
||||
uint8_t v_flags;
|
||||
uint32_t v_lct_size;
|
||||
uint32_t v_i;
|
||||
@@ -1252,8 +1259,7 @@ typedef struct {
|
||||
uint64_t v_block_size;
|
||||
wuffs_gif__status v_z;
|
||||
uint64_t v_n_copied;
|
||||
uint64_t scratch;
|
||||
} c_decode_id[1];
|
||||
} c_decode_id_part1[1];
|
||||
} private_impl;
|
||||
} wuffs_gif__decoder;
|
||||
|
||||
@@ -1281,6 +1287,10 @@ wuffs_gif__status wuffs_gif__decoder__decode_frame(
|
||||
wuffs_base__io_writer a_dst,
|
||||
wuffs_base__io_reader a_src);
|
||||
|
||||
wuffs_gif__status wuffs_gif__decoder__decode_up_to_id_part1(
|
||||
wuffs_gif__decoder* self,
|
||||
wuffs_base__io_reader a_src);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user