comparison dec_video.c @ 3172:bb38b6b072f8

support for FLI image decoding
author melanson
date Wed, 28 Nov 2001 01:35:55 +0000
parents 80df2986ca42
children 64976b15ee5d
comparison
equal deleted inserted replaced
3171:3a325e7f6e1d 3172:bb38b6b072f8
120 char *decoded, 120 char *decoded,
121 int width, 121 int width,
122 int height, 122 int height,
123 unsigned char *palette_map, 123 unsigned char *palette_map,
124 int bytes_per_pixel); 124 int bytes_per_pixel);
125
126 void AVI_Decode_Fli(
127 unsigned char *encoded,
128 int encoded_size,
129 unsigned char *decoded,
130 int width,
131 int height,
132 int bytes_per_pixel);
133
125 134
126 //**************************************************************************// 135 //**************************************************************************//
127 // The OpenDivX stuff: 136 // The OpenDivX stuff:
128 //**************************************************************************// 137 //**************************************************************************//
129 138
554 int bpp=((out_fmt&255)+7)/8; // RGB only 563 int bpp=((out_fmt&255)+7)/8; // RGB only
555 sh_video->our_out_buffer = 564 sh_video->our_out_buffer =
556 (char*)memalign(64, sh_video->disp_w*sh_video->disp_h*bpp); // FIXME!!! 565 (char*)memalign(64, sh_video->disp_w*sh_video->disp_h*bpp); // FIXME!!!
557 } 566 }
558 break; 567 break;
568 case VFM_FLI: {
569 int bpp=((out_fmt&255)+7)/8; // RGB only
570 sh_video->our_out_buffer =
571 (char*)memalign(64, sh_video->disp_w*sh_video->disp_h*bpp); // FIXME!!!
572 }
573 break;
559 } 574 }
560 } 575 }
561 sh_video->inited=1; 576 sh_video->inited=1;
562 return 1; 577 return 1;
563 } 578 }
801 else 816 else
802 AVI_Decode_Video1_8( 817 AVI_Decode_Video1_8(
803 start, in_size, sh_video->our_out_buffer, 818 start, in_size, sh_video->our_out_buffer,
804 sh_video->disp_w, sh_video->disp_h, 819 sh_video->disp_w, sh_video->disp_h,
805 (char *)sh_video->bih+40, ((out_fmt&255)+7)/8); 820 (char *)sh_video->bih+40, ((out_fmt&255)+7)/8);
821 blit_frame = 3;
822 break;
823 case VFM_FLI:
824 AVI_Decode_Fli(
825 start, in_size, sh_video->our_out_buffer,
826 sh_video->disp_w, sh_video->disp_h,
827 ((out_fmt&255)+7)/8);
806 blit_frame = 3; 828 blit_frame = 3;
807 break; 829 break;
808 } // switch 830 } // switch
809 //------------------------ frame decoded. -------------------- 831 //------------------------ frame decoded. --------------------
810 832