comparison libmpeg2/decode.c @ 1636:3c33deb3e561

do table permutation only once
author arpi
date Wed, 22 Aug 2001 21:34:10 +0000
parents 5f07e67982d6
children e78cf3fc992e
comparison
equal deleted inserted replaced
1635:79d88b10a7d9 1636:3c33deb3e561
57 57
58 #ifdef MPEG12_POSTPROC 58 #ifdef MPEG12_POSTPROC
59 int quant_store[MBR+1][MBC+1]; // [Review] 59 int quant_store[MBR+1][MBC+1]; // [Review]
60 #endif 60 #endif
61 61
62 static table_init_state=0;
63
62 void mpeg2_init (void) 64 void mpeg2_init (void)
63 { 65 {
64 66
65 printf (PACKAGE"-"VERSION" (C) 2000-2001 Aaron Holtzman & Michel Lespinasse\n"); 67 printf (PACKAGE"-"VERSION" (C) 2000-2001 Aaron Holtzman & Michel Lespinasse\n");
66 config.flags = 0; 68 config.flags = 0;
84 header_state_init (picture); 86 header_state_init (picture);
85 // picture->repeat_count=0; 87 // picture->repeat_count=0;
86 88
87 picture->pp_options=0; 89 picture->pp_options=0;
88 90
89 idct_init (); 91 if(!table_init_state){
90 motion_comp_init (); 92 idct_init ();
93 motion_comp_init ();
94 table_init_state=1;
95 }
91 } 96 }
92 97
93 static vo_frame_t frames[4]; 98 static vo_frame_t frames[4];
94 99
95 void mpeg2_allocate_image_buffers (picture_t * picture) 100 void mpeg2_allocate_image_buffers (picture_t * picture)