[FFmpeg-cvslog] r13919 - trunk/libavcodec/ra144.c

vitor subversion
Mon Jun 23 22:18:52 CEST 2008


Author: vitor
Date: Mon Jun 23 22:18:51 2008
New Revision: 13919

Log:
Rename rotate_buffer() to copy_and_dup() and doxy it

Modified:
   trunk/libavcodec/ra144.c

Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c	(original)
+++ trunk/libavcodec/ra144.c	Mon Jun 23 22:18:51 2008
@@ -94,8 +94,11 @@ static void eval_coefs(const int *refl, 
         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(RA144Cont
 
     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;




More information about the ffmpeg-cvslog mailing list