mirror of
https://github.com/mpv-player/mpv
synced 2025-04-09 11:11:52 +00:00
another ridiculous palette bug which has nothing to do with the new palete support in sws
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22242 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f0ed643434
commit
29aefa57b4
@ -257,6 +257,7 @@ static int config(struct vf_instance_s* vf,
|
||||
vf->priv->palette[4*i+0]=4*(i&3)*21;
|
||||
vf->priv->palette[4*i+1]=4*((i>>2)&7)*9;
|
||||
vf->priv->palette[4*i+2]=4*((i>>5)&7)*9;
|
||||
vf->priv->palette[4*i+3]=0;
|
||||
}
|
||||
break; }
|
||||
case IMGFMT_BGR4:
|
||||
@ -267,6 +268,7 @@ static int config(struct vf_instance_s* vf,
|
||||
vf->priv->palette[4*i+0]=4*(i&1)*63;
|
||||
vf->priv->palette[4*i+1]=4*((i>>1)&3)*21;
|
||||
vf->priv->palette[4*i+2]=4*((i>>3)&1)*63;
|
||||
vf->priv->palette[4*i+3]=0;
|
||||
}
|
||||
break; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user