summaryrefslogtreecommitdiff
path: root/libavcodec/rle.h
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-11-29 15:45:47 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-11-29 15:45:47 +0100
commit81b73f1f979557a6b94d57219e215a4479b3307b (patch)
treeee5011192efedb665f66fa70507ba7c07389dc47 /libavcodec/rle.h
parente9675ed13ac53ec6dd7015c3a1b81043d0fea78d (diff)
parent59e3f4e598ae381600ef54e1f6e6a8a5270ac245 (diff)
downloadffmpeg-81b73f1f979557a6b94d57219e215a4479b3307b.tar.gz
Merge commit '59e3f4e598ae381600ef54e1f6e6a8a5270ac245'
* commit '59e3f4e598ae381600ef54e1f6e6a8a5270ac245': sgienc: Use a local RLE encoding function Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/rle.h')
-rw-r--r--libavcodec/rle.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/rle.h b/libavcodec/rle.h
index 24851321fe..cb51624975 100644
--- a/libavcodec/rle.h
+++ b/libavcodec/rle.h
@@ -24,6 +24,17 @@
#include <stdint.h>
/**
+ * Count up to 127 consecutive pixels which are either all the same or
+ * all differ from the previous and next pixels.
+ * @param start Pointer to the first pixel
+ * @param len Maximum number of pixels
+ * @param bpp Bytes per pixel
+ * @param same 1 if searching for identical pixel values, 0 for differing
+ * @return Number of matching consecutive pixels found
+ */
+int ff_rle_count_pixels(const uint8_t *start, int len, int bpp, int same);
+
+/**
* RLE compress the row, with maximum size of out_size. Value before repeated bytes is (count ^ xor_rep) + add_rep.
* Value before raw bytes is (count ^ xor_raw) + add_raw.
* @param outbuf Output buffer