diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:18:51 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:18:51 +0000 |
commit | 51062b926b67274ba22a1540bbe387a7ad9925b0 (patch) | |
tree | 044d59a46dc0cf5c89ae7cbe3e8449a572b766cb /libavcodec | |
parent | 70e708677e1753eeded6d42ca3adb859d22c4f64 (diff) | |
download | ffmpeg-51062b926b67274ba22a1540bbe387a7ad9925b0.tar.gz |
Rename rotate_buffer() to copy_and_dup() and doxy it
Originally committed as revision 13919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 69c286e272..ac6a0b8622 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -94,8 +94,11 @@ static void eval_coefs(const int *refl, int *coefs) coefs[x] >>= 4; } -/* rotate block */ -static void rotate_block(const int16_t *source, int16_t *target, int offset) +/** + * Copy the last offset values of *source to *target. If those values are not + * enough to fill the target buffer, fill it with another copy of those values. + */ +static void copy_and_dup(const int16_t *source, int16_t *target, int offset) { source += BUFFERSIZE - offset; @@ -215,7 +218,7 @@ static void do_output_subblock(RA144Context *ractx, if (cba_idx) { cba_idx += HALFBLOCK - 1; - rotate_block(ractx->adapt_cb, buffer_a, cba_idx); + copy_and_dup(ractx->adapt_cb, buffer_a, cba_idx); m[0] = irms(buffer_a, gval) >> 12; } else { m[0] = 0; |