summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/png.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/png.c')
-rw-r--r--src/lib/util/png.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/util/png.c b/src/lib/util/png.c
index 076b1b02965..706dfb5e50f 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);