Mercurial > mplayer.hg
comparison dec_video.c @ 4916:a41e0440edfb
Cinepak decoder now use mp_image_t -> YV12 worx, others disabled
author | arpi |
---|---|
date | Sat, 02 Mar 2002 23:43:23 +0000 |
parents | 6078b7894e20 |
children | 6c518133c3b8 |
comparison
equal
deleted
inserted
replaced
4915:f6990fad0ab3 | 4916:a41e0440edfb |
---|---|
154 | 154 |
155 void decode_cinepak( | 155 void decode_cinepak( |
156 void *context, | 156 void *context, |
157 unsigned char *buf, | 157 unsigned char *buf, |
158 int size, | 158 int size, |
159 unsigned char *frame, | 159 mp_image_t *mpi); |
160 unsigned int width, | |
161 unsigned int height, | |
162 int bit_per_pixel, | |
163 int stride); | |
164 | 160 |
165 void decode_cyuv( | 161 void decode_cyuv( |
166 unsigned char *buf, | 162 unsigned char *buf, |
167 int size, | 163 int size, |
168 unsigned char *frame, | 164 unsigned char *frame, |
863 case VFM_CINEPAK: | 859 case VFM_CINEPAK: |
864 if (in_size == 0) | 860 if (in_size == 0) |
865 blit_frame = 0; | 861 blit_frame = 0; |
866 else | 862 else |
867 { | 863 { |
868 decode_cinepak(sh_video->context, start, in_size, sh_video->our_out_buffer, | 864 decode_cinepak(sh_video->context, start, in_size, mpi); |
869 sh_video->disp_w, sh_video->disp_h, (out_fmt==IMGFMT_YV12)?12:(out_fmt==IMGFMT_YUY2)?16:(out_fmt&255), 0); | 865 blit_frame = 2; |
870 blit_frame = 3; | |
871 } | 866 } |
872 break; | 867 break; |
873 #ifdef USE_XANIM | 868 #ifdef USE_XANIM |
874 case VFM_XANIM: { | 869 case VFM_XANIM: { |
875 xacodec_image_t* image=xacodec_decode_frame(start,in_size,drop_frame?1:0); | 870 xacodec_image_t* image=xacodec_decode_frame(start,in_size,drop_frame?1:0); |