~ubuntu-branches/ubuntu/trusty/libav/trusty-proposed

« back to all changes in this revision

Viewing changes to libavcodec/arm/vp8dsp_neon.S

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2013-10-22 23:24:08 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: package-import@ubuntu.com-20131022232408-b8tvvn4pyzri9mi3
Tags: 6:9.10-1ubuntu1
* Build all -extra flavors from this source package, as libav got demoted
  from main to universe, cf LP: #1243235
* Simplify debian/rules to follow exactly the code that debian executes
* New upstream (LP: #1180288) fixes lots of security issues (LP: #1242802)
* Merge from unstable, remaining changes:
  - build-depend on libtiff5-dev rather than libtiff4-dev,
    avoids FTBFS caused by imlib
  - follow the regular debian codepaths

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
 
1
/*
2
2
 * VP8 NEON optimisations
3
3
 *
4
4
 * Copyright (c) 2010 Rob Clark <rob@ti.com>
21
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
22
 */
23
23
 
24
 
#include "asm.S"
 
24
#include "libavutil/arm/asm.S"
25
25
#include "neon.S"
26
26
 
27
27
function ff_vp8_luma_dc_wht_neon, export=1
77
77
        bx              lr
78
78
endfunc
79
79
 
80
 
function ff_vp8_luma_dc_wht_dc_neon, export=1
81
 
        ldrsh           r2,  [r1]
82
 
        mov             r3,  #0
83
 
        add             r2,  r2,  #3
84
 
        strh            r3,  [r1]
85
 
        asr             r2,  r2,  #3
86
 
    .rept 16
87
 
        strh            r2,  [r0], #32
88
 
    .endr
89
 
        bx              lr
90
 
endfunc
91
 
 
92
80
function ff_vp8_idct_add_neon, export=1
93
81
        vld1.16         {q0-q1},  [r1,:128]
94
82
        movw            r3,  #20091
725
713
        bx              lr
726
714
endfunc
727
715
 
728
 
function ff_put_vp8_pixels4_neon, export=1
729
 
        ldr             r12, [sp, #0]           @ h
730
 
        push            {r4-r6,lr}
731
 
1:
732
 
        subs            r12, r12, #4
733
 
        ldr_post        r4,  r2,  r3
734
 
        ldr_post        r5,  r2,  r3
735
 
        ldr_post        r6,  r2,  r3
736
 
        ldr_post        lr,  r2,  r3
737
 
        str_post        r4,  r0,  r1
738
 
        str_post        r5,  r0,  r1
739
 
        str_post        r6,  r0,  r1
740
 
        str_post        lr,  r0,  r1
741
 
        bgt             1b
742
 
        pop             {r4-r6,pc}
743
 
endfunc
744
 
 
745
716
/* 4/6-tap 8th-pel MC */
746
717
 
747
718
.macro  vp8_epel8_h6    d,   a,   b