aboutsummaryrefslogtreecommitdiff
path: root/multimedia/x265/files/patch-warnings
blob: 1f94ec5094bb60e725de0948249c5ad85bd23b79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
--- source/encoder/entropy.cpp	2023-06-27 10:11:49.000000000 -0400
+++ source/encoder/entropy.cpp	2023-10-22 21:00:30.522586000 -0400
@@ -1362,5 +1362,7 @@ 
     bool            bDenomCoded  = false;
     int             numRefDirs   = slice.m_sliceType == B_SLICE ? 2 : 1;
+#if CHECKED_BUILD || _DEBUG
     uint32_t        totalSignalledWeightFlags = 0;
+#endif
 
     if ((slice.m_sliceType == P_SLICE && slice.m_pps->bUseWeightPred) ||
@@ -1384,5 +1386,7 @@ 
                 }
                 WRITE_FLAG(!!wp[0].wtPresent, "luma_weight_lX_flag");
+#if CHECKED_BUILD || _DEBUG
                 totalSignalledWeightFlags += wp[0].wtPresent;
+#endif
             }
 
@@ -1393,5 +1397,7 @@ 
                     wp = slice.m_weightPredTable[list][ref];
                     WRITE_FLAG(!!wp[1].wtPresent, "chroma_weight_lX_flag");
+#if CHECKED_BUILD || _DEBUG
                     totalSignalledWeightFlags += 2 * wp[1].wtPresent;
+#endif
                 }
             }
--- source/encoder/sao.cpp	2023-06-27 10:11:49.000000000 -0400
+++ source/encoder/sao.cpp	2023-10-22 21:03:08.008923000 -0400
@@ -740,5 +740,4 @@ 
     const pixel* fenc0 = m_frame->m_fencPic->getPlaneAddr(plane, addr);
     const pixel* rec0  = reconPic->getPlaneAddr(plane, addr);
-    const pixel* fenc;
     const pixel* rec;
     intptr_t stride = plane ? reconPic->m_strideC : reconPic->m_stride;
@@ -870,5 +869,4 @@ 
                 }
 
-                fenc = fenc0;
                 rec  = rec0;
 
@@ -880,5 +878,4 @@ 
                 if (startY)
                 {
-                    fenc += stride;
                     rec += stride;
                 }
@@ -895,5 +892,4 @@ 
                     skipR = 5;
                 }
-                fenc = fenc0;
                 rec  = rec0;
                 startX = !lpelx;
@@ -905,5 +901,4 @@ 
                 if (startY)
                 {
-                    fenc += stride;
                     rec += stride;
                 }
--- source/test/pixelharness.cpp	2023-06-27 10:11:49.000000000 -0400
+++ source/test/pixelharness.cpp	2023-10-22 21:37:53.184785000 -0400
@@ -999,5 +999,4 @@ 
 bool PixelHarness::check_pixel_var(var_t ref, var_t opt)
 {
-    int j = 0;
 
     intptr_t stride = STRIDE;
@@ -1012,5 +1011,4 @@ 
 
         reportfail();
-        j += INCR;
     }
 
@@ -1352,6 +1350,4 @@ 
     int8_t _upBuff1_vec[MAX_CU_SIZE + 2], *upBuff1_vec = _upBuff1_vec + 1;
 
-    int j = 0;
-
     for (int i = 0; i < ITERS; i++)
     {
@@ -1380,5 +1376,4 @@ 
 
         reportfail();
-        j += INCR;
     }
 
@@ -1400,6 +1395,4 @@ 
     int8_t _upBufft_vec[MAX_CU_SIZE + 2], *upBufft_vec = _upBufft_vec + 1;
 
-    int j = 0;
-
     // NOTE: verify more times since our asm is NOT exact match to C, the output of upBuff* will be DIFFERENT
     for (int i = 0; i < ITERS * 10; i++)
@@ -1434,5 +1427,4 @@ 
 
         reportfail();
-        j += INCR;
     }
 
@@ -1452,6 +1444,4 @@ 
     int8_t _upBuff1_vec[MAX_CU_SIZE + 2], *upBuff1_vec = _upBuff1_vec + 1;
 
-    int j = 0;
-
     // (const pixel *fenc, const pixel *rec, intptr_t stride, int8_t *upBuff1, int endX, int endY, int32_t *stats, int32_t *count)
     for (int i = 0; i < ITERS; i++)
@@ -1483,5 +1473,4 @@ 
 
         reportfail();
-        j += INCR;
     }
 
@@ -1736,5 +1725,4 @@ 
     uint16_t ref_coeffFlag[MLS_GRP_NUM], opt_coeffFlag[MLS_GRP_NUM];    // bit mask map for non-zero coeff
 
-    int totalCoeffs = 0;
     for (int i = 0; i < 32 * 32; i++)
     {
@@ -1748,5 +1736,4 @@ 
         if ((rand() % 10) < 8)
             ref_src[i] *= -1;
-        totalCoeffs += (ref_src[i] != 0);
     }
 
@@ -1873,5 +1860,4 @@ 
     memset(opt_absCoeff, 0xCD, sizeof(opt_absCoeff));
 
-    int totalCoeffs = 0;
     for (int i = 0; i < 32 * 32; i++)
     {
@@ -1885,5 +1871,4 @@ 
         if ((rand() % 10) < 8)
             ref_src[i] *= -1;
-        totalCoeffs += (ref_src[i] != 0);
     }
 
@@ -2230,5 +2215,4 @@ 
 {
     intptr_t srcStep = 64;
-    int j = 0;
     uint32_t dst_ref[BUFFSIZE] = { 0 };
     uint32_t dst_opt[BUFFSIZE] = { 0 };
@@ -2260,6 +2244,5 @@ 
             return false;
 
-        reportfail()
-            j += INCR;
+        reportfail();
     }
     return true;
@@ -2272,5 +2255,4 @@ 
      * where data movement in AVX2 is 8 elements at a time */
     intptr_t srcStep[2] = { 56, 64 };
-    int j = 0;
     uint32_t dst_ref[BUFFSIZE] = { 0 };
     uint32_t dst_opt[BUFFSIZE] = { 0 };
@@ -2290,6 +2272,5 @@ 
                 return false;
 
-            reportfail()
-                j += INCR;
+            reportfail();
         }
     }
--- source/common/scaler.cpp	2023-06-27 10:11:49.000000000 -0400
+++ source/common/scaler.cpp	2023-10-22 21:43:05.304243000 -0400
@@ -512,8 +512,5 @@ 
     int  srcVCrPos;
     int  dstVCrPos;
-    int dst_stride = SCALER_ALIGN(dstW * sizeof(int16_t) + 66, 16);
     m_bitDepth = dstVideoDesc->m_inputDepth;
-    if (m_bitDepth == 16)
-        dst_stride <<= 1;
 
     m_algorithmFlags = algorithmFlags;
--- source/encoder/ratecontrol.cpp	2023-08-24 07:11:18.000000000 -0400
+++ source/encoder/ratecontrol.cpp	2023-10-22 22:12:33.546126000 -0400
@@ -580,5 +580,4 @@ 
             /* read stats */
             p = statsIn;
-            double totalQpAq = 0;
             for (int i = 0; i < m_numEntries; i++)
             {
@@ -645,5 +644,4 @@ 
                 }
                 rce->qScale = rce->newQScale = x265_qp2qScale(qpRc);
-                totalQpAq += qpAq;
                 rce->qpNoVbv = qNoVbv;
                 rce->qpaRc = qpRc;
@@ -999,5 +997,5 @@ 
 bool RateControl::initPass2()
 {
-    uint64_t allConstBits = 0, allCodedBits = 0;
+    uint64_t allConstBits = 0;
     uint64_t allAvailableBits = uint64_t(m_param->rc.bitrate * 1000. * m_numEntries * m_frameDuration);
     int startIndex, framesCount, endIndex;
@@ -1010,5 +1008,4 @@ 
     {
         allConstBits += m_rce2Pass[endIndex].miscBits;
-        allCodedBits += m_rce2Pass[endIndex].coeffBits + m_rce2Pass[endIndex].mvBits;
         if (m_param->rc.rateControlMode == X265_RC_CRF)
         {