aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil_template.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-03-14 10:01:52 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-03-15 04:39:41 +0100
commit8a523cfa8b922885ba4f2e9a5e7a2ac3b7bcb54b (patch)
tree1bb99182c1def3d99060a85fda566999a181b6f1 /libavcodec/dsputil_template.c
parent46728338b0c3a592ebf9ae6fe5d22dcd764b10a5 (diff)
downloadandroid_external_ffmpeg-8a523cfa8b922885ba4f2e9a5e7a2ac3b7bcb54b.tar.gz
android_external_ffmpeg-8a523cfa8b922885ba4f2e9a5e7a2ac3b7bcb54b.tar.bz2
android_external_ffmpeg-8a523cfa8b922885ba4f2e9a5e7a2ac3b7bcb54b.zip
dsputil: remove non-8bpp draw_edge.
It is never used. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dsputil_template.c')
-rw-r--r--libavcodec/dsputil_template.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/dsputil_template.c b/libavcodec/dsputil_template.c
index 6830ec35a7..349da7de56 100644
--- a/libavcodec/dsputil_template.c
+++ b/libavcodec/dsputil_template.c
@@ -29,6 +29,7 @@
#include "bit_depth_template.c"
+#if BIT_DEPTH == 8
/* draw the edges of width 'w' of an image of size width, height */
//FIXME check that this is ok for mpeg4 interlaced
static void FUNCC(draw_edges)(uint8_t *p_buf, int p_wrap, int width, int height, int w, int h, int sides)
@@ -41,16 +42,8 @@ static void FUNCC(draw_edges)(uint8_t *p_buf, int p_wrap, int width, int height,
/* left and right */
ptr = buf;
for(i=0;i<height;i++) {
-#if BIT_DEPTH > 8
- int j;
- for (j = 0; j < w; j++) {
- ptr[j-w] = ptr[0];
- ptr[j+width] = ptr[width-1];
- }
-#else
memset(ptr - w, ptr[0], w);
memset(ptr + width, ptr[width-1], w);
-#endif
ptr += wrap;
}
@@ -64,6 +57,7 @@ static void FUNCC(draw_edges)(uint8_t *p_buf, int p_wrap, int width, int height,
for (i = 0; i < h; i++)
memcpy(last_line + (i + 1) * wrap, last_line, (width + w + w) * sizeof(pixel)); // bottom
}
+#endif
static void FUNCC(get_pixels)(int16_t *av_restrict block,
const uint8_t *_pixels,