[x265] Warnings in 12-bit code: right shift count is negative

Pradeep Ramachandran pradeep at multicorewareinc.com
Fri Sep 25 10:43:13 CEST 2015


I am seeing other build errors on windows from quant.cpp - were these also
fixed in this path you're referring to, or should we open a new issue for
it?

C:\SmokeTest\Test_harness\vc10_64_multilib\default\x265-shared.vcxproj"
(default target) (13) ->
  api.obj : error LNK2019: unresolved external symbol "struct x265_api
const * __cdecl x265_12bit::x265_api_get_75(int)"
(?x265_api_get_75 at x265_12bit@@YAPEBUx265_api@@H at Z) referenced in function
x265_api_get_75 [C:\SmokeTest\Test_harness\vc10_64_multilib\default\x265-
shared.vcxproj]

Pradeep.

On Thu, Sep 24, 2015 at 7:28 PM, chen <chenm003 at 163.com> wrote:

> It is fixed in patches Issue #180, but did not push into tree, I sent it
> in 09/15
>
> At 2015-09-24 16:50:00,"Deepthi Nandakumar" <deepthi at multicorewareinc.com>
> wrote:
>
> Thanks for reporting, this is an open issue on Bitbucket under
> investigation.
>
> On Thu, Sep 24, 2015 at 9:57 AM, Mario *LigH* Rohkrämer <contact at ligh.de>
> wrote:
>
>> +----
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp: In
>> instantiation of 'uint32_t x265::Quant::rdoQuant(const x265::CUData&,
>> int16_t*, x265::TextType, uint32_t, bool) [with unsigned int log2TrSize =
>> 4u; uint32_t = unsigned int; int16_t = short int]':
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:189:139:
>>  required from here
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:672:48:
>> note: in expansion of macro 'PSYVALUE'
>>                      costUncoded[blkPos + x] -= PSYVALUE(predictedCoef);
>>                                                 ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:779:52:
>> note: in expansion of macro 'PSYVALUE'
>>                          costUncoded[blkPos + x] -=
>> PSYVALUE(predictedCoef);
>>                                                     ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:857:40:
>> note: in expansion of macro 'PSYVALUE'
>>                  costUncoded[blkPos] -= PSYVALUE(predictedCoef);
>>                                         ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:940:36:
>> note: in expansion of macro 'PSYVALUE'
>>                          curCost -= PSYVALUE(reconCoef);
>>                                     ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:968:37:
>> note: in expansion of macro 'PSYVALUE'
>>                          curCost0 -= PSYVALUE(reconCoef);
>>                                      ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:971:37:
>> note: in expansion of macro 'PSYVALUE'
>>                          curCost1 -= PSYVALUE(reconCoef);
>>                                      ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp: In
>> instantiation of 'uint32_t x265::Quant::rdoQuant(const x265::CUData&,
>> int16_t*, x265::TextType, uint32_t, bool) [with unsigned int log2TrSize =
>> 5u; uint32_t = unsigned int; int16_t = short int]':
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:189:139:
>>  required from here
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:672:48:
>> note: in expansion of macro 'PSYVALUE'
>>                      costUncoded[blkPos + x] -= PSYVALUE(predictedCoef);
>>                                                 ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:779:52:
>> note: in expansion of macro 'PSYVALUE'
>>                          costUncoded[blkPos + x] -=
>> PSYVALUE(predictedCoef);
>>                                                     ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:857:40:
>> note: in expansion of macro 'PSYVALUE'
>>                  costUncoded[blkPos] -= PSYVALUE(predictedCoef);
>>                                         ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:940:36:
>> note: in expansion of macro 'PSYVALUE'
>>                          curCost -= PSYVALUE(reconCoef);
>>                                     ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:968:37:
>> note: in expansion of macro 'PSYVALUE'
>>                          curCost0 -= PSYVALUE(reconCoef);
>>                                      ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:
>> warning: right shift count is negative
>>  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
>>                                              ^
>> h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:971:37:
>> note: in expansion of macro 'PSYVALUE'
>>                          curCost1 -= PSYVALUE(reconCoef);
>>                                      ^
>> +----
>>
>> --
>>
>> Fun and success!
>> Mario *LigH* Rohkrämer
>> mailto:contact at ligh.de
>>
>> _______________________________________________
>> x265-devel mailing list
>> x265-devel at videolan.org
>> https://mailman.videolan.org/listinfo/x265-devel
>>
>
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20150925/86409f3a/attachment-0001.html>


More information about the x265-devel mailing list