[FFmpeg-cvslog] flashsv: improve some variable names

Diego Biurrun git at videolan.org
Sat Jul 9 02:09:49 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jun 30 01:00:10 2011 +0200| [91fe776913d6525e2a7f582e4d5e21f517a09f0f] | committer: Diego Biurrun

flashsv: improve some variable names

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91fe776913d6525e2a7f582e4d5e21f517a09f0f
---

 libavcodec/flashsv.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 578e713..70c160e 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -152,14 +152,13 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
     /* loop over all block columns */
     for (j = 0; j < v_blocks + (v_part ? 1 : 0); j++) {
 
-        int hp = j * s->block_height; // vertical position in frame
-        int hs = (j < v_blocks) ? s->block_height : v_part; // block size
-
+        int y_pos  = j * s->block_height; // vertical position in frame
+        int cur_blk_height = (j < v_blocks) ? s->block_height : v_part;
 
         /* loop over all block rows */
         for (i = 0; i < h_blocks + (h_part ? 1 : 0); i++) {
-            int wp = i * s->block_width; // horizontal position in frame
-            int ws = (i < h_blocks) ? s->block_width : h_part; // block size
+            int x_pos = i * s->block_width; // horizontal position in frame
+            int cur_blk_width = (i < h_blocks) ? s->block_width : h_part;
 
             /* get the size of the compressed zlib chunk */
             int size = get_bits(&gb, 16);
@@ -195,8 +194,9 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
                     /* return -1; */
                 }
                 copy_region(s->tmpblock, s->frame.data[0],
-                            s->image_height - (hp + hs + 1),
-                            wp, hs, ws, s->frame.linesize[0]);
+                            s->image_height - (y_pos + cur_blk_height + 1),
+                            x_pos, cur_blk_height, cur_blk_width,
+                            s->frame.linesize[0]);
                 skip_bits_long(&gb, 8 * size);   /* skip the consumed bits */
             }
         }



More information about the ffmpeg-cvslog mailing list