diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-06-23 21:04:35 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-06-23 21:04:35 +0000 |
commit | 8292ca3541e7375c0d05c40000e8359884027b74 (patch) | |
tree | 35f327de2108eea249b9c0720bb69ca30fba2901 /src/libffmpeg/libavcodec/dsputil.h | |
parent | 6bd244f210873b33611713256c58d9d139e0e945 (diff) | |
download | xine-lib-8292ca3541e7375c0d05c40000e8359884027b74.tar.gz xine-lib-8292ca3541e7375c0d05c40000e8359884027b74.tar.bz2 |
quick ffmpeg update (enables wmv1 decoding)
thanks to the ffmpeg team for their amazing work!
CVS patchset: 2141
CVS date: 2002/06/23 21:04:35
Diffstat (limited to 'src/libffmpeg/libavcodec/dsputil.h')
-rw-r--r-- | src/libffmpeg/libavcodec/dsputil.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/dsputil.h b/src/libffmpeg/libavcodec/dsputil.h index b7b7e999c..8c3fdb716 100644 --- a/src/libffmpeg/libavcodec/dsputil.h +++ b/src/libffmpeg/libavcodec/dsputil.h @@ -178,6 +178,25 @@ void dsputil_init_alpha(void); #endif +#ifdef __GNUC__ + +struct unaligned_64 { uint64_t l; } __attribute__((packed)); +struct unaligned_32 { uint32_t l; } __attribute__((packed)); + +#define LD32(a) (((const struct unaligned_32 *) (a))->l) +#define LD64(a) (((const struct unaligned_64 *) (a))->l) + +#define ST32(a, b) (((struct unaligned_32 *) (a))->l) = (b) + +#else /* __GNUC__ */ + +#define LD32(a) (*((uint32_t*)(a))) +#define LD64(a) (*((uint64_t*)(a))) + +#define ST32(a, b) *((uint32_t*)(a)) = (b) + +#endif /* !__GNUC__ */ + /* PSNR */ void get_psnr(UINT8 *orig_image[3], UINT8 *coded_image[3], int orig_linesize[3], int coded_linesize, |