~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/armv4l/dsputil_iwmmxt_rnd.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
20
 */
21
21
 
 
22
/* This header intentionally has no multiple inclusion guards. It is meant to
 
23
 * be included multiple times and generates different code depending on the
 
24
 * value of certain #defines. */
 
25
 
22
26
void DEF(put, pixels8)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
23
27
{
24
28
    int stride = line_size;
25
 
    __asm__ __volatile__ (
 
29
    asm volatile (
26
30
        "and r12, %[pixels], #7 \n\t"
27
31
        "bic %[pixels], %[pixels], #7 \n\t"
28
32
        "tmcr wcgr1, r12 \n\t"
56
60
void DEF(avg, pixels8)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
57
61
{
58
62
    int stride = line_size;
59
 
    __asm__ __volatile__ (
 
63
    asm volatile (
60
64
        "and r12, %[pixels], #7 \n\t"
61
65
        "bic %[pixels], %[pixels], #7 \n\t"
62
66
        "tmcr wcgr1, r12 \n\t"
98
102
void DEF(put, pixels16)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
99
103
{
100
104
    int stride = line_size;
101
 
    __asm__ __volatile__ (
 
105
    asm volatile (
102
106
        "and r12, %[pixels], #7 \n\t"
103
107
        "bic %[pixels], %[pixels], #7 \n\t"
104
108
        "tmcr wcgr1, r12 \n\t"
138
142
void DEF(avg, pixels16)(uint8_t *block, const uint8_t *pixels, const int line_size, int h)
139
143
{
140
144
    int stride = line_size;
141
 
    __asm__ __volatile__ (
 
145
    asm volatile (
142
146
        "pld [%[pixels]]                \n\t"
143
147
        "pld [%[pixels], #32]           \n\t"
144
148
        "pld [%[block]]                 \n\t"
197
201
    // [wr0 wr1 wr2 wr3] for previous line
198
202
    // [wr4 wr5 wr6 wr7] for current line
199
203
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
200
 
    __asm__ __volatile__(
 
204
    asm volatile(
201
205
        "pld [%[pixels]]                \n\t"
202
206
        "pld [%[pixels], #32]           \n\t"
203
207
        "and r12, %[pixels], #7         \n\t"
246
250
    // [wr0 wr1 wr2 wr3] for previous line
247
251
    // [wr4 wr5 wr6 wr7] for current line
248
252
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
249
 
    __asm__ __volatile__(
 
253
    asm volatile(
250
254
        "pld [%[pixels]]                \n\t"
251
255
        "pld [%[pixels], #32]           \n\t"
252
256
        "and r12, %[pixels], #7         \n\t"
307
311
    // [wr0 wr1 wr2 wr3] for previous line
308
312
    // [wr4 wr5 wr6 wr7] for current line
309
313
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
310
 
    __asm__ __volatile__(
 
314
    asm volatile(
311
315
        "pld [%[pixels]]                \n\t"
312
316
        "pld [%[pixels], #32]           \n\t"
313
317
        "pld [%[block]]                 \n\t"
368
372
    // [wr0 wr1 wr2 wr3] for previous line
369
373
    // [wr4 wr5 wr6 wr7] for current line
370
374
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
371
 
    __asm__ __volatile__(
 
375
    asm volatile(
372
376
        "pld [%[pixels]]                \n\t"
373
377
        "pld [%[pixels], #32]           \n\t"
374
378
        "pld [%[block]]                 \n\t"
444
448
    int stride = line_size;
445
449
    // [wr0 wr1 wr2 wr3] for previous line
446
450
    // [wr4 wr5 wr6 wr7] for current line
447
 
    __asm__ __volatile__(
 
451
    asm volatile(
448
452
        "pld            [%[pixels]]                             \n\t"
449
453
        "pld            [%[pixels], #32]                        \n\t"
450
454
        "and            r12, %[pixels], #7                      \n\t"
498
502
    int stride = line_size;
499
503
    // [wr0 wr1 wr2 wr3] for previous line
500
504
    // [wr4 wr5 wr6 wr7] for current line
501
 
    __asm__ __volatile__(
 
505
    asm volatile(
502
506
        "pld [%[pixels]]                \n\t"
503
507
        "pld [%[pixels], #32]           \n\t"
504
508
        "and r12, %[pixels], #7         \n\t"
555
559
    int stride = line_size;
556
560
    // [wr0 wr1 wr2 wr3] for previous line
557
561
    // [wr4 wr5 wr6 wr7] for current line
558
 
    __asm__ __volatile__(
 
562
    asm volatile(
559
563
        "pld [%[pixels]]                \n\t"
560
564
        "pld [%[pixels], #32]           \n\t"
561
565
        "and r12, %[pixels], #7         \n\t"
623
627
    // [wr0 wr1 wr2 wr3] for previous line
624
628
    // [wr4 wr5 wr6 wr7] for current line
625
629
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
626
 
    __asm__ __volatile__(
 
630
    asm volatile(
627
631
        "pld [%[pixels]]                \n\t"
628
632
        "mov r12, #2                    \n\t"
629
633
        "pld [%[pixels], #32]           \n\t"
717
721
    // [wr0 wr1 wr2 wr3] for previous line
718
722
    // [wr4 wr5 wr6 wr7] for current line
719
723
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
720
 
    __asm__ __volatile__(
 
724
    asm volatile(
721
725
        "pld [%[pixels]]                \n\t"
722
726
        "mov r12, #2                    \n\t"
723
727
        "pld [%[pixels], #32]           \n\t"
859
863
    // [wr0 wr1 wr2 wr3] for previous line
860
864
    // [wr4 wr5 wr6 wr7] for current line
861
865
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
862
 
    __asm__ __volatile__(
 
866
    asm volatile(
863
867
        "pld [%[block]]                 \n\t"
864
868
        "pld [%[block], #32]            \n\t"
865
869
        "pld [%[pixels]]                \n\t"
963
967
    // [wr0 wr1 wr2 wr3] for previous line
964
968
    // [wr4 wr5 wr6 wr7] for current line
965
969
    SET_RND(wr15); // =2 for rnd  and  =1 for no_rnd version
966
 
    __asm__ __volatile__(
 
970
    asm volatile(
967
971
        "pld [%[block]]                 \n\t"
968
972
        "pld [%[block], #32]            \n\t"
969
973
        "pld [%[pixels]]                \n\t"