Mercurial > mplayer.hg
comparison libswscale/swscale_template.c @ 30393:db62840d27ae
Use isAnyRGB() where possible
author | michael |
---|---|
date | Tue, 26 Jan 2010 08:03:28 +0000 |
parents | 2a33c1c37e6b |
children | 9f6927dd7472 |
comparison
equal
deleted
inserted
replaced
30392:8d89e0052f84 | 30393:db62840d27ae |
---|---|
3046 c->chrSrcOffset = 1; | 3046 c->chrSrcOffset = 1; |
3047 c->alpSrcOffset = 1; | 3047 c->alpSrcOffset = 1; |
3048 break; | 3048 break; |
3049 } | 3049 } |
3050 | 3050 |
3051 if (c->srcRange != c->dstRange && !(isRGBinInt(c->dstFormat) || isBGRinInt(c->dstFormat))) { | 3051 if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) { |
3052 if (c->srcRange) { | 3052 if (c->srcRange) { |
3053 c->lumConvertRange = RENAME(lumRangeFromJpeg); | 3053 c->lumConvertRange = RENAME(lumRangeFromJpeg); |
3054 c->chrConvertRange = RENAME(chrRangeFromJpeg); | 3054 c->chrConvertRange = RENAME(chrRangeFromJpeg); |
3055 } else { | 3055 } else { |
3056 c->lumConvertRange = RENAME(lumRangeToJpeg); | 3056 c->lumConvertRange = RENAME(lumRangeToJpeg); |