Coverage Report

Created: 2026-05-16 07:49

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
304M
                                       int stride, char *eobs) {
21
304M
  int i;
22
23
1.52G
  for (i = 0; i < 4; ++i) {
24
1.21G
    if (((short *)(eobs))[0]) {
25
992M
      if (((short *)(eobs))[0] & 0xfefe) {
26
415M
        vp8_idct_dequant_full_2x_sse2(q, dq, dst, stride);
27
577M
      } else {
28
577M
        vp8_idct_dequant_0_2x_sse2(q, dq, dst, stride);
29
577M
      }
30
992M
    }
31
1.21G
    if (((short *)(eobs))[1]) {
32
991M
      if (((short *)(eobs))[1] & 0xfefe) {
33
410M
        vp8_idct_dequant_full_2x_sse2(q + 32, dq, dst + 8, stride);
34
581M
      } else {
35
581M
        vp8_idct_dequant_0_2x_sse2(q + 32, dq, dst + 8, stride);
36
581M
      }
37
991M
    }
38
1.21G
    q += 64;
39
1.21G
    dst += stride * 4;
40
1.21G
    eobs += 4;
41
1.21G
  }
42
304M
}
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
705M
                                        char *eobs) {
48
705M
  if (((short *)(eobs))[0]) {
49
121M
    if (((short *)(eobs))[0] & 0xfefe) {
50
45.8M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_u, stride);
51
75.8M
    } else {
52
75.8M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_u, stride);
53
75.8M
    }
54
121M
  }
55
705M
  q += 32;
56
705M
  dst_u += stride * 4;
57
58
705M
  if (((short *)(eobs))[1]) {
59
118M
    if (((short *)(eobs))[1] & 0xfefe) {
60
51.8M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_u, stride);
61
66.9M
    } else {
62
66.9M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_u, stride);
63
66.9M
    }
64
118M
  }
65
705M
  q += 32;
66
67
705M
  if (((short *)(eobs))[2]) {
68
123M
    if (((short *)(eobs))[2] & 0xfefe) {
69
46.2M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_v, stride);
70
76.7M
    } else {
71
76.7M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_v, stride);
72
76.7M
    }
73
123M
  }
74
705M
  q += 32;
75
705M
  dst_v += stride * 4;
76
77
705M
  if (((short *)(eobs))[3]) {
78
119M
    if (((short *)(eobs))[3] & 0xfefe) {
79
55.9M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_v, stride);
80
63.2M
    } else {
81
63.2M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_v, stride);
82
63.2M
    }
83
119M
  }
84
705M
}