[x265] [PATCH x265] Fix blocky artifacts in Linux.

Akil akil at multicorewareinc.com
Wed Apr 3 07:51:29 CEST 2019


# HG changeset patch
# User Akil Ayyappan<akil at multicorewareinc.com>
# Date 1554197472 -19800
#      Tue Apr 02 15:01:12 2019 +0530
# Node ID 23d2e2a198f46df95a42b5c2059e8b5ab93d1556
# Parent  3e5032228123c1898d408a30e45ac15eb687ffb6
Fix blocky artifacts in Linux

diff -r 3e5032228123 -r 23d2e2a198f4 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp Fri Mar 22 13:09:49 2019 +0530
+++ b/source/encoder/analysis.cpp Tue Apr 02 15:01:12 2019 +0530
@@ -3696,7 +3696,7 @@

     // 2. Calculate ac component
     uint64_t z_k = 0;
-    int block = (int)((log(blockSize) / log(2)) - 2);
+    int block = (int)(((log(blockSize) / log(2)) - 2) + 0.5);
     primitives.cu[block].normFact(src, blockSize, shift, &z_k);

     // Remove the DC part


-- 
*Regards,*
*Akil R*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190403/ae583414/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix_blocky_artifacts.patch
Type: application/octet-stream
Size: 753 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190403/ae583414/attachment.obj>


More information about the x265-devel mailing list