mirror of
https://github.com/mpv-player/mpv
synced 2025-02-25 17:58:27 +00:00
do table permutation only once
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1637 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3a731cdbb5
commit
93e3f1b2fb
@ -59,6 +59,8 @@ static int drop_frame = 0;
|
|||||||
int quant_store[MBR+1][MBC+1]; // [Review]
|
int quant_store[MBR+1][MBC+1]; // [Review]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static table_init_state=0;
|
||||||
|
|
||||||
void mpeg2_init (void)
|
void mpeg2_init (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -86,8 +88,11 @@ void mpeg2_init (void)
|
|||||||
|
|
||||||
picture->pp_options=0;
|
picture->pp_options=0;
|
||||||
|
|
||||||
idct_init ();
|
if(!table_init_state){
|
||||||
motion_comp_init ();
|
idct_init ();
|
||||||
|
motion_comp_init ();
|
||||||
|
table_init_state=1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static vo_frame_t frames[4];
|
static vo_frame_t frames[4];
|
||||||
|
Loading…
Reference in New Issue
Block a user