diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-09-29 11:06:54 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-29 19:12:57 +0200 |
commit | 5d2170c53bf4c2b0499f230c43764e4acf228f88 (patch) | |
tree | 7c460759c50b625d4b552f43ad5f18bc09e11447 /libavcodec/ivi_common.c | |
parent | 2d09cdbaf2f449ba23d54e97e94bd97ca22208c6 (diff) | |
download | ffmpeg-5d2170c53bf4c2b0499f230c43764e4acf228f88.tar.gz |
ivi_common: make ff_ivi_process_empty_tile() static.
It's not used outside of ivi_common.c
Diffstat (limited to 'libavcodec/ivi_common.c')
-rw-r--r-- | libavcodec/ivi_common.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 6ff0f8028b..65fc500d74 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -489,8 +489,17 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) return 0; } -void ff_ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band, - IVITile *tile, int32_t mv_scale) +/** + * Handle empty tiles by performing data copying and motion + * compensation respectively. + * + * @param[in] avctx ptr to the AVCodecContext + * @param[in] band pointer to the band descriptor + * @param[in] tile pointer to the tile descriptor + * @param[in] mv_scale scaling factor for motion vectors + */ +static void ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band, + IVITile *tile, int32_t mv_scale) { int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type; int offs, mb_offset, row_offset; @@ -673,7 +682,7 @@ static int decode_band(IVI45DecContext *ctx, int plane_num, } tile->is_empty = get_bits1(&ctx->gb); if (tile->is_empty) { - ff_ivi_process_empty_tile(avctx, band, tile, + ivi_process_empty_tile(avctx, band, tile, (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3)); av_dlog(avctx, "Empty tile encountered!\n"); } else { |