Task #119194 - added.err

back to task #119194
download
Error: CPPCHECK_WARNING (CWE-909):
libvpx-1.16.0/vp9/encoder/vp9_encoder.c:4469: error[uninitStructMember]: Uninitialized struct member: encode_frame_decision.sb_params_list
# 4467|         int frame_height_sb = (cm->height + sb_size - 1) / sb_size;
# 4468|         int frame_width_sb = (cm->width + sb_size - 1) / sb_size;
# 4469|->       CHECK_MEM_ERROR(&cm->error, encode_frame_decision.sb_params_list,
# 4470|                         (sb_params *)vpx_calloc(
# 4471|                             frame_height_sb * frame_width_sb,

Error: CPPCHECK_WARNING (CWE-909):
libvpx-1.16.0/vp9/encoder/vp9_tpl_model.c:1697: error[uninitStructMember]: Uninitialized struct member: encode_frame_decision.sb_params_list
# 1695|     vpx_rc_encodeframe_decision_t encode_frame_decision;
# 1696|   
# 1697|->   CHECK_MEM_ERROR(
# 1698|         &cm->error, encode_frame_decision.sb_params_list,
# 1699|         (sb_params *)vpx_malloc(frame_height_sb * frame_width_sb *

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:21:7: note[note]: called from here
#   19|                                                       __m256i *f) {
#   20|     const __m256i f_low =
#   21|->       _mm256_broadcastsi128_si256(_mm_loadu_si128((const __m128i *)filter));
#   22|     const __m256i f_high = _mm256_broadcastsi128_si256(
#   23|         _mm_loadl_epi64((const __m128i *)(filter + 8)));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:22:26: note[note]: called from here
#   20|     const __m256i f_low =
#   21|         _mm256_broadcastsi128_si256(_mm_loadu_si128((const __m128i *)filter));
#   22|->   const __m256i f_high = _mm256_broadcastsi128_si256(
#   23|         _mm_loadl_epi64((const __m128i *)(filter + 8)));
#   24|   

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:25:10: note[note]: called from here
#   23|         _mm_loadl_epi64((const __m128i *)(filter + 8)));
#   24|   
#   25|->   f[0] = _mm256_shuffle_epi32(f_low, 0x00);
#   26|     f[1] = _mm256_shuffle_epi32(f_low, 0x55);
#   27|     f[2] = _mm256_shuffle_epi32(f_low, 0xaa);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:26:10: note[note]: called from here
#   24|   
#   25|     f[0] = _mm256_shuffle_epi32(f_low, 0x00);
#   26|->   f[1] = _mm256_shuffle_epi32(f_low, 0x55);
#   27|     f[2] = _mm256_shuffle_epi32(f_low, 0xaa);
#   28|     f[3] = _mm256_shuffle_epi32(f_low, 0xff);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:27:10: note[note]: called from here
#   25|     f[0] = _mm256_shuffle_epi32(f_low, 0x00);
#   26|     f[1] = _mm256_shuffle_epi32(f_low, 0x55);
#   27|->   f[2] = _mm256_shuffle_epi32(f_low, 0xaa);
#   28|     f[3] = _mm256_shuffle_epi32(f_low, 0xff);
#   29|     f[4] = _mm256_shuffle_epi32(f_high, 0x00);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:28:10: note[note]: called from here
#   26|     f[1] = _mm256_shuffle_epi32(f_low, 0x55);
#   27|     f[2] = _mm256_shuffle_epi32(f_low, 0xaa);
#   28|->   f[3] = _mm256_shuffle_epi32(f_low, 0xff);
#   29|     f[4] = _mm256_shuffle_epi32(f_high, 0x00);
#   30|     f[5] = _mm256_shuffle_epi32(f_high, 0x55);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:29:10: note[note]: called from here
#   27|     f[2] = _mm256_shuffle_epi32(f_low, 0xaa);
#   28|     f[3] = _mm256_shuffle_epi32(f_low, 0xff);
#   29|->   f[4] = _mm256_shuffle_epi32(f_high, 0x00);
#   30|     f[5] = _mm256_shuffle_epi32(f_high, 0x55);
#   31|   }

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:30:10: note[note]: called from here
#   28|     f[3] = _mm256_shuffle_epi32(f_low, 0xff);
#   29|     f[4] = _mm256_shuffle_epi32(f_high, 0x00);
#   30|->   f[5] = _mm256_shuffle_epi32(f_high, 0x55);
#   31|   }
#   32|   

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_avx2.c:34:45: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   32|   
#   33|   static INLINE __m256i highbd_convolve_12tap(const __m256i *s,
#   34|->                                             const __m256i *f) {
#   35|     const __m256i res_0 = _mm256_madd_epi16(s[0], f[0]);
#   36|     const __m256i res_1 = _mm256_madd_epi16(s[1], f[1]);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:104:14: note[note]: called from here
#  102|         // even pixels
#  103|         s[0] = r0;
#  104|->       s[1] = _mm_alignr_epi8(r1, r0, 4);
#  105|         s[2] = _mm_alignr_epi8(r1, r0, 8);
#  106|         s[3] = _mm_alignr_epi8(r1, r0, 12);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:105:14: note[note]: called from here
#  103|         s[0] = r0;
#  104|         s[1] = _mm_alignr_epi8(r1, r0, 4);
#  105|->       s[2] = _mm_alignr_epi8(r1, r0, 8);
#  106|         s[3] = _mm_alignr_epi8(r1, r0, 12);
#  107|         s[4] = r1;

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:106:14: note[note]: called from here
#  104|         s[1] = _mm_alignr_epi8(r1, r0, 4);
#  105|         s[2] = _mm_alignr_epi8(r1, r0, 8);
#  106|->       s[3] = _mm_alignr_epi8(r1, r0, 12);
#  107|         s[4] = r1;
#  108|         s[5] = _mm_alignr_epi8(r2, r1, 4);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:108:14: note[note]: called from here
#  106|         s[3] = _mm_alignr_epi8(r1, r0, 12);
#  107|         s[4] = r1;
#  108|->       s[5] = _mm_alignr_epi8(r2, r1, 4);
#  109|   
#  110|         // 00 02 04 06

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:114:14: note[note]: called from here
#  112|   
#  113|         // odd pixels
#  114|->       s[0] = _mm_alignr_epi8(r1, r0, 2);
#  115|         s[1] = _mm_alignr_epi8(r1, r0, 6);
#  116|         s[2] = _mm_alignr_epi8(r1, r0, 10);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:115:14: note[note]: called from here
#  113|         // odd pixels
#  114|         s[0] = _mm_alignr_epi8(r1, r0, 2);
#  115|->       s[1] = _mm_alignr_epi8(r1, r0, 6);
#  116|         s[2] = _mm_alignr_epi8(r1, r0, 10);
#  117|         s[3] = _mm_alignr_epi8(r1, r0, 14);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:116:14: note[note]: called from here
#  114|         s[0] = _mm_alignr_epi8(r1, r0, 2);
#  115|         s[1] = _mm_alignr_epi8(r1, r0, 6);
#  116|->       s[2] = _mm_alignr_epi8(r1, r0, 10);
#  117|         s[3] = _mm_alignr_epi8(r1, r0, 14);
#  118|         s[4] = _mm_alignr_epi8(r2, r1, 2);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:117:14: note[note]: called from here
#  115|         s[1] = _mm_alignr_epi8(r1, r0, 6);
#  116|         s[2] = _mm_alignr_epi8(r1, r0, 10);
#  117|->       s[3] = _mm_alignr_epi8(r1, r0, 14);
#  118|         s[4] = _mm_alignr_epi8(r2, r1, 2);
#  119|         s[5] = _mm_alignr_epi8(r2, r1, 6);

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:118:14: note[note]: called from here
#  116|         s[2] = _mm_alignr_epi8(r1, r0, 10);
#  117|         s[3] = _mm_alignr_epi8(r1, r0, 14);
#  118|->       s[4] = _mm_alignr_epi8(r2, r1, 2);
#  119|         s[5] = _mm_alignr_epi8(r2, r1, 6);
#  120|   

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/highbd_temporal_filter_ssse3.c:119:14: note[note]: called from here
#  117|         s[3] = _mm_alignr_epi8(r1, r0, 14);
#  118|         s[4] = _mm_alignr_epi8(r2, r1, 2);
#  119|->       s[5] = _mm_alignr_epi8(r2, r1, 6);
#  120|   
#  121|         // 01 03 05 07

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:40:7: note[note]: called from here
#   38|                                                __m256i *f) {
#   39|     const __m256i f_low =
#   40|->       _mm256_broadcastsi128_si256(_mm_loadu_si128((const __m128i *)filter));
#   41|     const __m256i f_high = _mm256_broadcastsi128_si256(
#   42|         _mm_loadl_epi64((const __m128i *)(filter + 8)));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:41:26: note[note]: called from here
#   39|     const __m256i f_low =
#   40|         _mm256_broadcastsi128_si256(_mm_loadu_si128((const __m128i *)filter));
#   41|->   const __m256i f_high = _mm256_broadcastsi128_si256(
#   42|         _mm_loadl_epi64((const __m128i *)(filter + 8)));
#   43|   

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:44:10: note[note]: called from here
#   42|         _mm_loadl_epi64((const __m128i *)(filter + 8)));
#   43|   
#   44|->   f[0] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0200u));
#   45|     f[1] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0604u));
#   46|     f[2] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0a08u));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:45:10: note[note]: called from here
#   43|   
#   44|     f[0] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0200u));
#   45|->   f[1] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0604u));
#   46|     f[2] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0a08u));
#   47|     f[3] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0e0cu));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:46:10: note[note]: called from here
#   44|     f[0] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0200u));
#   45|     f[1] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0604u));
#   46|->   f[2] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0a08u));
#   47|     f[3] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0e0cu));
#   48|     f[4] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0200u));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:47:10: note[note]: called from here
#   45|     f[1] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0604u));
#   46|     f[2] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0a08u));
#   47|->   f[3] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0e0cu));
#   48|     f[4] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0200u));
#   49|     f[5] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0604u));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:48:10: note[note]: called from here
#   46|     f[2] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0a08u));
#   47|     f[3] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0e0cu));
#   48|->   f[4] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0200u));
#   49|     f[5] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0604u));
#   50|   }

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:49:10: note[note]: called from here
#   47|     f[3] = _mm256_shuffle_epi8(f_low, _mm256_set1_epi16(0x0e0cu));
#   48|     f[4] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0200u));
#   49|->   f[5] = _mm256_shuffle_epi8(f_high, _mm256_set1_epi16(0x0604u));
#   50|   }
#   51|   

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_avx2.c:70:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   68|   }
#   69|   
#   70|-> static INLINE __m256i convolve12_16_avx2(const __m256i *s, const __m256i *f) {
#   71|     // multiply 2 adjacent elements with the filter and add the result
#   72|     const __m256i k_64 = _mm256_set1_epi16(1 << (FILTER_BITS - 1));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_ssse3.c:47:10: note[note]: called from here
#   45|     const __m128i f_high = _mm_loadl_epi64((const __m128i *)(filter + 8));
#   46|   
#   47|->   f[0] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0200u));
#   48|     f[1] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0604u));
#   49|     f[2] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0a08u));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_ssse3.c:48:10: note[note]: called from here
#   46|   
#   47|     f[0] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0200u));
#   48|->   f[1] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0604u));
#   49|     f[2] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0a08u));
#   50|     f[3] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0e0cu));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_ssse3.c:49:10: note[note]: called from here
#   47|     f[0] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0200u));
#   48|     f[1] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0604u));
#   49|->   f[2] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0a08u));
#   50|     f[3] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0e0cu));
#   51|     f[4] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0200u));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_ssse3.c:50:10: note[note]: called from here
#   48|     f[1] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0604u));
#   49|     f[2] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0a08u));
#   50|->   f[3] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0e0cu));
#   51|     f[4] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0200u));
#   52|     f[5] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0604u));

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_ssse3.c:51:10: note[note]: called from here
#   49|     f[2] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0a08u));
#   50|     f[3] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0e0cu));
#   51|->   f[4] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0200u));
#   52|     f[5] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0604u));
#   53|   }

Error: COMPILER_WARNING:
libvpx-1.16.0/vp9/encoder/x86/temporal_filter_ssse3.c:52:10: note[note]: called from here
#   50|     f[3] = _mm_shuffle_epi8(f_low, _mm_set1_epi16(0x0e0cu));
#   51|     f[4] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0200u));
#   52|->   f[5] = _mm_shuffle_epi8(f_high, _mm_set1_epi16(0x0604u));
#   53|   }
#   54|   

Error: COMPILER_WARNING:
libvpx-1.16.0/vpx_dsp/x86/sad_avx512.c:20:11: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
#   18|     int i, res;
#   19|     __m512i sad_reg, ref_reg;
#   20|->   __m512i sum_sad = _mm512_setzero_si512();
#   21|     for (i = 0; i < h; i++) {
#   22|       ref_reg = _mm512_loadu_si512((const __m512i *)ref_ptr);

Error: COMPILER_WARNING:
libvpx-1.16.0/vpx_dsp/x86/sad_avx512.c:20:21: note[note]: called from here
#   18|     int i, res;
#   19|     __m512i sad_reg, ref_reg;
#   20|->   __m512i sum_sad = _mm512_setzero_si512();
#   21|     for (i = 0; i < h; i++) {
#   22|       ref_reg = _mm512_loadu_si512((const __m512i *)ref_ptr);

Error: COMPILER_WARNING:
libvpx-1.16.0/vpx_dsp/x86/sad_avx512.c:22:15: note[note]: called from here
#   20|     __m512i sum_sad = _mm512_setzero_si512();
#   21|     for (i = 0; i < h; i++) {
#   22|->     ref_reg = _mm512_loadu_si512((const __m512i *)ref_ptr);
#   23|       sad_reg =
#   24|           _mm512_sad_epu8(ref_reg, _mm512_loadu_si512((__m512 const *)src_ptr));

Error: COMPILER_WARNING:
libvpx-1.16.0/vpx_dsp/x86/sad_avx512.c:24:9: note[note]: called from here
#   22|       ref_reg = _mm512_loadu_si512((const __m512i *)ref_ptr);
#   23|       sad_reg =
#   24|->         _mm512_sad_epu8(ref_reg, _mm512_loadu_si512((__m512 const *)src_ptr));
#   25|       sum_sad = _mm512_add_epi32(sum_sad, sad_reg);
#   26|       ref_ptr += ref_stride;

Error: COMPILER_WARNING:
libvpx-1.16.0/vpx_dsp/x86/sad_avx512.c:25:15: note[note]: called from here
#   23|       sad_reg =
#   24|           _mm512_sad_epu8(ref_reg, _mm512_loadu_si512((__m512 const *)src_ptr));
#   25|->     sum_sad = _mm512_add_epi32(sum_sad, sad_reg);
#   26|       ref_ptr += ref_stride;
#   27|       src_ptr += src_stride;

Error: COMPILER_WARNING:
libvpx-1.16.0/vpx_dsp/x86/sad_avx512.c:29:9: note[note]: called from here
#   27|       src_ptr += src_stride;
#   28|     }
#   29|->   res = _mm512_reduce_add_epi32(sum_sad);
#   30|     return res;
#   31|   }