comparison qtrle.c @ 4494:ce643a22f049 libavcodec

Replace deprecated PIX_FMT names by the newer variants.
author diego
date Wed, 07 Feb 2007 01:48:09 +0000
parents 05e932ddaaa9
children 66ef3690d108
comparison
equal deleted inserted replaced
4493:e78c415815f3 4494:ce643a22f049
27 * http://www.pcisys.net/~melanson/codecs/ 27 * http://www.pcisys.net/~melanson/codecs/
28 * 28 *
29 * The QT RLE decoder has seven modes of operation: 29 * The QT RLE decoder has seven modes of operation:
30 * 1, 2, 4, 8, 16, 24, and 32 bits per pixel. For modes 1, 2, 4, and 8 30 * 1, 2, 4, 8, 16, 24, and 32 bits per pixel. For modes 1, 2, 4, and 8
31 * the decoder outputs PAL8 colorspace data. 16-bit data yields RGB555 31 * the decoder outputs PAL8 colorspace data. 16-bit data yields RGB555
32 * data. 24-bit data is RGB24 and 32-bit data is RGBA32. 32 * data. 24-bit data is RGB24 and 32-bit data is RGB32.
33 */ 33 */
34 34
35 #include <stdio.h> 35 #include <stdio.h>
36 #include <stdlib.h> 36 #include <stdlib.h>
37 #include <string.h> 37 #include <string.h>
513 case 24: 513 case 24:
514 avctx->pix_fmt = PIX_FMT_RGB24; 514 avctx->pix_fmt = PIX_FMT_RGB24;
515 break; 515 break;
516 516
517 case 32: 517 case 32:
518 avctx->pix_fmt = PIX_FMT_RGBA32; 518 avctx->pix_fmt = PIX_FMT_RGB32;
519 break; 519 break;
520 520
521 default: 521 default:
522 av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n", 522 av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
523 avctx->bits_per_sample); 523 avctx->bits_per_sample);