Mercurial > libavcodec.hg
changeset 9985:266bf83f634d libavcodec
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author | mru |
---|---|
date | Sun, 26 Jul 2009 12:20:04 +0000 |
parents | 32dfddd8992a |
children | 782dea3e70e7 |
files | 8bps.c cscd.c flacenc.c flicvideo.c h264.c huffyuv.c imgconvert.c indeo3.c pcm.c ptx.c simple_idct.c targa.c tiffenc.c truemotion1.c |
diffstat | 14 files changed, 22 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/8bps.c Fri Jul 24 21:28:44 2009 +0000 +++ b/8bps.c Sun Jul 26 12:20:04 2009 +0000 @@ -183,7 +183,7 @@ case 32: avctx->pix_fmt = PIX_FMT_RGB32; c->planes = 4; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN c->planemap[0] = 1; // 1st plane is red c->planemap[1] = 2; // 2nd plane is green c->planemap[2] = 3; // 3rd plane is blue
--- a/cscd.c Fri Jul 24 21:28:44 2009 +0000 +++ b/cscd.c Sun Jul 26 12:20:04 2009 +0000 @@ -59,7 +59,7 @@ } } -#ifndef WORDS_BIGENDIAN +#if !HAVE_BIGENDIAN #define copy_frame_16 copy_frame_default #define copy_frame_32 copy_frame_default #define add_frame_16 add_frame_default
--- a/flacenc.c Fri Jul 24 21:28:44 2009 +0000 +++ b/flacenc.c Sun Jul 26 12:20:04 2009 +0000 @@ -1224,7 +1224,7 @@ static void update_md5_sum(FlacEncodeContext *s, int16_t *samples) { -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN int i; for(i = 0; i < s->frame.blocksize*s->channels; i++) { int16_t smp = le2me_16(samples[i]);
--- a/flicvideo.c Fri Jul 24 21:28:44 2009 +0000 +++ b/flicvideo.c Sun Jul 26 12:20:04 2009 +0000 @@ -585,7 +585,7 @@ * during decompression. So if it is required (i.e., this is not a LE target, we do * a second pass over the line here, swapping the bytes. */ -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN pixel_ptr = y_ptr; pixel_countdown = s->avctx->width; while (pixel_countdown > 0) {
--- a/h264.c Fri Jul 24 21:28:44 2009 +0000 +++ b/h264.c Sun Jul 26 12:20:04 2009 +0000 @@ -82,7 +82,7 @@ static Picture * remove_long(H264Context *h, int i, int ref_mask); static av_always_inline uint32_t pack16to32(int a, int b){ -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN return (b&0xFFFF) + (a<<16); #else return (a&0xFFFF) + (b<<16);
--- a/huffyuv.c Fri Jul 24 21:28:44 2009 +0000 +++ b/huffyuv.c Sun Jul 26 12:20:04 2009 +0000 @@ -35,7 +35,7 @@ #define VLC_BITS 11 -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN #define B 3 #define G 2 #define R 1
--- a/imgconvert.c Fri Jul 24 21:28:44 2009 +0000 +++ b/imgconvert.c Sun Jul 26 12:20:04 2009 +0000 @@ -548,7 +548,7 @@ return PIX_FMT_NONE; } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN # define X_NE(be, le) be #else # define X_NE(be, le) le
--- a/indeo3.c Fri Jul 24 21:28:44 2009 +0000 +++ b/indeo3.c Sun Jul 26 12:20:04 2009 +0000 @@ -576,7 +576,7 @@ lv1 = ref_lp[0]; lv2 = ref_lp[1]; if(lp2 == 0 && flag1 != 0) { -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN lv1 = lv1 & 0xFF00FF00; lv1 = (lv1 >> 8) | lv1; lv2 = lv2 & 0xFF00FF00;
--- a/pcm.c Fri Jul 24 21:28:44 2009 +0000 +++ b/pcm.c Sun Jul 26 12:20:04 2009 +0000 @@ -214,7 +214,7 @@ *dst++ = v - 128; } break; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN case CODEC_ID_PCM_F64LE: ENCODE(int64_t, le64, samples, dst, n, 0, 0) break; @@ -244,7 +244,7 @@ case CODEC_ID_PCM_F32LE: case CODEC_ID_PCM_S32LE: case CODEC_ID_PCM_S16LE: -#endif /* WORDS_BIGENDIAN */ +#endif /* HAVE_BIGENDIAN */ case CODEC_ID_PCM_U8: memcpy(dst, samples, n*sample_size); dst += n*sample_size; @@ -422,7 +422,7 @@ } samples= (short*)dstu8; break; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN case CODEC_ID_PCM_F64LE: DECODE(int64_t, le64, src, samples, n, 0, 0) break; @@ -452,7 +452,7 @@ case CODEC_ID_PCM_F32LE: case CODEC_ID_PCM_S32LE: case CODEC_ID_PCM_S16LE: -#endif /* WORDS_BIGENDIAN */ +#endif /* HAVE_BIGENDIAN */ case CODEC_ID_PCM_U8: memcpy(samples, src, n*sample_size); src += n*sample_size;
--- a/ptx.c Fri Jul 24 21:28:44 2009 +0000 +++ b/ptx.c Sun Jul 26 12:20:04 2009 +0000 @@ -79,7 +79,7 @@ stride = p->linesize[0]; for (y=0; y<h; y++) { -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN unsigned int x; for (x=0; x<w*bytes_per_pixel; x+=bytes_per_pixel) AV_WN16(ptr+x, AV_RL16(buf+x));
--- a/simple_idct.c Fri Jul 24 21:28:44 2009 +0000 +++ b/simple_idct.c Sun Jul 26 12:20:04 2009 +0000 @@ -66,7 +66,7 @@ #endif #if HAVE_FAST_64BIT -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN #define ROW0_MASK 0xffff000000000000LL #else #define ROW0_MASK 0xffffLL
--- a/targa.c Fri Jul 24 21:28:44 2009 +0000 +++ b/targa.c Sun Jul 26 12:20:04 2009 +0000 @@ -199,7 +199,7 @@ targa_decode_rle(avctx, s, buf, dst, avctx->width, avctx->height, stride, bpp); else{ for(y = 0; y < s->height; y++){ -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN if((s->bpp + 1) >> 3 == 2){ uint16_t *dst16 = (uint16_t*)dst; for(x = 0; x < s->width; x++)
--- a/tiffenc.c Fri Jul 24 21:28:44 2009 +0000 +++ b/tiffenc.c Sun Jul 26 12:20:04 2009 +0000 @@ -91,7 +91,7 @@ int flip) { int i; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN flip ^= ((int[]) {0, 0, 0, 1, 3, 3})[type]; #endif for (i = 0; i < n * type_sizes2[type]; i++)
--- a/truemotion1.c Fri Jul 24 21:28:44 2009 +0000 +++ b/truemotion1.c Sun Jul 26 12:20:04 2009 +0000 @@ -163,7 +163,7 @@ } } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN static int make_ydt15_entry(int p2, int p1, int16_t *ydt) #else static int make_ydt15_entry(int p1, int p2, int16_t *ydt) @@ -178,7 +178,7 @@ return (lo + (hi << 16)) << 1; } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN static int make_cdt15_entry(int p2, int p1, int16_t *cdt) #else static int make_cdt15_entry(int p1, int p2, int16_t *cdt) @@ -192,7 +192,7 @@ return (lo + (lo << 16)) << 1; } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN static int make_ydt16_entry(int p2, int p1, int16_t *ydt) #else static int make_ydt16_entry(int p1, int p2, int16_t *ydt) @@ -207,7 +207,7 @@ return (lo + (hi << 16)) << 1; } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN static int make_cdt16_entry(int p2, int p1, int16_t *cdt) #else static int make_cdt16_entry(int p1, int p2, int16_t *cdt) @@ -221,7 +221,7 @@ return (lo + (lo << 16)) << 1; } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN static int make_ydt24_entry(int p2, int p1, int16_t *ydt) #else static int make_ydt24_entry(int p1, int p2, int16_t *ydt) @@ -234,7 +234,7 @@ return (lo + (hi << 8) + (hi << 16)) << 1; } -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN static int make_cdt24_entry(int p2, int p1, int16_t *cdt) #else static int make_cdt24_entry(int p1, int p2, int16_t *cdt)