123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- /*
- * Copyright (c) 2015 Parag Salasakar (Parag.Salasakar@imgtec.com)
- *
- * This file is part of FFmpeg.
- *
- * FFmpeg is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * FFmpeg is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with FFmpeg; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
- #ifndef AVCODEC_MIPS_QPELDSP_MIPS_H
- #define AVCODEC_MIPS_QPELDSP_MIPS_H
- #include "../mpegvideo.h"
- void ff_copy_8x8_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
- void ff_copy_16x16_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
- void ff_avg_width8_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
- void ff_avg_width16_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
- void ff_horiz_mc_qpel_aver_src0_8width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_aver_src0_16width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_8width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_16width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_aver_src1_8width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_aver_src1_16width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_no_rnd_aver_src0_8width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_no_rnd_aver_src0_16width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_no_rnd_8width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_no_rnd_16width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_no_rnd_aver_src1_8width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_no_rnd_aver_src1_16width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_avg_dst_aver_src0_8width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_avg_dst_aver_src0_16width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_avg_dst_8width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_avg_dst_16width_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_avg_dst_aver_src1_8width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_horiz_mc_qpel_avg_dst_aver_src1_16width_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_aver_src0_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_aver_src0_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_aver_src1_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_aver_src1_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_no_rnd_aver_src0_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_no_rnd_aver_src0_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_no_rnd_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_no_rnd_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_no_rnd_aver_src1_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_no_rnd_aver_src1_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_avg_dst_aver_src0_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_avg_dst_aver_src0_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_avg_dst_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_avg_dst_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_avg_dst_aver_src1_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_vert_mc_qpel_avg_dst_aver_src1_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src00_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src00_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_v_src0_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_v_src0_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src10_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src10_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_h_src0_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_h_src0_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_8x8_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_h_src1_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_h_src1_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src01_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src01_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_v_src1_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_v_src1_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src11_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_aver_hv_src11_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src00_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src00_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_v_src0_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_v_src0_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src10_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src10_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_h_src0_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_h_src0_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_h_src1_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_h_src1_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src01_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src01_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_v_src1_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_v_src1_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src11_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_avg_dst_aver_hv_src11_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src00_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src00_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_v_src0_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_v_src0_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src10_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src10_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_h_src0_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_h_src0_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_16x16_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_8x8_msa(uint8_t *dst, const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_h_src1_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_h_src1_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src01_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src01_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_v_src1_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_v_src1_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src11_16x16_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- void ff_hv_mc_qpel_no_rnd_aver_hv_src11_8x8_msa(uint8_t *dst,
- const uint8_t *src,
- ptrdiff_t stride);
- #endif // #ifndef AVCODEC_MIPS_QPELDSP_MIPS_H
|