mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ARM: Move asm.S from libavcodec to libavutil
This will allow for easier implementation of ARM-optimized functions in libraries other than libavcodec.
This commit is contained in:
parent
bc92214e27
commit
94d2b0d2fd
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
function ff_ps_add_squares_neon, export=1
|
function ff_ps_add_squares_neon, export=1
|
||||||
mov r3, r0
|
mov r3, r0
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
function ff_ac3_update_bap_counts_arm, export=1
|
function ff_ac3_update_bap_counts_arm, export=1
|
||||||
push {lr}
|
push {lr}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
function ff_ac3_bit_alloc_calc_bap_armv6, export=1
|
function ff_ac3_bit_alloc_calc_bap_armv6, export=1
|
||||||
ldr r12, [sp]
|
ldr r12, [sp]
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
function ff_ac3_max_msb_abs_int16_neon, export=1
|
function ff_ac3_max_msb_abs_int16_neon, export=1
|
||||||
vmov.i16 q0, #0
|
vmov.i16 q0, #0
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
function ff_dca_lfe_fir_neon, export=1
|
function ff_dca_lfe_fir_neon, export=1
|
||||||
push {r4-r6,lr}
|
push {r4-r6,lr}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
@
|
@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* VFP is a floating point coprocessor used in some ARM cores. VFP11 has 1 cycle
|
* VFP is a floating point coprocessor used in some ARM cores. VFP11 has 1 cycle
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
.macro bflies d0, d1, r0, r1
|
.macro bflies d0, d1, r0, r1
|
||||||
vrev64.32 \r0, \d1 @ t5, t6, t1, t2
|
vrev64.32 \r0, \d1 @ t5, t6, t1, t2
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
#define M_SQRT1_2 0.70710678118654752440
|
#define M_SQRT1_2 0.70710678118654752440
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ARM VFP optimized float to int16 conversion.
|
* ARM VFP optimized float to int16 conversion.
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
/* chroma_mc8(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y) */
|
/* chroma_mc8(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y) */
|
||||||
.macro h264_chroma_mc8 type, codec=h264
|
.macro h264_chroma_mc8 type, codec=h264
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
#include "neon.S"
|
#include "neon.S"
|
||||||
|
|
||||||
/* H.264 loop filter */
|
/* H.264 loop filter */
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
.macro ldcol.8 rd, rs, rt, n=8, hi=0
|
.macro ldcol.8 rd, rs, rt, n=8, hi=0
|
||||||
.if \n == 8 || \hi == 0
|
.if \n == 8 || \hi == 0
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
.fpu neon
|
.fpu neon
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
#define FIX_0_298631336 2446
|
#define FIX_0_298631336 2446
|
||||||
#define FIX_0_541196100 4433
|
#define FIX_0_541196100 4433
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
.macro skip args:vararg
|
.macro skip args:vararg
|
||||||
.endm
|
.endm
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Special optimized version of dct_unquantize_h263_helper_c, it
|
* Special optimized version of dct_unquantize_h263_helper_c, it
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
#include "asm-offsets.h"
|
#include "asm-offsets.h"
|
||||||
|
|
||||||
function ff_dct_unquantize_h263_inter_neon, export=1
|
function ff_dct_unquantize_h263_inter_neon, export=1
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
#include "neon.S"
|
#include "neon.S"
|
||||||
|
|
||||||
.macro rv34_inv_transform r0
|
.macro rv34_inv_transform r0
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
#include "neon.S"
|
#include "neon.S"
|
||||||
|
|
||||||
.macro qpel_lowpass r0, r1, rc1, rc2, shift
|
.macro qpel_lowpass r0, r1, rc1, rc2, shift
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
function ff_sbr_sum64x5_neon, export=1
|
function ff_sbr_sum64x5_neon, export=1
|
||||||
push {lr}
|
push {lr}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
/* useful constants for the algorithm, they are save in __constant_ptr__ at */
|
/* useful constants for the algorithm, they are save in __constant_ptr__ at */
|
||||||
/* the end of the source code.*/
|
/* the end of the source code.*/
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
#define W1 22725 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
#define W1 22725 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
||||||
#define W2 21407 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
#define W2 21407 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
#define W1 22725 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
#define W1 22725 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
||||||
#define W2 21407 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
#define W2 21407 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
#define W1 22725 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
|
#define W1 22725 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
|
||||||
#define W2 21407 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
|
#define W2 21407 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
preserve8
|
preserve8
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
const vp3_idct_constants, align=4
|
const vp3_idct_constants, align=4
|
||||||
.short 64277, 60547, 54491, 46341, 36410, 25080, 12785
|
.short 64277, 60547, 54491, 46341, 36410, 25080, 12785
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
.macro vp6_edge_filter
|
.macro vp6_edge_filter
|
||||||
vdup.16 q3, r2 @ t
|
vdup.16 q3, r2 @ t
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
.macro rac_get_prob h, bs, buf, cw, pr, t0, t1
|
.macro rac_get_prob h, bs, buf, cw, pr, t0, t1
|
||||||
adds \bs, \bs, \t0
|
adds \bs, \bs, \t0
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
|
|
||||||
@ idct
|
@ idct
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "asm.S"
|
#include "libavutil/arm/asm.S"
|
||||||
#include "neon.S"
|
#include "neon.S"
|
||||||
|
|
||||||
function ff_vp8_luma_dc_wht_neon, export=1
|
function ff_vp8_luma_dc_wht_neon, export=1
|
||||||
|
Loading…
Reference in New Issue
Block a user