FFmpeg
libavfilter
x86
vf_pp7_init.c
Go to the documentation of this file.
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_pp7.h
"
25
26
void
ff_pp7_dctB_mmx
(int16_t *dst, int16_t *
src
);
27
28
av_cold
void
ff_pp7_init_x86
(
PP7Context
*p)
29
{
30
int
cpu_flags
=
av_get_cpu_flags
();
31
32
if
(
EXTERNAL_MMX
(
cpu_flags
))
33
p->
dctB
=
ff_pp7_dctB_mmx
;
34
}
cpu.h
av_get_cpu_flags
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition:
cpu.c:103
cpu_flags
static atomic_int cpu_flags
Definition:
cpu.c:52
av_cold
#define av_cold
Definition:
attributes.h:90
cpu.h
vf_pp7.h
attributes.h
ff_pp7_dctB_mmx
void ff_pp7_dctB_mmx(int16_t *dst, int16_t *src)
ff_pp7_init_x86
av_cold void ff_pp7_init_x86(PP7Context *p)
Definition:
vf_pp7_init.c:28
src
INIT_CLIP pixel * src
Definition:
h264pred_template.c:418
PP7Context
Definition:
vf_pp7.h:28
EXTERNAL_MMX
#define EXTERNAL_MMX(flags)
Definition:
cpu.h:56
PP7Context::dctB
void(* dctB)(int16_t *dst, int16_t *src)
Definition:
vf_pp7.h:41
Generated on Tue Feb 28 2023 21:34:01 for FFmpeg by
1.8.17