[FFmpeg-devel] [PATCH 5/7] Merged second and third inner loops

Tucker DiNapoli t.dinapoli42 at gmail.com
Fri Mar 27 21:51:46 CET 2015


---
 libpostproc/postprocess_template.c | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
index 584cb4c..9096586 100644
--- a/libpostproc/postprocess_template.c
+++ b/libpostproc/postprocess_template.c
@@ -3506,6 +3506,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
 
             for(x = startx; x < endx; x+=BLOCK_SIZE){
                 const int stride= dstStride;
+                av_unused uint8_t *tmpXchg;
                 //temporary while changing QP stuff to make things continue to work
                 c.QP = c.QP_block[qp_index];
                 c.nonBQP = c.nonBQP_block[qp_index];
@@ -3527,25 +3528,6 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
                         RENAME(do_a_deblock)(dstBlock, stride, 1, &c, mode);
                     }
                 }
-
-                dstBlock+=8;
-                srcBlock+=8;
-            }
-
-
-            qp_index = 0;
-            dstBlock = dstBlockStart;
-            srcBlock = srcBlockStart;
-
-            for(x = startx; x < endx; x+=BLOCK_SIZE){
-                const int stride= dstStride;
-                av_unused uint8_t *tmpXchg;
-
-
-                c.QP = c.QP_block[qp_index];
-                c.nonBQP = c.nonBQP_block[qp_index];
-                c.pQPb = c.pQPb_block[qp_index];
-                c.pQPb2 = c.pQPb2_block[qp_index++];
 #if TEMPLATE_PP_MMX
                 RENAME(transpose1)(tempBlock1, tempBlock2, dstBlock, dstStride);
 #endif
-- 
2.3.3



More information about the ffmpeg-devel mailing list