Merge commit '28a8b5413b64b831dfb8650208bccd8b78360484'
authorJames Almer <jamrial@gmail.com>
Wed, 20 Feb 2019 18:42:01 +0000 (15:42 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 20 Feb 2019 18:42:01 +0000 (15:42 -0300)
* commit '28a8b5413b64b831dfb8650208bccd8b78360484':
  h264/aarch64: add intra loop filter neon asm

Merged-by: James Almer <jamrial@gmail.com>
1  2 
libavcodec/aarch64/h264dsp_init_aarch64.c
libavcodec/aarch64/h264dsp_neon.S

@@@ -33,21 -37,27 +37,27 @@@ void ff_h264_v_loop_filter_chroma_neon(
                                         int beta, int8_t *tc0);
  void ff_h264_h_loop_filter_chroma_neon(uint8_t *pix, int stride, int alpha,
                                         int beta, int8_t *tc0);
+ void ff_h264_v_loop_filter_chroma_intra_neon(uint8_t *pix, int stride,
+                                              int alpha, int beta);
+ void ff_h264_h_loop_filter_chroma_intra_neon(uint8_t *pix, int stride,
+                                              int alpha, int beta);
+ void ff_h264_h_loop_filter_chroma_mbaff_intra_neon(uint8_t *pix, int stride,
+                                                    int alpha, int beta);
  
 -void ff_weight_h264_pixels_16_neon(uint8_t *dst, int stride, int height,
 +void ff_weight_h264_pixels_16_neon(uint8_t *dst, ptrdiff_t stride, int height,
                                     int log2_den, int weight, int offset);
 -void ff_weight_h264_pixels_8_neon(uint8_t *dst, int stride, int height,
 +void ff_weight_h264_pixels_8_neon(uint8_t *dst, ptrdiff_t stride, int height,
                                    int log2_den, int weight, int offset);
 -void ff_weight_h264_pixels_4_neon(uint8_t *dst, int stride, int height,
 +void ff_weight_h264_pixels_4_neon(uint8_t *dst, ptrdiff_t stride, int height,
                                    int log2_den, int weight, int offset);
  
 -void ff_biweight_h264_pixels_16_neon(uint8_t *dst, uint8_t *src, int stride,
 +void ff_biweight_h264_pixels_16_neon(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
                                       int height, int log2_den, int weightd,
                                       int weights, int offset);
 -void ff_biweight_h264_pixels_8_neon(uint8_t *dst, uint8_t *src, int stride,
 +void ff_biweight_h264_pixels_8_neon(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
                                      int height, int log2_den, int weightd,
                                      int weights, int offset);
 -void ff_biweight_h264_pixels_4_neon(uint8_t *dst, uint8_t *src, int stride,
 +void ff_biweight_h264_pixels_4_neon(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
                                      int height, int log2_den, int weightd,
                                      int weights, int offset);
  
@@@ -77,9 -87,14 +87,15 @@@ av_cold void ff_h264dsp_init_aarch64(H2
      if (have_neon(cpu_flags) && bit_depth == 8) {
          c->h264_v_loop_filter_luma   = ff_h264_v_loop_filter_luma_neon;
          c->h264_h_loop_filter_luma   = ff_h264_h_loop_filter_luma_neon;
+         c->h264_v_loop_filter_luma_intra= ff_h264_v_loop_filter_luma_intra_neon;
+         c->h264_h_loop_filter_luma_intra= ff_h264_h_loop_filter_luma_intra_neon;
          c->h264_v_loop_filter_chroma = ff_h264_v_loop_filter_chroma_neon;
 +        if (chroma_format_idc <= 1)
          c->h264_h_loop_filter_chroma = ff_h264_h_loop_filter_chroma_neon;
+         c->h264_v_loop_filter_chroma_intra = ff_h264_v_loop_filter_chroma_intra_neon;
+         c->h264_h_loop_filter_chroma_intra = ff_h264_h_loop_filter_chroma_intra_neon;
+         c->h264_h_loop_filter_chroma_mbaff_intra = ff_h264_h_loop_filter_chroma_mbaff_intra_neon;
  
          c->weight_h264_pixels_tab[0] = ff_weight_h264_pixels_16_neon;
          c->weight_h264_pixels_tab[1] = ff_weight_h264_pixels_8_neon;
@@@ -1,10 -1,11 +1,11 @@@
  /*
   * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
   * Copyright (c) 2013 Janne Grunau <janne-libav@jannau.net>
+  * Copyright (c) 2014 Janne Grunau <janne-libav@jannau.net>
   *
 - * This file is part of Libav.
 + * This file is part of FFmpeg.
   *
 - * Libav is free software; you can redistribute it and/or
 + * 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.