diff options
author | 2015-06-07 17:37:34 +0200 | |
---|---|---|
committer | 2015-06-07 17:37:34 +0200 | |
commit | b6ce8ee991c7e14ca214a2931bfbc4e4a5a0dc0f (patch) | |
tree | da1e239053b7bfd9e841a103bbb36aefb71c4e7f /src/lib/util/png.c | |
parent | b6a4cf45ca6fdf842b319806d61d638cf2d8b2d2 (diff) |
Licenses for Raphael Nabet (nw)
Diffstat (limited to 'src/lib/util/png.c')
-rw-r--r-- | src/lib/util/png.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/util/png.c b/src/lib/util/png.c index 076b1b02965..224cdf8d3dc 100644 --- a/src/lib/util/png.c +++ b/src/lib/util/png.c @@ -1096,6 +1096,18 @@ png_error png_write_bitmap(core_file *fp, png_info *info, bitmap_t &bitmap, int ********************************************************************************/ +/** + * @fn png_error mng_capture_start(core_file *fp, bitmap_t &bitmap, double rate) + * + * @brief Mng capture start. + * + * @param [in,out] fp If non-null, the fp. + * @param [in,out] bitmap The bitmap. + * @param rate The rate. + * + * @return A png_error. + */ + png_error mng_capture_start(core_file *fp, bitmap_t &bitmap, double rate) { UINT8 mhdr[28]; @@ -1118,11 +1130,35 @@ png_error mng_capture_start(core_file *fp, bitmap_t &bitmap, double rate) return PNGERR_NONE; } +/** + * @fn png_error mng_capture_frame(core_file *fp, png_info *info, bitmap_t &bitmap, int palette_length, const rgb_t *palette) + * + * @brief Mng capture frame. + * + * @param [in,out] fp If non-null, the fp. + * @param [in,out] info If non-null, the information. + * @param [in,out] bitmap The bitmap. + * @param palette_length Length of the palette. + * @param palette The palette. + * + * @return A png_error. + */ + png_error mng_capture_frame(core_file *fp, png_info *info, bitmap_t &bitmap, int palette_length, const rgb_t *palette) { return write_png_stream(fp, info, bitmap, palette_length, palette); } +/** + * @fn png_error mng_capture_stop(core_file *fp) + * + * @brief Mng capture stop. + * + * @param [in,out] fp If non-null, the fp. + * + * @return A png_error. + */ + png_error mng_capture_stop(core_file *fp) { return write_chunk(fp, NULL, MNG_CN_MEND, 0); |