summaryrefslogtreecommitdiff
path: root/libavcodec/png.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-02-14 15:50:10 +0100
committerAnton Khirnov <anton@khirnov.net>2021-02-24 17:16:46 +0100
commit3a5b857d4c455f20d811cad81c7251af2f82fba2 (patch)
treed35f8c5fa7d51b57b10e081971e632dc27bab41e /libavcodec/png.h
parent6853bdbdd2123ca2c42d0841bf6bd67fc7ea8150 (diff)
downloadffmpeg-3a5b857d4c455f20d811cad81c7251af2f82fba2.tar.gz
lavc: split LSCR decoder out of PNG decoder
It shares very little code with pngdec, so keeping them together only makes the code harder to read.
Diffstat (limited to 'libavcodec/png.h')
-rw-r--r--libavcodec/png.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/png.h b/libavcodec/png.h
index e967fcf38f..a15560131f 100644
--- a/libavcodec/png.h
+++ b/libavcodec/png.h
@@ -24,6 +24,8 @@
#include <stdint.h>
+#include "pngdsp.h"
+
#define PNG_COLOR_MASK_PALETTE 1
#define PNG_COLOR_MASK_COLOR 2
#define PNG_COLOR_MASK_ALPHA 4
@@ -61,4 +63,7 @@ int ff_png_pass_row_size(int pass, int bits_per_pixel, int width);
void ff_add_png_paeth_prediction(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp);
+void ff_png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
+ uint8_t *src, uint8_t *last, int size, int bpp);
+
#endif /* AVCODEC_PNG_H */