Mercurial > mplayer.hg
comparison libmpcodecs/vf_2xsai.c @ 24863:8ac6f14f882d
Remove unused functions, fixes the warnings:
vf_2xsai.c:80: warning: 'GetResult1' defined but not used
vf_2xsai.c:100: warning: 'GetResult2' defined but not used
author | diego |
---|---|
date | Tue, 30 Oct 2007 09:10:01 +0000 |
parents | 230123782da0 |
children | c79fa5c75d4e |
comparison
equal
deleted
inserted
replaced
24862:94ec445120da | 24863:8ac6f14f882d |
---|---|
71 // TRACE("QLow Pixel Mask: 0x%lX\n", qlowpixelMask); | 71 // TRACE("QLow Pixel Mask: 0x%lX\n", qlowpixelMask); |
72 | 72 |
73 xsai_depth = d; | 73 xsai_depth = d; |
74 | 74 |
75 return 0; | 75 return 0; |
76 } | |
77 | |
78 | |
79 static int GetResult1(uint32 A, uint32 B, uint32 C, uint32 D) | |
80 { | |
81 int x = 0; | |
82 int y = 0; | |
83 int r = 0; | |
84 if (A == C) | |
85 x += 1; | |
86 else if (B == C) | |
87 y += 1; | |
88 if (A == D) | |
89 x += 1; | |
90 else if (B == D) | |
91 y += 1; | |
92 if (x <= 1) | |
93 r += 1; | |
94 if (y <= 1) | |
95 r -= 1; | |
96 return r; | |
97 } | |
98 | |
99 static int GetResult2(uint32 A, uint32 B, uint32 C, uint32 D, uint32 E) | |
100 { | |
101 int x = 0; | |
102 int y = 0; | |
103 int r = 0; | |
104 if (A == C) | |
105 x += 1; | |
106 else if (B == C) | |
107 y += 1; | |
108 if (A == D) | |
109 x += 1; | |
110 else if (B == D) | |
111 y += 1; | |
112 if (x <= 1) | |
113 r -= 1; | |
114 if (y <= 1) | |
115 r += 1; | |
116 return r; | |
117 } | 76 } |
118 | 77 |
119 | 78 |
120 #define GET_RESULT(A, B, C, D) ((A != C || A != D) - (B != C || B != D)) | 79 #define GET_RESULT(A, B, C, D) ((A != C || A != D) - (B != C || B != D)) |
121 | 80 |