diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-05-19 16:41:42 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-05-20 15:56:25 +0200 |
commit | 9ccbdc0acafcfd1947e019c24817f2526581da49 (patch) | |
tree | 0c562741a1dba6b2ec6cce0ab0864e9cfc664af3 /libavcodec | |
parent | 0c517644b267d6bb41f898104725346d92202cc7 (diff) | |
download | ffmpeg-9ccbdc0acafcfd1947e019c24817f2526581da49.tar.gz |
indeo: Drop unused debug function ivi_check_band().
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ivi_common.c | 25 | ||||
-rw-r--r-- | libavcodec/ivi_common.h | 5 |
2 files changed, 0 insertions, 30 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index caa545c57f..37888d3d8c 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -598,31 +598,6 @@ uint16_t ivi_calc_band_checksum (IVIBandDesc *band) return checksum; } - -int ivi_check_band (IVIBandDesc *band, const uint8_t *ref, int pitch) -{ - int x, y, result; - uint8_t t1, t2; - int16_t *src; - - src = band->buf; - result = 0; - - for (y = 0; y < band->height; src += band->pitch, y++) { - for (x = 0; x < band->width; x++) { - t1 = av_clip(src[x] + 128, 0, 255); - t2 = ref[x]; - if (t1 != t2) { - av_log(NULL, AV_LOG_ERROR, "Data mismatch: row %d, column %d\n", - y / band->blk_size, x / band->blk_size); - result = -1; - } - } - ref += pitch; - } - - return result; -} #endif void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch) diff --git a/libavcodec/ivi_common.h b/libavcodec/ivi_common.h index 8c37b94da5..24e52cca53 100644 --- a/libavcodec/ivi_common.h +++ b/libavcodec/ivi_common.h @@ -401,11 +401,6 @@ void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch); */ uint16_t ivi_calc_band_checksum (IVIBandDesc *band); -/** - * Verify that band data lies in range. - */ -int ivi_check_band (IVIBandDesc *band, const uint8_t *ref, int pitch); - int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt); av_cold int ff_ivi_decode_close(AVCodecContext *avctx); |