~ubuntu-branches/ubuntu/hardy/avidemux/hardy

« back to all changes in this revision

Viewing changes to avidemux/ADM_libraries/ADM_libmpeg2enc/mmxsse_motion.h

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2007-12-18 13:53:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218135304-cdqec2lg2bglyz15
Tags: 1:2.4~preview3-0.0ubuntu1
* Upload to Ubuntu. (LP: #163287, LP: #126572)
* debian/changelog: re-added Ubuntu releases.
* debian/control:
  - Require debhelper >= 5.0.51 (for dh_icons) and imagemagick.
  - Build-depend on libsdl1.2-dev instead of libsdl-dev.
  - Build against newer libx264-dev. (LP: #138854)
  - Removed libamrnb-dev, not in Ubuntu yet.
* debian/rules:
  - Install all icon sizes, using convert (upstream installs none).
  - Added missing calls to dh_installmenu, dh_installman, dh_icons and
    dh_desktop.
* debian/menu, debian/avidemux-qt.menu:
  - Corrected package and executable names.
* debian/avidemux-common.install: Install icons.
* debian/avidemux.common.manpages: Install man/avidemux.1.
* debian/links, debian/avidemux-cli.links, debian/avidemux-gtk.links:
  - Link manpages to avidemux.1.gz.
* debian/install, debian/avidemux-qt.install, debian/avidemux-gtk.desktop,
  debian/avidemux-qt.desktop: Install desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Optimised lowlevel motion estimation routines for mpeg2enc */
 
2
 
 
3
/* (C) 2000/2001 Andrew Stevens */
 
4
 
 
5
/* This is free software; you can redistribute it
 
6
 *  and/or modify it under the terms of the GNU General Public License
 
7
 *  as published by the Free Software Foundation; either version 2 of
 
8
 *  the License, or (at your option) any later version.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 *  General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
18
 * 02111-1307, USA.
 
19
 *
 
20
 */
 
21
 
 
22
#include "motionsearch.h"
 
23
#include "mblock_sub44_sads_x86.h"
 
24
 
 
25
 
 
26
 
 
27
void sub_mean_reduction( me_result_set *matchset,
 
28
                         int times,
 
29
                         int *minweight_res);
 
30
 
 
31
void enable_mmxsse_motion(int a);
 
32
void mblock_sub22_nearest4_sads_mmxe(uint8_t *blk1,uint8_t *blk2,
 
33
                                 int frowstride,int fh, int* resvec);
 
34
 
 
35
//int mblock_nearest4_sads_mmxe(uint8_t *blk1, uint8_t *blk2,int rowstride, int h, int *resvec);
 
36
int mblock_nearest4_sads_mmxe(uint8_t *blk1,uint8_t *blk2,int lx,int h,int32_t *weightvec,int peakerror);
 
37
 
 
38
 
 
39
int sad_00_mmxe(uint8_t *blk1, uint8_t *blk2, int rowstride, int h, int distlim);
 
40
int sad_01_mmxe(uint8_t *blk1, uint8_t *blk2, int rowstride, int h);
 
41
int sad_10_mmxe(uint8_t *blk1, uint8_t *blk2, int rowstride, int h);
 
42
int sad_11_mmxe(uint8_t *blk1, uint8_t *blk2, int rowstride, int h);
 
43
 
 
44
 
 
45
int sad_sub22_mmxe ( uint8_t *blk1, uint8_t *blk2,  int frowstride, int fh) ;
 
46
int sad_sub44_mmxe ( uint8_t *blk1, uint8_t *blk2,  int qrowstride, int qh);
 
47
int sumsq_mmx( uint8_t *blk1, uint8_t *blk2, int rowstride, int hx, int hy, int h) ;
 
48
int sumsq_sub22_mmx( uint8_t *blk1, uint8_t *blk2, int rowstride, int h) ;
 
49
int bsumsq_sub22_mmx( uint8_t *blk1f, uint8_t *blk1b, uint8_t *blk2, int rowstride, int h) ;
 
50
int bsumsq_mmx (uint8_t *pf, uint8_t *pb, uint8_t *p2, int rowstride,
 
51
                                int hxf, int hyf, int hxb, int hyb, int h);
 
52
int bsad_mmx (uint8_t *pf, uint8_t *pb, uint8_t *p2, int rowstride,
 
53
              int hxf, int hyf, int hxb, int hyb, int h);
 
54
 
 
55
void variance_mmx( uint8_t *p, int size,        int rowstride,
 
56
                                  uint32_t *p_variance, uint32_t *p_mean);
 
57
 
 
58
int sad_00_mmx ( uint8_t *blk1, uint8_t *blk2,  int rowstride, int h, int distlim);
 
59
int sad_01_mmx(uint8_t *blk1, uint8_t *blk2, int rowstride, int h);
 
60
int sad_10_mmx(uint8_t *blk1, uint8_t *blk2, int rowstride, int h);
 
61
int sad_11_mmx(uint8_t *blk1, uint8_t *blk2, int rowstride, int h);
 
62
int sad_sub22_mmx ( uint8_t *blk1, uint8_t *blk2,  int frowstride, int fh);
 
63
int sad_sub44_mmx (uint8_t *blk1, uint8_t *blk2,  int qrowstride, int qh);
 
64
 
 
65
 
 
66
/* Assembler core routine used in x86 MMX/SSE implementation */ 
 
67
 
 
68
extern int (*pmblocks_sub44_mests)( uint8_t *blk,  uint8_t *ref,
 
69
                                        int ilow, int jlow,
 
70
                                        int ihigh, int jhigh, 
 
71
                                        int h, int rowstride, 
 
72
                                        int threshold,
 
73
                                        me_result_s *resvec);
 
74
 
 
75
void find_best_one_pel_mmxe( me_result_set *sub22set,
 
76
                                         uint8_t *org, uint8_t *blk,
 
77
                                         int i0, int j0,
 
78
                                         int ihigh, int jhigh,
 
79
                                         int rowstride, int h,
 
80
                                         me_result_s *best_so_far);
 
81
 
 
82
int build_sub44_mests_mmx( me_result_set *sub44set,
 
83
                                   int ilow, int jlow, int ihigh, int jhigh, 
 
84
                                   int i0, int j0,
 
85
                                   int null_ctl_sad,
 
86
                                   uint8_t *s44org, uint8_t *s44blk,
 
87
                                   int qrowstride, int qh,
 
88
                                   int reduction);
 
89
 
 
90
int build_sub22_mests_mmxe( me_result_set *sub44set,
 
91
                                me_result_set *sub22set,
 
92
                                int i0,  int j0, int ihigh, int jhigh, 
 
93
                                int null_ctl_sad,
 
94
                                uint8_t *s22org,  uint8_t *s22blk, 
 
95
                                int frowstride, int fh,
 
96
                                int reduction);
 
97