~ubuntu-branches/ubuntu/trusty/libdv/trusty

« back to all changes in this revision

Viewing changes to libdv/YV12.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-09-26 14:22:15 UTC
  • mfrom: (1.3.1 upstream) (3.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060926142215-q2arp4stpw6lrb5p
Tags: 1.0.0-1
* New upstream version.
* Removed patches:
  + [01_changelog_update_CVS]
  + [10_amd64_linkage_fix_CVS]
  + [10_inline_fixes_CVS]
  + [20_no_exec_stack_CVS]
  + [30_unload_memleak_fix_CVS]
  + [40_playdv_exit_fix_CVS]
  + [50_gcc41_asm_constraint_fixes_CVS]
    All of the above are part of the new upstream version.
* debian/control: In Build-Depends, remove alternative dependencies on
  obsolete SDL and X packages.
* debian/control: Complies with version 3.7.2 of Debian policy.
* debian/libdv4.README.Debian: Document lack of position-independent code
  in i386 version of libdv's shared library as mandated by recent versions
  of Debian policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <stdlib.h>
32
32
#include "YV12.h"
33
33
 
34
 
#if ARCH_X86
 
34
#if ARCH_X86 || ARCH_X86_64
35
35
#include "mmx.h"
36
 
#endif // ARCH_X86
 
36
#endif // ARCH_X86 || ARCH_X86_64
37
37
 
38
38
/* Lookup tables for mapping signed to unsigned, and clamping */
39
39
static unsigned char    real_uvlut[256], *uvlut;
40
40
static unsigned char    real_ylut[768],  *ylut;
41
41
 
42
 
#if ARCH_X86
 
42
#if ARCH_X86 || ARCH_X86_64
43
43
/* Define some constants used in MMX range mapping and clamping logic */
44
44
static mmx_t            mmx_0x10s   = (mmx_t) 0x1010101010101010LL,
45
45
                        mmx_0x0080s = (mmx_t) 0x0080008000800080LL,
47
47
                        mmx_0x7f94s = (mmx_t) 0x7f947f947f947f94LL,
48
48
                        mmx_0x7f7fs = (mmx_t) 0x7f7f7f7f7f7f7f7fLL,
49
49
                        mmx_0x7f00s = (mmx_t) 0x7f007f007f007f00LL;
50
 
#endif // ARCH_X86
 
50
#endif // ARCH_X86 || ARCH_X86_64
51
51
 
52
52
void 
53
53
dv_YV12_init(int clamp_luma, int clamp_chroma) {
136
136
 
137
137
} /* dv_mb420_YV12 */
138
138
 
139
 
#if ARCH_X86
 
139
#if ARCH_X86 || ARCH_X86_64
140
140
 
141
141
/* TODO: clamping */
142
142
void 
225
225
} /* dv_mb420_YV12_mmx */
226
226
 
227
227
 
228
 
#endif // ARCH_X86
 
228
#endif // ARCH_X86 || ARCH_X86_64
229
229