Place the frame_config's pos before it not after

This commit is contained in:
Nigel Tao committed 2018-08-26 23:58:03 +10:00
1 parent 9c04249bfe
commit a34cc5311e
7 files changed
+73 -176

No files matched your search

@@ -736,26 +736,6 @@ wuffs_base__io_writer__set_mark(wuffs_base__io_writer* o, uint8_t* mark) {
return ((wuffs_base__empty_struct){});
}
static inline uint32_t //
wuffs_base__frame_config__rect_x0(wuffs_base__frame_config* c) {
return c ? c->private_impl.bounds.min_incl_x : 0;
}
static inline uint32_t //
wuffs_base__frame_config__rect_y0(wuffs_base__frame_config* c) {
return c ? c->private_impl.bounds.min_incl_y : 0;
}
static inline uint32_t //
wuffs_base__frame_config__rect_x1(wuffs_base__frame_config* c) {
return c ? c->private_impl.bounds.max_excl_x : 0;
}
static inline uint32_t //
wuffs_base__frame_config__rect_y1(wuffs_base__frame_config* c) {
return c ? c->private_impl.bounds.max_excl_y : 0;
}
#ifdef __cplusplus
} // extern "C"
#endif
@@ -665,8 +665,8 @@ wuffs_base__frame_config__index(wuffs_base__frame_config* c) {
return c ? c->private_impl.index : 0;
}
// wuffs_base__frame_config__io_position returns the I/O stream position after
// the frame config but before the frame's pixel data.
// wuffs_base__frame_config__io_position returns the I/O stream position before
// the frame config.
static inline uint64_t //
wuffs_base__frame_config__io_position(wuffs_base__frame_config* c) {
return c ? c->private_impl.io_position : 0;