FFmpeg
hpeldsp_init_armv6.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #include <stddef.h>
22 #include <stdint.h>
23 
24 #include "libavutil/attributes.h"
25 #include "hpeldsp_arm.h"
26 
27 void ff_put_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
28 void ff_put_pixels16_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
29 void ff_put_pixels16_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
30 
31 void ff_put_pixels16_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
32 void ff_put_pixels16_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
33 
34 void ff_avg_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
35 
36 void ff_put_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
37 void ff_put_pixels8_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
38 void ff_put_pixels8_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
39 
40 void ff_put_pixels8_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
41 void ff_put_pixels8_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
42 
43 void ff_avg_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
44 
46 {
47  c->put_pixels_tab[0][0] = ff_put_pixels16_armv6;
48  c->put_pixels_tab[0][1] = ff_put_pixels16_x2_armv6;
49  c->put_pixels_tab[0][2] = ff_put_pixels16_y2_armv6;
50 /* c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_armv6; */
51  c->put_pixels_tab[1][0] = ff_put_pixels8_armv6;
52  c->put_pixels_tab[1][1] = ff_put_pixels8_x2_armv6;
53  c->put_pixels_tab[1][2] = ff_put_pixels8_y2_armv6;
54 /* c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_armv6; */
55 
56  c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_armv6;
57  c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_armv6;
58  c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_armv6;
59 /* c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_armv6; */
60  c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_armv6;
61  c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_armv6;
62  c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_armv6;
63 /* c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_armv6; */
64 
65  c->avg_pixels_tab[0][0] = ff_avg_pixels16_armv6;
66  c->avg_pixels_tab[1][0] = ff_avg_pixels8_armv6;
67 }
ff_put_pixels16_y2_no_rnd_armv6
void ff_put_pixels16_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_avg_pixels8_armv6
void ff_avg_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_put_pixels16_x2_armv6
void ff_put_pixels16_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_put_pixels8_x2_armv6
void ff_put_pixels8_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_put_pixels16_armv6
void ff_put_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
av_cold
#define av_cold
Definition: attributes.h:90
ff_put_pixels16_y2_armv6
void ff_put_pixels16_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_put_pixels16_x2_no_rnd_armv6
void ff_put_pixels16_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_put_pixels8_armv6
void ff_put_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
c
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
HpelDSPContext
Half-pel DSP context.
Definition: hpeldsp.h:45
ff_hpeldsp_init_armv6
av_cold void ff_hpeldsp_init_armv6(HpelDSPContext *c, int flags)
Definition: hpeldsp_init_armv6.c:45
ff_put_pixels8_y2_armv6
void ff_put_pixels8_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
ff_put_pixels8_y2_no_rnd_armv6
void ff_put_pixels8_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
attributes.h
ff_avg_pixels16_armv6
void ff_avg_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)
hpeldsp_arm.h
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:482
ff_put_pixels8_x2_no_rnd_armv6
void ff_put_pixels8_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int)