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.

139 lines
7.7KB

  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_idct_add_msa(uint8_t *dst, int16_t *src, int32_t dst_stride);
  41. void ff_h264_idct4x4_addblk_dc_msa(uint8_t *dst, int16_t *src,
  42. int32_t dst_stride);
  43. void ff_h264_deq_idct_luma_dc_msa(int16_t *dst, int16_t *src,
  44. int32_t de_q_val);
  45. void ff_h264_idct_add16_msa(uint8_t *dst, const int32_t *blk_offset,
  46. int16_t *block, int32_t stride,
  47. const uint8_t nnzc[15 * 8]);
  48. void ff_h264_idct_add16_intra_msa(uint8_t *dst, const int32_t *blk_offset,
  49. int16_t *block, int32_t dst_stride,
  50. const uint8_t nnzc[15 * 8]);
  51. void ff_h264_idct_add8_msa(uint8_t **dst, const int32_t *blk_offset,
  52. int16_t *block, int32_t dst_stride,
  53. const uint8_t nnzc[15 * 8]);
  54. void ff_h264_idct_add8_422_msa(uint8_t **dst, const int32_t *blk_offset,
  55. int16_t *block, int32_t dst_stride,
  56. const uint8_t nnzc[15 * 8]);
  57. void ff_h264_idct8_addblk_msa(uint8_t *dst, int16_t *src, int32_t dst_stride);
  58. void ff_h264_idct8_dc_addblk_msa(uint8_t *dst, int16_t *src,
  59. int32_t dst_stride);
  60. void ff_h264_idct8_add4_msa(uint8_t *dst, const int *blk_offset,
  61. int16_t *blk, int dst_stride,
  62. const uint8_t nnzc[15 * 8]);
  63. void ff_h264_h_lpf_luma_intra_msa(uint8_t *src, int stride,
  64. int alpha, int beta);
  65. void ff_h264_v_lpf_luma_intra_msa(uint8_t *src, int stride,
  66. int alpha, int beta);
  67. void ff_h264_h_lpf_chroma_intra_msa(uint8_t *src, int stride,
  68. int alpha, int beta);
  69. void ff_h264_v_lpf_chroma_intra_msa(uint8_t *src, int stride,
  70. int alpha, int beta);
  71. void ff_h264_h_loop_filter_luma_mbaff_intra_msa(uint8_t *src, int stride,
  72. int alpha, int beta);
  73. void ff_biweight_h264_pixels16_8_msa(uint8_t *dst, uint8_t *src,
  74. int stride, int height, int log2_denom,
  75. int weightd, int weights, int offset);
  76. void ff_biweight_h264_pixels8_8_msa(uint8_t *dst, uint8_t *src,
  77. int stride, int height, int log2_denom,
  78. int weightd, int weights, int offset);
  79. void ff_biweight_h264_pixels4_8_msa(uint8_t *dst, uint8_t *src,
  80. int stride, int height, int log2_denom,
  81. int weightd, int weights, int offset);
  82. void ff_weight_h264_pixels16_8_msa(uint8_t *src, int stride, int height,
  83. int log2_denom, int weight, int offset);
  84. void ff_weight_h264_pixels8_8_msa(uint8_t *src, int stride, int height,
  85. int log2_denom, int weight, int offset);
  86. void ff_weight_h264_pixels4_8_msa(uint8_t *src, int stride, int height,
  87. int log2_denom, int weight, int offset);
  88. void ff_h264_intra_predict_plane_8x8_msa(uint8_t *src, ptrdiff_t stride);
  89. void ff_h264_intra_predict_dc_4blk_8x8_msa(uint8_t *src, ptrdiff_t stride);
  90. void ff_h264_intra_predict_hor_dc_8x8_msa(uint8_t *src, ptrdiff_t stride);
  91. void ff_h264_intra_predict_vert_dc_8x8_msa(uint8_t *src, ptrdiff_t stride);
  92. void ff_h264_intra_predict_mad_cow_dc_l0t_8x8_msa(uint8_t *src,
  93. ptrdiff_t stride);
  94. void ff_h264_intra_predict_mad_cow_dc_0lt_8x8_msa(uint8_t *src,
  95. ptrdiff_t stride);
  96. void ff_h264_intra_predict_mad_cow_dc_l00_8x8_msa(uint8_t *src,
  97. ptrdiff_t stride);
  98. void ff_h264_intra_predict_mad_cow_dc_0l0_8x8_msa(uint8_t *src,
  99. ptrdiff_t stride);
  100. void ff_h264_intra_predict_plane_16x16_msa(uint8_t *src, ptrdiff_t stride);
  101. void ff_h264_intra_pred_vert_8x8_msa(uint8_t *src, ptrdiff_t stride);
  102. void ff_h264_intra_pred_horiz_8x8_msa(uint8_t *src, ptrdiff_t stride);
  103. void ff_h264_intra_pred_dc_16x16_msa(uint8_t *src, ptrdiff_t stride);
  104. void ff_h264_intra_pred_vert_16x16_msa(uint8_t *src, ptrdiff_t stride);
  105. void ff_h264_intra_pred_horiz_16x16_msa(uint8_t *src, ptrdiff_t stride);
  106. void ff_h264_intra_pred_dc_left_16x16_msa(uint8_t *src, ptrdiff_t stride);
  107. void ff_h264_intra_pred_dc_top_16x16_msa(uint8_t *src, ptrdiff_t stride);
  108. void ff_h264_intra_pred_dc_128_8x8_msa(uint8_t *src, ptrdiff_t stride);
  109. void ff_h264_intra_pred_dc_128_16x16_msa(uint8_t *src, ptrdiff_t stride);
  110. void ff_vp8_pred8x8_127_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  111. void ff_vp8_pred8x8_129_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  112. void ff_vp8_pred16x16_127_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  113. void ff_vp8_pred16x16_129_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  114. void ff_h264_weight_pixels16_8_mmi(uint8_t *block, int stride, int height,
  115. int log2_denom, int weight, int offset);
  116. void ff_h264_biweight_pixels16_8_mmi(uint8_t *dst, uint8_t *src,
  117. int stride, int height, int log2_denom, int weightd, int weights,
  118. int offset);
  119. void ff_h264_weight_pixels8_8_mmi(uint8_t *block, int stride, int height,
  120. int log2_denom, int weight, int offset);
  121. void ff_h264_biweight_pixels8_8_mmi(uint8_t *dst, uint8_t *src,
  122. int stride, int height, int log2_denom, int weightd, int weights,
  123. int offset);
  124. void ff_h264_weight_pixels4_8_mmi(uint8_t *block, int stride, int height,
  125. int log2_denom, int weight, int offset);
  126. void ff_h264_biweight_pixels4_8_mmi(uint8_t *dst, uint8_t *src,
  127. int stride, int height, int log2_denom, int weightd, int weights,
  128. int offset);
  129. #endif // #ifndef H264_DSP_MIPS_H