Mercurial > libavcodec.hg
comparison truemotion2.c @ 2908:21068c2fcb1d libavcodec
gcc 2.95 fix, courtesy of Luca Abeni
author | melanson |
---|---|
date | Fri, 14 Oct 2005 16:17:40 +0000 |
parents | e578b3572987 |
children | a1d02ca0d339 |
comparison
equal
deleted
inserted
replaced
2907:f7114e03d8dd | 2908:21068c2fcb1d |
---|---|
334 } | 334 } |
335 | 335 |
336 /* blocks decoding routines */ | 336 /* blocks decoding routines */ |
337 | 337 |
338 /* common Y, U, V pointers initialisation */ | 338 /* common Y, U, V pointers initialisation */ |
339 #define TM2_INIT_POINTERS(); \ | 339 #define TM2_INIT_POINTERS() \ |
340 int *last, *clast; \ | 340 int *last, *clast; \ |
341 int *Y, *U, *V;\ | 341 int *Y, *U, *V;\ |
342 int Ystride, Ustride, Vstride;\ | 342 int Ystride, Ustride, Vstride;\ |
343 \ | 343 \ |
344 Ystride = ctx->avctx->width;\ | 344 Ystride = ctx->avctx->width;\ |
348 V = (ctx->cur?ctx->V2:ctx->V1) + by * 2 * Vstride + bx * 2;\ | 348 V = (ctx->cur?ctx->V2:ctx->V1) + by * 2 * Vstride + bx * 2;\ |
349 U = (ctx->cur?ctx->U2:ctx->U1) + by * 2 * Ustride + bx * 2;\ | 349 U = (ctx->cur?ctx->U2:ctx->U1) + by * 2 * Ustride + bx * 2;\ |
350 last = ctx->last + bx * 4;\ | 350 last = ctx->last + bx * 4;\ |
351 clast = ctx->clast + bx * 4; | 351 clast = ctx->clast + bx * 4; |
352 | 352 |
353 #define TM2_INIT_POINTERS_2(); \ | 353 #define TM2_INIT_POINTERS_2() \ |
354 int *Yo, *Uo, *Vo;\ | 354 int *Yo, *Uo, *Vo;\ |
355 int oYstride, oUstride, oVstride;\ | 355 int oYstride, oUstride, oVstride;\ |
356 \ | 356 \ |
357 TM2_INIT_POINTERS();\ | 357 TM2_INIT_POINTERS();\ |
358 oYstride = Ystride;\ | 358 oYstride = Ystride;\ |