[FFmpeg-soc] [soc]: r709 - dirac/libavcodec/dirac.c
marco
subversion at mplayerhq.hu
Sat Aug 11 23:43:02 CEST 2007
Author: marco
Date: Sat Aug 11 23:43:01 2007
New Revision: 709
Log:
simplify code
Modified:
dirac/libavcodec/dirac.c
Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c (original)
+++ dirac/libavcodec/dirac.c Sat Aug 11 23:43:01 2007
@@ -810,11 +810,10 @@ static int inline coeff_dequant(AVCodecC
*/
static int inline coeff_posx(AVCodecContext *avctx, int level,
subband_t orientation, int x) {
- int right = 0;
if (orientation == subband_hl || orientation == subband_hh)
- right = 1;
+ return subband_width(avctx, level) + x;
- return right * subband_width(avctx, level) + x;
+ return x;
}
/**
@@ -828,11 +827,10 @@ static int inline coeff_posx(AVCodecCont
*/
static int inline coeff_posy(AVCodecContext *avctx, int level,
subband_t orientation, int y) {
- int bottom = 0;
if (orientation == subband_lh || orientation == subband_hh)
- bottom = 1;
+ return subband_height(avctx, level) + y;
- return bottom * subband_height(avctx, level) + y;
+ return y;
}
/**
More information about the FFmpeg-soc
mailing list