Add a decode_frame_options type

This commit is contained in:
Nigel Tao committed 2018-09-02 15:08:00 +10:00
1 parent 8b1e023e6a
commit 555a72d7a9
10 files changed
+90 -43

No files matched your search

+31 -16
View File
@@ -1967,6 +1967,24 @@ wuffs_base__pixel_buffer::palette() {
#endif // __cplusplus
// --------
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
struct {
uint8_t TODO;
} private_impl;
#ifdef __cplusplus
#endif // __cplusplus
} wuffs_base__decode_frame_options;
#ifdef __cplusplus
#endif // __cplusplus
#ifdef __cplusplus
} // extern "C"
#endif
@@ -2544,11 +2562,11 @@ typedef struct {
uint64_t a_io_position);
inline wuffs_base__status decode_frame_config(wuffs_base__frame_config* a_dst,
wuffs_base__io_reader a_src);
inline wuffs_base__status decode_frame(wuffs_base__pixel_buffer* a_dst,
uint32_t a_pixbuf_origin_x,
uint32_t a_pixbuf_origin_y,
wuffs_base__io_reader a_src,
wuffs_base__slice_u8 a_work_buffer);
inline wuffs_base__status decode_frame(
wuffs_base__pixel_buffer* a_dst,
wuffs_base__io_reader a_src,
wuffs_base__slice_u8 a_work_buffer,
wuffs_base__decode_frame_options* a_opts);
#endif // __cplusplus
} wuffs_gif__decoder;
@@ -2594,10 +2612,9 @@ wuffs_gif__decoder__decode_frame_config(wuffs_gif__decoder* self,
WUFFS_BASE__MAYBE_STATIC wuffs_base__status //
wuffs_gif__decoder__decode_frame(wuffs_gif__decoder* self,
wuffs_base__pixel_buffer* a_dst,
uint32_t a_pixbuf_origin_x,
uint32_t a_pixbuf_origin_y,
wuffs_base__io_reader a_src,
wuffs_base__slice_u8 a_work_buffer);
wuffs_base__slice_u8 a_work_buffer,
wuffs_base__decode_frame_options* a_opts);
// ---------------- C++ Convenience Methods
@@ -2644,12 +2661,11 @@ wuffs_gif__decoder::decode_frame_config(wuffs_base__frame_config* a_dst,
inline wuffs_base__status //
wuffs_gif__decoder::decode_frame(wuffs_base__pixel_buffer* a_dst,
uint32_t a_pixbuf_origin_x,
uint32_t a_pixbuf_origin_y,
wuffs_base__io_reader a_src,
wuffs_base__slice_u8 a_work_buffer) {
return wuffs_gif__decoder__decode_frame(
this, a_dst, a_pixbuf_origin_x, a_pixbuf_origin_y, a_src, a_work_buffer);
wuffs_base__slice_u8 a_work_buffer,
wuffs_base__decode_frame_options* a_opts) {
return wuffs_gif__decoder__decode_frame(this, a_dst, a_src, a_work_buffer,
a_opts);
}
#endif // __cplusplus
@@ -6728,10 +6744,9 @@ exit:
WUFFS_BASE__MAYBE_STATIC wuffs_base__status //
wuffs_gif__decoder__decode_frame(wuffs_gif__decoder* self,
wuffs_base__pixel_buffer* a_dst,
uint32_t a_pixbuf_origin_x,
uint32_t a_pixbuf_origin_y,
wuffs_base__io_reader a_src,
wuffs_base__slice_u8 a_work_buffer) {
wuffs_base__slice_u8 a_work_buffer,
wuffs_base__decode_frame_options* a_opts) {
if (!self) {
return wuffs_base__error__bad_receiver;
}