Coverage Report

Created: 2026-08-13 07:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/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
0
{
28
0
  intra_prediction_DC<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
29
0
}
Unexecuted instantiation: void intra_pred_dc_fallback<unsigned char>(unsigned char*, long, int, int, unsigned char const*)
Unexecuted instantiation: void intra_pred_dc_fallback<unsigned short>(unsigned short*, long, int, int, unsigned short const*)
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
0
{
34
0
  intra_prediction_planar<pixel_t>(dst, (int)stride, nT, cIdx, const_cast<pixel_t*>(border));
35
0
}
Unexecuted instantiation: void intra_pred_planar_fallback<unsigned char>(unsigned char*, long, int, int, unsigned char const*)
Unexecuted instantiation: void intra_pred_planar_fallback<unsigned short>(unsigned short*, long, int, int, unsigned short const*)
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
0
{
41
0
  intra_prediction_angular<pixel_t>(dst, (int)stride, bit_depth, (bool)disableBoundaryFilter,
42
0
                                    xB0, yB0, (enum IntraPredMode)mode, nT, cIdx,
43
0
                                    const_cast<pixel_t*>(border));
44
0
}
Unexecuted instantiation: void intra_pred_angular_fallback<unsigned char>(unsigned char*, long, int, int, int, int, int, int, int, unsigned char const*)
Unexecuted instantiation: void intra_pred_angular_fallback<unsigned short>(unsigned short*, long, int, int, int, int, int, int, int, unsigned short const*)
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*);