1cabdff1aSopenharmony_ci;****************************************************************************** 2cabdff1aSopenharmony_ci;* x86-SIMD-optimized IDCT for prores 3cabdff1aSopenharmony_ci;* this is identical to "simple" IDCT written by Michael Niedermayer 4cabdff1aSopenharmony_ci;* except for the clip range 5cabdff1aSopenharmony_ci;* 6cabdff1aSopenharmony_ci;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com> 7cabdff1aSopenharmony_ci;* 8cabdff1aSopenharmony_ci;* This file is part of FFmpeg. 9cabdff1aSopenharmony_ci;* 10cabdff1aSopenharmony_ci;* FFmpeg is free software; you can redistribute it and/or 11cabdff1aSopenharmony_ci;* modify it under the terms of the GNU Lesser General Public 12cabdff1aSopenharmony_ci;* License as published by the Free Software Foundation; either 13cabdff1aSopenharmony_ci;* version 2.1 of the License, or (at your option) any later version. 14cabdff1aSopenharmony_ci;* 15cabdff1aSopenharmony_ci;* FFmpeg is distributed in the hope that it will be useful, 16cabdff1aSopenharmony_ci;* but WITHOUT ANY WARRANTY; without even the implied warranty of 17cabdff1aSopenharmony_ci;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18cabdff1aSopenharmony_ci;* Lesser General Public License for more details. 19cabdff1aSopenharmony_ci;* 20cabdff1aSopenharmony_ci;* You should have received a copy of the GNU Lesser General Public 21cabdff1aSopenharmony_ci;* License along with FFmpeg; if not, write to the Free Software 22cabdff1aSopenharmony_ci;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23cabdff1aSopenharmony_ci;****************************************************************************** 24cabdff1aSopenharmony_ci 25cabdff1aSopenharmony_ci%include "libavutil/x86/x86util.asm" 26cabdff1aSopenharmony_ci 27cabdff1aSopenharmony_ci%if ARCH_X86_64 28cabdff1aSopenharmony_ci 29cabdff1aSopenharmony_ciSECTION_RODATA 30cabdff1aSopenharmony_ci 31cabdff1aSopenharmony_cipw_88: times 8 dw 0x2008 32cabdff1aSopenharmony_cicextern pw_1 33cabdff1aSopenharmony_cicextern pw_4 34cabdff1aSopenharmony_cicextern pw_1019 35cabdff1aSopenharmony_ci; Below are defined in simple_idct10.asm built from selecting idctdsp 36cabdff1aSopenharmony_cicextern w4_plus_w2_hi 37cabdff1aSopenharmony_cicextern w4_min_w2_hi 38cabdff1aSopenharmony_cicextern w4_plus_w6_hi 39cabdff1aSopenharmony_cicextern w4_min_w6_hi 40cabdff1aSopenharmony_cicextern w1_plus_w3_hi 41cabdff1aSopenharmony_cicextern w3_min_w1_hi 42cabdff1aSopenharmony_cicextern w7_plus_w3_hi 43cabdff1aSopenharmony_cicextern w3_min_w7_hi 44cabdff1aSopenharmony_cicextern w1_plus_w5 45cabdff1aSopenharmony_cicextern w5_min_w1 46cabdff1aSopenharmony_cicextern w5_plus_w7 47cabdff1aSopenharmony_cicextern w7_min_w5 48cabdff1aSopenharmony_ci 49cabdff1aSopenharmony_ci%include "libavcodec/x86/simple_idct10_template.asm" 50cabdff1aSopenharmony_ci 51cabdff1aSopenharmony_ciSECTION .text 52cabdff1aSopenharmony_ci 53cabdff1aSopenharmony_cidefine_constants _hi 54cabdff1aSopenharmony_ci 55cabdff1aSopenharmony_ci%macro idct_fn 0 56cabdff1aSopenharmony_cicglobal prores_idct_put_10, 4, 4, 15, pixels, lsize, block, qmat 57cabdff1aSopenharmony_ci IDCT_FN pw_1, 15, pw_88, 18, "put", pw_4, pw_1019, r3 58cabdff1aSopenharmony_ci RET 59cabdff1aSopenharmony_ci%endmacro 60cabdff1aSopenharmony_ci 61cabdff1aSopenharmony_ciINIT_XMM sse2 62cabdff1aSopenharmony_ciidct_fn 63cabdff1aSopenharmony_ci%if HAVE_AVX_EXTERNAL 64cabdff1aSopenharmony_ciINIT_XMM avx 65cabdff1aSopenharmony_ciidct_fn 66cabdff1aSopenharmony_ci%endif 67cabdff1aSopenharmony_ci 68cabdff1aSopenharmony_ci%endif 69