1 /* 2 * Copyright (c) 2015 Parag Salasakar (Parag.Salasakar@imgtec.com) 3 * 4 * This file is part of FFmpeg. 5 * 6 * FFmpeg is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * FFmpeg is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with FFmpeg; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef AVCODEC_MIPS_ME_CMP_MIPS_H 22 #define AVCODEC_MIPS_ME_CMP_MIPS_H 23 24 #include "../mpegvideo.h" 25 #include "libavcodec/bit_depth_template.c" 26 27 int ff_hadamard8_diff8x8_msa(MpegEncContext *s, uint8_t *dst, uint8_t *src, 28 ptrdiff_t stride, int h); 29 int ff_hadamard8_intra8x8_msa(MpegEncContext *s, uint8_t *dst, uint8_t *src, 30 ptrdiff_t stride, int h); 31 int ff_hadamard8_diff16_msa(MpegEncContext *s, uint8_t *dst, uint8_t *src, 32 ptrdiff_t stride, int h); 33 int ff_hadamard8_intra16_msa(MpegEncContext *s, uint8_t *dst, uint8_t *src, 34 ptrdiff_t stride, int h); 35 int ff_pix_abs16_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 36 ptrdiff_t stride, int h); 37 int ff_pix_abs16_x2_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 38 ptrdiff_t stride, int h); 39 int ff_pix_abs16_y2_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 40 ptrdiff_t stride, int h); 41 int ff_pix_abs16_xy2_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 42 ptrdiff_t stride, int h); 43 int ff_pix_abs8_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 44 ptrdiff_t stride, int h); 45 int ff_pix_abs8_x2_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 46 ptrdiff_t stride, int h); 47 int ff_pix_abs8_y2_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 48 ptrdiff_t stride, int h); 49 int ff_pix_abs8_xy2_msa(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, 50 ptrdiff_t stride, int h); 51 int ff_sse16_msa(MpegEncContext *v, uint8_t *pu8Src, uint8_t *pu8Ref, 52 ptrdiff_t stride, int i32Height); 53 int ff_sse8_msa(MpegEncContext *v, uint8_t *pu8Src, uint8_t *pu8Ref, 54 ptrdiff_t stride, int i32Height); 55 int ff_sse4_msa(MpegEncContext *v, uint8_t *pu8Src, uint8_t *pu8Ref, 56 ptrdiff_t stride, int i32Height); 57 void ff_add_pixels8_msa(uint8_t *av_restrict pixels, int16_t *block, 58 ptrdiff_t stride); 59 60 #endif // #ifndef AVCODEC_MIPS_ME_CMP_MIPS_H 61