Blame view

3rdparty/ffmpeg-4.4.4/x264/common/loongarch/deblock.h 2.91 KB
f244cbd5   Hu Chunming   ffmpeg支持h264编码
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
  /*****************************************************************************
   * deblock.h: loongarch deblock
   *****************************************************************************
   * Copyright (C) 2023-2024 x264 project
   *
   * Authors: Hao Chen <chenhao@loongson.cn>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2 of the License, or
   * (at your option) any later version.
   *
   * This program 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 General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
   *
   * This program is also available under a commercial proprietary license.
   * For more information, contact us at licensing@x264.com.
   *****************************************************************************/
  
  #ifndef X264_LOONGARCH_DEBLOCK_H
  #define X264_LOONGARCH_DEBLOCK_H
  
  #if !HIGH_BIT_DEPTH
  #define x264_deblock_v_luma_lasx x264_template(deblock_v_luma_lasx)
  void x264_deblock_v_luma_lasx( uint8_t *pix, intptr_t stride, int alpha, int beta, int8_t *tc0 );
  #define x264_deblock_h_luma_lasx x264_template(deblock_h_luma_lasx)
  void x264_deblock_h_luma_lasx( uint8_t *pix, intptr_t stride, int alpha, int beta, int8_t *tc0 );
  
  #define x264_deblock_v_luma_intra_lsx x264_template(deblock_v_luma_intra_lsx)
  void x264_deblock_v_luma_intra_lsx( uint8_t *pix, intptr_t stride, int alpha, int beta );
  #define x264_deblock_h_luma_intra_lsx x264_template(deblock_h_luma_intra_lsx)
  void x264_deblock_h_luma_intra_lsx( uint8_t *pix, intptr_t stride, int alpha, int beta );
  
  #define x264_deblock_v_luma_intra_lasx x264_template(deblock_v_luma_intra_lasx)
  void x264_deblock_v_luma_intra_lasx( uint8_t *pix, intptr_t stride, int alpha, int beta );
  #define x264_deblock_h_luma_intra_lasx x264_template(deblock_h_luma_intra_lasx)
  void x264_deblock_h_luma_intra_lasx( uint8_t *pix, intptr_t stride, int alpha, int beta );
  #define x264_deblock_strength_lsx x264_template(deblock_strength_lsx)
  void x264_deblock_strength_lsx( uint8_t nnz[X264_SCAN8_SIZE], int8_t ref[2][X264_SCAN8_LUMA_SIZE],
                                  int16_t mv[2][X264_SCAN8_LUMA_SIZE][2], uint8_t bs[2][8][4],
                                  int mvy_limit, int bframe );
  #define x264_deblock_strength_lasx x264_template(deblock_strength_lasx)
  void x264_deblock_strength_lasx( uint8_t nnz[X264_SCAN8_SIZE], int8_t ref[2][X264_SCAN8_LUMA_SIZE],
                                   int16_t mv[2][X264_SCAN8_LUMA_SIZE][2], uint8_t bs[2][8][4],
                                   int mvy_limit, int bframe );
  #endif
  
  #endif