FFmpeg coverage


Directory: ../../../ffmpeg/
File: src/libavfilter/x86/vf_pp7_init.c
Date: 2026-07-16 17:05:34
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 /*
2 * Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #include "libavutil/attributes.h"
22 #include "libavutil/cpu.h"
23 #include "libavutil/x86/cpu.h"
24 #include "libavfilter/vf_pp7dsp.h"
25
26 void ff_pp7_dctB_sse2(int16_t *restrict dst, const int16_t *restrict src);
27
28 15 av_cold void ff_pp7dsp_init_x86(PP7DSPContext *p)
29 {
30 15 int cpu_flags = av_get_cpu_flags();
31
32
2/2
✓ Branch 0 taken 10 times.
✓ Branch 1 taken 5 times.
15 if (EXTERNAL_SSE2(cpu_flags))
33 10 p->dctB = ff_pp7_dctB_sse2;
34 15 }
35