summaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2010-04-21 00:09:00 +0100
committerMans Rullgard <mans@mansr.com>2011-03-16 23:19:40 +0000
commit381d37fda91494e312ab2938080a379c5e11998b (patch)
tree4643fe3926b5fe37f7a0319e02eac02c1bb96830 /libavcodec/dsputil.h
parentdff68563d846274cee0a2cd2430d6f1a2cb51eaa (diff)
downloadffmpeg-streaming-381d37fda91494e312ab2938080a379c5e11998b.zip
ffmpeg-streaming-381d37fda91494e312ab2938080a379c5e11998b.tar.gz
dsputil: add bswap16_buf()
There are several places where a buffer is byte-swapped in 16-bit units. This allows them to share code which can be optimised for various architectures. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index b4798b3..a37475f 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -369,6 +369,7 @@ typedef struct DSPContext {
/* this might write to dst[w] */
void (*add_png_paeth_prediction)(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp);
void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w);
+ void (*bswap16_buf)(uint16_t *dst, const uint16_t *src, int len);
void (*h263_v_loop_filter)(uint8_t *src, int stride, int qscale);
void (*h263_h_loop_filter)(uint8_t *src, int stride, int qscale);
OpenPOWER on IntegriCloud