comparison libmpcodecs/vd_qtrle.c @ 9114:306ea9a02ebe

Quicktime rle 32 bit supported
author rtognimp
date Sun, 26 Jan 2003 22:05:18 +0000
parents 28677d779205
children
comparison
equal deleted inserted replaced
9113:ee0fdf5505c4 9114:306ea9a02ebe
30 { 30 {
31 int req_format = *((int*)arg); 31 int req_format = *((int*)arg);
32 32
33 /* qtrle24 supports 32bit output too */ 33 /* qtrle24 supports 32bit output too */
34 if ((req_format == (IMGFMT_BGR|ctx->depth)) || 34 if ((req_format == (IMGFMT_BGR|ctx->depth)) ||
35 ((IMGFMT_BGR_DEPTH(req_format) == 32) && (ctx->depth == 24))) 35 ((IMGFMT_BGR_DEPTH(req_format) == 32) && (ctx->depth == 24)) ||
36 ((IMGFMT_BGR_DEPTH(req_format) == 24) && (ctx->depth == 32)))
36 return(CONTROL_TRUE); 37 return(CONTROL_TRUE);
37 else 38 else
38 return(CONTROL_FALSE); 39 return(CONTROL_FALSE);
39 } 40 }
40 } 41 }
66 } 67 }
67 break; 68 break;
68 case 16: 69 case 16:
69 ctx->depth--; /* this is the trick ;) */ 70 ctx->depth--; /* this is the trick ;) */
70 break; 71 break;
72 case 32:
73 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"[qtrle] 32 bpp file, alpha channel will be ignored.\n");
71 case 24: 74 case 24:
72 break; 75 break;
73 default: 76 default:
74 mp_msg(MSGT_DECVIDEO,MSGL_ERR, 77 mp_msg(MSGT_DECVIDEO,MSGL_ERR,
75 "*** FYI: This Quicktime file is using %d-bit RLE Animation\n" \ 78 "*** FYI: This Quicktime file is using %d-bit RLE Animation\n" \