~ubuntu-branches/debian/experimental/ffmpeg/experimental

« back to all changes in this revision

Viewing changes to debian/patches/neon/0006-ARM-NEON-put_pixels_clamped.patch

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Loïc Minier, Fabian Greffrath, Andres Mejia, Reinhard Tartler
  • Date: 2010-01-06 16:27:40 UTC
  • Revision ID: james.westby@ubuntu.com-20100106162740-w0c7o1bxg8xf9psx
Tags: 4:0.5+svn20090706-3
[ Loïc Minier ]
* Disable more autodetecter ARM arch features
* Enable neon flavour
* Update NEON confflags to assume v7 and VFP
* Add backported NEON patches from ffmpeg trunk
* Pass proper --cpu and --extra-flags on armel
* Pass -fPIC -DPIC to neon pass

[ Fabian Greffrath ]
* Initialize the FLAVORS variable to static instead of appending to
  it. Also, we do not support the internalencoders variable anymore.

[ Andres Mejia ]
* Remove unused patches from packaging.
* Update Vcs-* entries to new location.
* Bump Standards-Version to 3.8.3.

[ Reinhard Tartler ]
* change shlibs file to make applications depend on the -extra- packages
* loosen dependencies further, so that the -dev packages remain
  installable even if ffmpeg-extra is 'out-of-date'
* add patch for issue1245: Make arguments of av_set_pts_info() unsigned.
* Support constant-quant encoding for libtheora, LP: #356322
* increase swscale compile time width (VOF/VOFW), LP: #443264
* Backports of various security patches, Closes: #550442, including:
   - backport fixes for vorbis_dec
   - backport oggparsevorbis fix
   - backport vp3 fixes
   - backport ffv1 fix
   - libavcodec/mpegaudiodec.c backports
   - h264 security backports
   - backported libavformat/mov.c security fixes
   - backported libavformat/oggdec.c security fixes
   - backport svn r18016 aka 'MOV-Support-stz2-Compact-Sample-Size-Box'
     to fix FTBFS
* enable symbol versioning
* bump shlibs version
* add README.source describing how this source package manages patches
* make sure the ${misc:Depends} substvar is used for each binary package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 9744978dd7b9ca9dda0846fa82faf6fa264a52a7 Mon Sep 17 00:00:00 2001
 
2
From: conrad <conrad@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
 
3
Date: Wed, 29 Apr 2009 11:31:43 +0000
 
4
Subject: [PATCH 06/27] ARM: NEON put_pixels_clamped
 
5
 
 
6
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18712 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
 
7
---
 
8
 libavcodec/arm/dsputil_neon.c   |    2 ++
 
9
 libavcodec/arm/dsputil_neon_s.S |   24 ++++++++++++++++++++++++
 
10
 2 files changed, 26 insertions(+), 0 deletions(-)
 
11
 
 
12
diff --git a/libavcodec/arm/dsputil_neon.c b/libavcodec/arm/dsputil_neon.c
 
13
index 37425a3..9b95130 100644
 
14
--- a/libavcodec/arm/dsputil_neon.c
 
15
+++ b/libavcodec/arm/dsputil_neon.c
 
16
@@ -42,6 +42,7 @@ void ff_put_pixels8_xy2_no_rnd_neon(uint8_t *, const uint8_t *, int, int);
 
17
 void ff_avg_pixels16_neon(uint8_t *, const uint8_t *, int, int);
 
18
 
 
19
 void ff_add_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
 
20
+void ff_put_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
 
21
 void ff_put_signed_pixels_clamped_neon(const DCTELEM *, uint8_t *, int);
 
22
 
 
23
 void ff_put_h264_qpel16_mc00_neon(uint8_t *, uint8_t *, int);
 
24
@@ -180,6 +181,7 @@ void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
 
25
     c->avg_pixels_tab[0][0] = ff_avg_pixels16_neon;
 
26
 
 
27
     c->add_pixels_clamped = ff_add_pixels_clamped_neon;
 
28
+    c->put_pixels_clamped = ff_put_pixels_clamped_neon;
 
29
     c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_neon;
 
30
 
 
31
     c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_neon;
 
32
diff --git a/libavcodec/arm/dsputil_neon_s.S b/libavcodec/arm/dsputil_neon_s.S
 
33
index f16293d..a55e05f 100644
 
34
--- a/libavcodec/arm/dsputil_neon_s.S
 
35
+++ b/libavcodec/arm/dsputil_neon_s.S
 
36
@@ -273,6 +273,30 @@ function ff_put_h264_qpel8_mc00_neon, export=1
 
37
         pixfunc2 put_ pixels8_y2,   _no_rnd, vhadd.u8
 
38
         pixfunc2 put_ pixels8_xy2,  _no_rnd, vshrn.u16, 1
 
39
 
 
40
+function ff_put_pixels_clamped_neon, export=1
 
41
+        vld1.64         {d16-d19}, [r0,:128]!
 
42
+        vqmovun.s16     d0, q8
 
43
+        vld1.64         {d20-d23}, [r0,:128]!
 
44
+        vqmovun.s16     d1, q9
 
45
+        vld1.64         {d24-d27}, [r0,:128]!
 
46
+        vqmovun.s16     d2, q10
 
47
+        vld1.64         {d28-d31}, [r0,:128]!
 
48
+        vqmovun.s16     d3, q11
 
49
+        vst1.64         {d0},      [r1,:64], r2
 
50
+        vqmovun.s16     d4, q12
 
51
+        vst1.64         {d1},      [r1,:64], r2
 
52
+        vqmovun.s16     d5, q13
 
53
+        vst1.64         {d2},      [r1,:64], r2
 
54
+        vqmovun.s16     d6, q14
 
55
+        vst1.64         {d3},      [r1,:64], r2
 
56
+        vqmovun.s16     d7, q15
 
57
+        vst1.64         {d4},      [r1,:64], r2
 
58
+        vst1.64         {d5},      [r1,:64], r2
 
59
+        vst1.64         {d6},      [r1,:64], r2
 
60
+        vst1.64         {d7},      [r1,:64], r2
 
61
+        bx              lr
 
62
+        .endfunc
 
63
+
 
64
 function ff_put_signed_pixels_clamped_neon, export=1
 
65
         vmov.u8         d31, #128
 
66
         vld1.64         {d16-d17}, [r0,:128]!
 
67
-- 
 
68
1.6.3.3
 
69