You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
6.3KB

  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. #ifndef H264_DSP_MIPS_H
  21. #define H264_DSP_MIPS_H
  22. #include "libavcodec/h264.h"
  23. void ff_h264_h_lpf_luma_inter_msa(uint8_t *src, int stride,
  24. int alpha, int beta, int8_t *tc0);
  25. void ff_h264_v_lpf_luma_inter_msa(uint8_t *src, int stride,
  26. int alpha, int beta, int8_t *tc0);
  27. void ff_h264_h_lpf_chroma_inter_msa(uint8_t *src, int stride,
  28. int alpha, int beta, int8_t *tc0);
  29. void ff_h264_v_lpf_chroma_inter_msa(uint8_t *src, int stride,
  30. int alpha, int beta, int8_t *tc0);
  31. void ff_h264_h_loop_filter_chroma422_msa(uint8_t *src, int32_t stride,
  32. int32_t alpha, int32_t beta,
  33. int8_t *tc0);
  34. void ff_h264_h_loop_filter_chroma422_mbaff_msa(uint8_t *src, int32_t stride,
  35. int32_t alpha, int32_t beta,
  36. int8_t *tc0);
  37. void ff_h264_h_loop_filter_luma_mbaff_msa(uint8_t *src, int32_t stride,
  38. int32_t alpha, int32_t beta,
  39. int8_t *tc0);
  40. void ff_h264_h_lpf_luma_intra_msa(uint8_t *src, int stride,
  41. int alpha, int beta);
  42. void ff_h264_v_lpf_luma_intra_msa(uint8_t *src, int stride,
  43. int alpha, int beta);
  44. void ff_h264_h_lpf_chroma_intra_msa(uint8_t *src, int stride,
  45. int alpha, int beta);
  46. void ff_h264_v_lpf_chroma_intra_msa(uint8_t *src, int stride,
  47. int alpha, int beta);
  48. void ff_h264_h_loop_filter_luma_mbaff_intra_msa(uint8_t *src, int stride,
  49. int alpha, int beta);
  50. void ff_biweight_h264_pixels16_8_msa(uint8_t *dst, uint8_t *src,
  51. int stride, int height, int log2_denom,
  52. int weightd, int weights, int offset);
  53. void ff_biweight_h264_pixels8_8_msa(uint8_t *dst, uint8_t *src,
  54. int stride, int height, int log2_denom,
  55. int weightd, int weights, int offset);
  56. void ff_biweight_h264_pixels4_8_msa(uint8_t *dst, uint8_t *src,
  57. int stride, int height, int log2_denom,
  58. int weightd, int weights, int offset);
  59. void ff_weight_h264_pixels16_8_msa(uint8_t *src, int stride, int height,
  60. int log2_denom, int weight, int offset);
  61. void ff_weight_h264_pixels8_8_msa(uint8_t *src, int stride, int height,
  62. int log2_denom, int weight, int offset);
  63. void ff_weight_h264_pixels4_8_msa(uint8_t *src, int stride, int height,
  64. int log2_denom, int weight, int offset);
  65. void ff_h264_intra_predict_plane_8x8_msa(uint8_t *src, ptrdiff_t stride);
  66. void ff_h264_intra_predict_dc_4blk_8x8_msa(uint8_t *src, ptrdiff_t stride);
  67. void ff_h264_intra_predict_hor_dc_8x8_msa(uint8_t *src, ptrdiff_t stride);
  68. void ff_h264_intra_predict_vert_dc_8x8_msa(uint8_t *src, ptrdiff_t stride);
  69. void ff_h264_intra_predict_mad_cow_dc_l0t_8x8_msa(uint8_t *src,
  70. ptrdiff_t stride);
  71. void ff_h264_intra_predict_mad_cow_dc_0lt_8x8_msa(uint8_t *src,
  72. ptrdiff_t stride);
  73. void ff_h264_intra_predict_mad_cow_dc_l00_8x8_msa(uint8_t *src,
  74. ptrdiff_t stride);
  75. void ff_h264_intra_predict_mad_cow_dc_0l0_8x8_msa(uint8_t *src,
  76. ptrdiff_t stride);
  77. void ff_h264_intra_predict_plane_16x16_msa(uint8_t *src, ptrdiff_t stride);
  78. void ff_h264_intra_pred_vert_8x8_msa(uint8_t *src, ptrdiff_t stride);
  79. void ff_h264_intra_pred_horiz_8x8_msa(uint8_t *src, ptrdiff_t stride);
  80. void ff_h264_intra_pred_dc_16x16_msa(uint8_t *src, ptrdiff_t stride);
  81. void ff_h264_intra_pred_vert_16x16_msa(uint8_t *src, ptrdiff_t stride);
  82. void ff_h264_intra_pred_horiz_16x16_msa(uint8_t *src, ptrdiff_t stride);
  83. void ff_h264_intra_pred_dc_left_16x16_msa(uint8_t *src, ptrdiff_t stride);
  84. void ff_h264_intra_pred_dc_top_16x16_msa(uint8_t *src, ptrdiff_t stride);
  85. void ff_h264_intra_pred_dc_128_8x8_msa(uint8_t *src, ptrdiff_t stride);
  86. void ff_h264_intra_pred_dc_128_16x16_msa(uint8_t *src, ptrdiff_t stride);
  87. void ff_vp8_pred8x8_127_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  88. void ff_vp8_pred8x8_129_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  89. void ff_vp8_pred16x16_127_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  90. void ff_vp8_pred16x16_129_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  91. void ff_h264_weight_pixels16_8_mmi(uint8_t *block, int stride, int height,
  92. int log2_denom, int weight, int offset);
  93. void ff_h264_biweight_pixels16_8_mmi(uint8_t *dst, uint8_t *src,
  94. int stride, int height, int log2_denom, int weightd, int weights,
  95. int offset);
  96. void ff_h264_weight_pixels8_8_mmi(uint8_t *block, int stride, int height,
  97. int log2_denom, int weight, int offset);
  98. void ff_h264_biweight_pixels8_8_mmi(uint8_t *dst, uint8_t *src,
  99. int stride, int height, int log2_denom, int weightd, int weights,
  100. int offset);
  101. void ff_h264_weight_pixels4_8_mmi(uint8_t *block, int stride, int height,
  102. int log2_denom, int weight, int offset);
  103. void ff_h264_biweight_pixels4_8_mmi(uint8_t *dst, uint8_t *src,
  104. int stride, int height, int log2_denom, int weightd, int weights,
  105. int offset);
  106. #endif // #ifndef H264_DSP_MIPS_H