Coverage Report

Created: 2026-04-01 07:42

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
202M
                                       int stride, char *eobs) {
21
202M
  int i;
22
23
1.01G
  for (i = 0; i < 4; ++i) {
24
810M
    if (((short *)(eobs))[0]) {
25
665M
      if (((short *)(eobs))[0] & 0xfefe) {
26
277M
        vp8_idct_dequant_full_2x_sse2(q, dq, dst, stride);
27
388M
      } else {
28
388M
        vp8_idct_dequant_0_2x_sse2(q, dq, dst, stride);
29
388M
      }
30
665M
    }
31
810M
    if (((short *)(eobs))[1]) {
32
672M
      if (((short *)(eobs))[1] & 0xfefe) {
33
270M
        vp8_idct_dequant_full_2x_sse2(q + 32, dq, dst + 8, stride);
34
402M
      } else {
35
402M
        vp8_idct_dequant_0_2x_sse2(q + 32, dq, dst + 8, stride);
36
402M
      }
37
672M
    }
38
810M
    q += 64;
39
810M
    dst += stride * 4;
40
810M
    eobs += 4;
41
810M
  }
42
202M
}
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
568M
                                        char *eobs) {
48
568M
  if (((short *)(eobs))[0]) {
49
89.7M
    if (((short *)(eobs))[0] & 0xfefe) {
50
37.3M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_u, stride);
51
52.3M
    } else {
52
52.3M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_u, stride);
53
52.3M
    }
54
89.7M
  }
55
568M
  q += 32;
56
568M
  dst_u += stride * 4;
57
58
568M
  if (((short *)(eobs))[1]) {
59
89.8M
    if (((short *)(eobs))[1] & 0xfefe) {
60
37.2M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_u, stride);
61
52.6M
    } else {
62
52.6M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_u, stride);
63
52.6M
    }
64
89.8M
  }
65
568M
  q += 32;
66
67
568M
  if (((short *)(eobs))[2]) {
68
91.6M
    if (((short *)(eobs))[2] & 0xfefe) {
69
38.2M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_v, stride);
70
53.4M
    } else {
71
53.4M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_v, stride);
72
53.4M
    }
73
91.6M
  }
74
568M
  q += 32;
75
568M
  dst_v += stride * 4;
76
77
568M
  if (((short *)(eobs))[3]) {
78
88.2M
    if (((short *)(eobs))[3] & 0xfefe) {
79
41.1M
      vp8_idct_dequant_full_2x_sse2(q, dq, dst_v, stride);
80
47.1M
    } else {
81
47.1M
      vp8_idct_dequant_0_2x_sse2(q, dq, dst_v, stride);
82
47.1M
    }
83
88.2M
  }
84
568M
}