~ubuntu-branches/ubuntu/utopic/libav/utopic-proposed

« back to all changes in this revision

Viewing changes to libavcodec/x86/vp8dsp.asm

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler, Reinhard Tartler, Rico Tzschichholz
  • Date: 2014-08-30 11:02:45 UTC
  • mfrom: (1.3.47 sid)
  • Revision ID: package-import@ubuntu.com-20140830110245-io3dg7q85wfr7125
Tags: 6:11~beta1-2
[ Reinhard Tartler ]
* Make libavcodec-dev depend on libavresample-dev

[ Rico Tzschichholz ]
* Some fixes and leftovers from soname bumps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;******************************************************************************
2
2
;* VP8 MMXEXT optimizations
3
3
;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>
4
 
;* Copyright (c) 2010 Jason Garrett-Glaser <darkshikari@gmail.com>
 
4
;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>
5
5
;*
6
6
;* This file is part of Libav.
7
7
;*
153
153
 
154
154
SECTION .text
155
155
 
156
 
;-----------------------------------------------------------------------------
 
156
;-------------------------------------------------------------------------------
157
157
; subpel MC functions:
158
158
;
159
 
; void put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, int deststride,
160
 
;                                              uint8_t *src, int srcstride,
161
 
;                                              int height,   int mx, int my);
162
 
;-----------------------------------------------------------------------------
 
159
; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, int deststride,
 
160
;                                                 uint8_t *src, int srcstride,
 
161
;                                                 int height,   int mx, int my);
 
162
;-------------------------------------------------------------------------------
163
163
 
164
164
%macro FILTER_SSSE3 1
165
165
cglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg
884
884
    REP_RET
885
885
 
886
886
;-----------------------------------------------------------------------------
887
 
; void vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], int stride);
 
887
; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], int stride);
888
888
;-----------------------------------------------------------------------------
889
889
 
890
890
%macro ADD_DC 4
962
962
    RET
963
963
 
964
964
;-----------------------------------------------------------------------------
965
 
; void vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], int stride);
 
965
; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], int stride);
966
966
;-----------------------------------------------------------------------------
967
967
 
968
968
%if ARCH_X86_32
1035
1035
    RET
1036
1036
 
1037
1037
;-----------------------------------------------------------------------------
1038
 
; void vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], int stride);
 
1038
; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], int stride);
1039
1039
;-----------------------------------------------------------------------------
1040
1040
 
1041
1041
INIT_MMX mmx
1077
1077
    RET
1078
1078
 
1079
1079
;-----------------------------------------------------------------------------
1080
 
; void vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], int stride);
 
1080
; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], int stride);
1081
1081
;-----------------------------------------------------------------------------
1082
1082
 
1083
1083
; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)
1157
1157
VP8_IDCT_ADD
1158
1158
 
1159
1159
;-----------------------------------------------------------------------------
1160
 
; void vp8_luma_dc_wht_mmxext(int16_t block[4][4][16], int16_t dc[16])
 
1160
; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])
1161
1161
;-----------------------------------------------------------------------------
1162
1162
 
1163
1163
%macro SCATTER_WHT 3