Coverage Report

Created: 2025-12-31 07:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libvpx/vp8/common/x86/idct_blk_sse2.c
Line
Count
Source
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5
 *  that can be found in the LICENSE file in the root of the source
6
 *  tree. An additional intellectual property rights grant can be found
7
 *  in the file PATENTS.  All contributing project authors may
8
 *  be found in the AUTHORS file in the root of the source tree.
9
 */
10
11
#include "vpx_config.h"
12
#include "vp8_rtcd.h"
13
14
void vp8_idct_dequant_0_2x_sse2(short *q, short *dq, unsigned char *dst,
15
                                int dst_stride);
16
void vp8_idct_dequant_full_2x_sse2(short *q, short *dq, unsigned char *dst,
17
                                   int dst_stride);
18
19
void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst,
20
285M
                                       int stride, char *eobs) {
21
285M
  int i;
22
23
1.42G
  for (i = 0; i < 4; ++i) {
24
1.14G
    if (((short *)(eobs))[0]) {
25
873M
      if (((short *)(eobs))[0] & 0xfefe) {
26
402M
        vp8_idct_dequant_full_2x_sse2(q, dq, dst, stride);
27
471M
      } else {
28
471M
        vp8_idct_dequant_0_2x_sse2(q, dq, dst, stride);
29
471M
      }
30
873M
    }
31
1.14G
    if (((short *)(eobs))[1]) {
32
906M
      if (((short *)(eobs))[1] & 0xfefe) {
33
442M
        vp8_idct_dequant_full_2x_sse2(q + 32, dq, dst + 8, stride);
34
463M
      } else {
35
463M
        vp8_idct_dequant_0_2x_sse2(q + 32, dq, dst + 8, stride);
36
463M
      }
37
906M
    }
38
1.14G
    q += 64;
39
1.14G
    dst += stride * 4;
40
1.14G
    eobs += 4;
41
1.14G
  }
42
285M
}
43
44
void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq,
45
                                        unsigned char *dst_u,
46
                                        unsigned char *dst_v, int stride,
47
860M
                                        char *eobs) {
48
860M
  if (((short *)(eobs))[0]) {
49
126M
    if (((short *)(eobs))[0] & 0xfefe) {
50
52.7M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_u, stride);
51
73.5M
    } else {
52
73.5M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_u, stride);
53
73.5M
    }
54
126M
  }
55
860M
  q += 32;
56
860M
  dst_u += stride * 4;
57
58
860M
  if (((short *)(eobs))[1]) {
59
132M
    if (((short *)(eobs))[1] & 0xfefe) {
60
67.2M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_u, stride);
61
67.2M
    } else {
62
65.2M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_u, stride);
63
65.2M
    }
64
132M
  }
65
860M
  q += 32;
66
67
860M
  if (((short *)(eobs))[2]) {
68
118M
    if (((short *)(eobs))[2] & 0xfefe) {
69
72.4M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_v, stride);
70
72.4M
    } else {
71
45.9M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_v, stride);
72
45.9M
    }
73
118M
  }
74
860M
  q += 32;
75
860M
  dst_v += stride * 4;
76
77
860M
  if (((short *)(eobs))[3]) {
78
105M
    if (((short *)(eobs))[3] & 0xfefe) {
79
57.3M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_v, stride);
80
57.3M
    } else {
81
48.2M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_v, stride);
82
48.2M
    }
83
105M
  }
84
860M
}