1 /*
2  * Copyright (c) 2015 Shivraj Patil (Shivraj.Patil@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_HEVCPRED_MIPS_H
22 #define AVCODEC_MIPS_HEVCPRED_MIPS_H
23 
24 #include "libavcodec/hevcpred.h"
25 
26 void ff_hevc_intra_pred_planar_0_msa(uint8_t *dst,
27                                      const uint8_t *src_top,
28                                      const uint8_t *src_left,
29                                      ptrdiff_t stride);
30 
31 void ff_hevc_intra_pred_planar_1_msa(uint8_t *dst,
32                                      const uint8_t *src_top,
33                                      const uint8_t *src_left,
34                                      ptrdiff_t stride);
35 
36 void ff_hevc_intra_pred_planar_2_msa(uint8_t *dst,
37                                      const uint8_t *src_top,
38                                      const uint8_t *src_left,
39                                      ptrdiff_t stride);
40 
41 void ff_hevc_intra_pred_planar_3_msa(uint8_t *dst,
42                                      const uint8_t *src_top,
43                                      const uint8_t *src_left,
44                                      ptrdiff_t stride);
45 
46 void ff_hevc_intra_pred_dc_msa(uint8_t *dst, const uint8_t *src_top,
47                                const uint8_t *src_left,
48                                ptrdiff_t stride, int log2, int c_idx);
49 
50 void ff_pred_intra_pred_angular_0_msa(uint8_t *dst,
51                                       const uint8_t *src_top,
52                                       const uint8_t *src_left,
53                                       ptrdiff_t stride, int c_idx, int mode);
54 
55 void ff_pred_intra_pred_angular_1_msa(uint8_t *dst,
56                                       const uint8_t *src_top,
57                                       const uint8_t *src_left,
58                                       ptrdiff_t stride, int c_idx, int mode);
59 
60 void ff_pred_intra_pred_angular_2_msa(uint8_t *dst,
61                                       const uint8_t *src_top,
62                                       const uint8_t *src_left,
63                                       ptrdiff_t stride, int c_idx, int mode);
64 
65 void ff_pred_intra_pred_angular_3_msa(uint8_t *dst,
66                                       const uint8_t *src_top,
67                                       const uint8_t *src_left,
68                                       ptrdiff_t stride, int c_idx, int mode);
69 
70 void ff_intra_pred_8_16x16_msa(struct HEVCContext *s, int x0, int y0, int c_idx);
71 void ff_intra_pred_8_32x32_msa(struct HEVCContext *s, int x0, int y0, int c_idx);
72 
73 #endif  // #ifndef AVCODEC_MIPS_HEVCPRED_MIPS_H
74