FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libavfilter
x86
vf_pullup_init.c
Go to the documentation of this file.
1
/*
2
* This file is part of FFmpeg.
3
*
4
* FFmpeg is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
8
*
9
* FFmpeg is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with FFmpeg; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
#include "
libavutil/attributes.h
"
20
#include "
libavutil/cpu.h
"
21
#include "
libavutil/mem.h
"
22
#include "
libavutil/x86/asm.h
"
23
#include "
libavutil/x86/cpu.h
"
24
#include "
libavfilter/vf_pullup.h
"
25
26
int
ff_pullup_filter_diff_mmx
(
const
uint8_t
*
a
,
const
uint8_t
*
b
, ptrdiff_t
s
);
27
int
ff_pullup_filter_comb_mmx
(
const
uint8_t
*
a
,
const
uint8_t
*
b
, ptrdiff_t
s
);
28
int
ff_pullup_filter_var_mmx
(
const
uint8_t
*
a
,
const
uint8_t
*
b
, ptrdiff_t
s
);
29
30
av_cold
void
ff_pullup_init_x86
(
PullupContext
*
s
)
31
{
32
#if HAVE_YASM
33
int
cpu_flags =
av_get_cpu_flags
();
34
35
if
(
EXTERNAL_MMX
(cpu_flags)) {
36
s->
diff
=
ff_pullup_filter_diff_mmx
;
37
s->
comb
=
ff_pullup_filter_comb_mmx
;
38
s->
var
=
ff_pullup_filter_var_mmx
;
39
}
40
#endif
41
}
EXTERNAL_MMX
#define EXTERNAL_MMX(flags)
Definition:
cpu.h:54
s
const char * s
Definition:
avisynth_c.h:631
asm.h
mem.h
memory handling functions
b
const char * b
Definition:
vf_curves.c:109
cpu.h
attributes.h
Macro definitions for various function/variable attributes.
ff_pullup_filter_var_mmx
int ff_pullup_filter_var_mmx(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
uint8_t
uint8_t
Definition:
audio_convert.c:194
av_cold
#define av_cold
Definition:
attributes.h:82
vf_pullup.h
ff_pullup_filter_comb_mmx
int ff_pullup_filter_comb_mmx(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
PullupContext::var
int(* var)(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
Definition:
vf_pullup.h:66
ff_pullup_filter_diff_mmx
int ff_pullup_filter_diff_mmx(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
PullupContext::comb
int(* comb)(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
Definition:
vf_pullup.h:65
PullupContext::diff
int(* diff)(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
Definition:
vf_pullup.h:64
PullupContext
Definition:
vf_pullup.h:49
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:76
ff_pullup_init_x86
av_cold void ff_pullup_init_x86(PullupContext *s)
Definition:
vf_pullup_init.c:30
a
a
Definition:
h264pred_template.c:468
Generated on Mon Feb 15 2016 15:20:45 for FFmpeg by
1.8.6