Coverage Report

Created: 2026-09-14 07:15

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libde265/libde265/fallback-intrapred.cc
Line
Count
Source
1
/*
2
 * H.265 video codec.
3
 * Copyright (c) 2026 Dirk Farin <dirk.farin@gmail.com>
4
 *
5
 * This file is part of libde265.
6
 *
7
 * libde265 is free software: you can redistribute it and/or modify
8
 * it under the terms of the GNU Lesser General Public License as
9
 * published by the Free Software Foundation, either version 3 of
10
 * the License, or (at your option) any later version.
11
 *
12
 * libde265 is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public License
18
 * along with libde265.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
#include "fallback-intrapred.h"
22
#include "intrapred.h"
23
24
25
template <class pixel_t>
26
void intra_pred_dc_fallback(pixel_t* dst, ptrdiff_t stride, int nT, int cIdx, const pixel_t* border)
27
4.44M
{
28
4.44M
  intra_prediction_DC<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
29
4.44M
}
void intra_pred_dc_fallback<unsigned char>(unsigned char*, long, int, int, unsigned char const*)
Line
Count
Source
27
4.30M
{
28
4.30M
  intra_prediction_DC<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
29
4.30M
}
void intra_pred_dc_fallback<unsigned short>(unsigned short*, long, int, int, unsigned short const*)
Line
Count
Source
27
145k
{
28
145k
  intra_prediction_DC<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
29
145k
}
30
31
template <class pixel_t>
32
void intra_pred_planar_fallback(pixel_t* dst, ptrdiff_t stride, int nT, int cIdx, const pixel_t* border)
33
5.50M
{
34
5.50M
  intra_prediction_planar<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
35
5.50M
}
void intra_pred_planar_fallback<unsigned char>(unsigned char*, long, int, int, unsigned char const*)
Line
Count
Source
33
5.21M
{
34
5.21M
  intra_prediction_planar<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
35
5.21M
}
void intra_pred_planar_fallback<unsigned short>(unsigned short*, long, int, int, unsigned short const*)
Line
Count
Source
33
296k
{
34
296k
  intra_prediction_planar<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
35
296k
}
36
37
template <class pixel_t>
38
void intra_pred_angular_fallback(pixel_t* dst, ptrdiff_t stride, int bit_depth, int disableBoundaryFilter,
39
                                 int xB0, int yB0, int mode, int nT, int cIdx, const pixel_t* border)
40
6.74M
{
41
6.74M
  intra_prediction_angular<pixel_t>(dst, (int)stride, bit_depth, (bool)disableBoundaryFilter,
42
6.74M
                                    xB0, yB0, (enum IntraPredMode)mode, nT, cIdx,
43
6.74M
                                    const_cast<pixel_t*>(border));
44
6.74M
}
void intra_pred_angular_fallback<unsigned char>(unsigned char*, long, int, int, int, int, int, int, int, unsigned char const*)
Line
Count
Source
40
6.24M
{
41
6.24M
  intra_prediction_angular<pixel_t>(dst, (int)stride, bit_depth, (bool)disableBoundaryFilter,
42
6.24M
                                    xB0, yB0, (enum IntraPredMode)mode, nT, cIdx,
43
6.24M
                                    const_cast<pixel_t*>(border));
44
6.24M
}
void intra_pred_angular_fallback<unsigned short>(unsigned short*, long, int, int, int, int, int, int, int, unsigned short const*)
Line
Count
Source
40
498k
{
41
498k
  intra_prediction_angular<pixel_t>(dst, (int)stride, bit_depth, (bool)disableBoundaryFilter,
42
498k
                                    xB0, yB0, (enum IntraPredMode)mode, nT, cIdx,
43
498k
                                    const_cast<pixel_t*>(border));
44
498k
}
45
46
47
// explicit instantiations so the symbols can be installed into the acceleration table
48
49
template void intra_pred_dc_fallback<uint8_t> (uint8_t*,  ptrdiff_t, int, int, const uint8_t*);
50
template void intra_pred_dc_fallback<uint16_t>(uint16_t*, ptrdiff_t, int, int, const uint16_t*);
51
template void intra_pred_planar_fallback<uint8_t> (uint8_t*,  ptrdiff_t, int, int, const uint8_t*);
52
template void intra_pred_planar_fallback<uint16_t>(uint16_t*, ptrdiff_t, int, int, const uint16_t*);
53
template void intra_pred_angular_fallback<uint8_t> (uint8_t*,  ptrdiff_t, int, int, int, int, int, int, int, const uint8_t*);
54
template void intra_pred_angular_fallback<uint16_t>(uint16_t*, ptrdiff_t, int, int, int, int, int, int, int, const uint16_t*);