[x265] asm: fix dequant_normal

chen chenm003 at 163.com
Sat Aug 30 07:36:12 CEST 2014


At 2014-08-30 13:34:16,"Satoshi Nakagawa" <nakagawa424 at oki.com> wrote:
># HG changeset patch
># User Satoshi Nakagawa <nakagawa424 at oki.com>
># Date 1409376721 -32400
>#      Sat Aug 30 14:32:01 2014 +0900
># Node ID eb94972d65473fc8e6fa42ebd95a72cfc727edf5
># Parent  4e2d9ac6d489e82e70544d626c89964ee653c452
>asm: fix dequant_normal
>
>diff -r 4e2d9ac6d489 -r eb94972d6547 source/common/dct.cpp
>--- a/source/common/dct.cpp	Fri Aug 29 11:12:49 2014 +0200
>+++ b/source/common/dct.cpp	Sat Aug 30 14:32:01 2014 +0900
>@@ -720,7 +720,9 @@
> 
> void dequant_normal_c(const int32_t* quantCoef, int32_t* coef, int num, int scale, int shift)
> {
>-#if !HIGH_BIT_DEPTH
>+#if HIGH_BIT_DEPTH
>+    X265_CHECK(scale < 32768 || ((scale & 3) == 0 && shift > 2), "dequant invalid scale %d\n", scale);
>+#else
>     // NOTE: maximum of scale is (72 * 256)
>     X265_CHECK(scale < 32768, "dequant invalid scale %d\n", scale);
> #endif

How about remove '#if...'?
The asm code didn't check it.
Thanks
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140830/7f70966a/attachment.html>


More information about the x265-devel mailing list