summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/armVCM4P10_DeblockingChroma_unsafe_s.S
blob: ca64a02650838d818f3fe9fef146cb4a2a60a926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * Copyright (C) 2007-2008 ARM Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
/*
 *
 */

    .eabi_attribute 24, 1
    .eabi_attribute 25, 1

    .arm
    .fpu neon
    .text

    .global armVCM4P10_DeblockingChromabSLT4_unsafe
    .func   armVCM4P10_DeblockingChromabSLT4_unsafe
armVCM4P10_DeblockingChromabSLT4_unsafe:
    VLD1.32  {d18[0]},[r5]!
    VSUBL.U8 q11,d5,d9
    VMOV     d28,d18
    VSUBL.U8 q10,d8,d4
    VSHR.S16 q11,q11,#2
    VZIP.8   d18,d28
    VBIF     d18,d14,d16
    VRHADD.S16 q10,q11,q10
    VADD.I8  d31,d18,d15
    VQMOVN.S16 d20,q10
    VLD1.8   {d0[]},[r2]
    VMIN.S8  d20,d20,d31
    VNEG.S8  d31,d31
    VLD1.8   {d2[]},[r3]
    VMAX.S8  d20,d20,d31
    VMOVL.U8 q14,d4
    VMOVL.U8 q12,d8
    VADDW.S8 q14,q14,d20
    VSUBW.S8 q12,q12,d20
    VQMOVUN.S16 d29,q14
    VQMOVUN.S16 d24,q12
    BX       lr
    .endfunc

    .global armVCM4P10_DeblockingChromabSGE4_unsafe
    .func   armVCM4P10_DeblockingChromabSGE4_unsafe
armVCM4P10_DeblockingChromabSGE4_unsafe:
    VHADD.U8 d13,d4,d9
    VHADD.U8 d31,d8,d5
    VLD1.8   {d0[]},[r2]
    ADD      r5,r5,#4
    VLD1.8   {d2[]},[r3]
    VRHADD.U8 d13,d13,d5
    VRHADD.U8 d31,d31,d9
    BX       lr
    .endfunc

    .end