Thread: mplayer vdpau
View Single Post
Old 11-26-08, 07:44 PM   #170
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by scowl View Post
And it's a very slow trick to calculate a constant!
How is this calculating a constant ?

for (i = 1; i <= bob_deinterlace + 1; i++) {
int field = top_field_first ? i : i ^ 3;

Quote:
2 ^ 3 = 8
^ in C is XOR, not Power
so 2^3=1
jyavenard is offline   Reply With Quote