Lines Matching defs:currentState

109     CubeStateInfo currentState;
110 memcpy(&currentState, priorState, sizeof(CubeStateInfo));
113 currentState.rgb = (unsigned short *)malloc(6
116 if (currentState.rgb == NULL) {
120 currentState.indices = (unsigned char *)malloc(6
124 if (currentState.indices == NULL) {
125 free(currentState.rgb);
129 currentState.depth++;
130 if (currentState.depth > priorState->maxDepth) {
131 priorState->maxDepth = currentState.depth;
133 currentState.activeEntries = 0;
137 ACTIVATE(rgb, 0x7c00, 0x0400, currentState, index);
138 ACTIVATE(rgb, 0x03e0, 0x0020, currentState, index);
139 ACTIVATE(rgb, 0x001f, 0x0001, currentState, index);
141 if (currentState.activeEntries) {
142 if (!recurseLevel(&currentState)) {
143 free(currentState.rgb);
144 free(currentState.indices);
148 if (currentState.maxDepth > priorState->maxDepth) {
149 priorState->maxDepth = currentState.maxDepth;
152 free(currentState.rgb);
153 free(currentState.indices);
168 CubeStateInfo currentState;
185 currentState.depth = 0;
186 currentState.maxDepth = 0;
187 currentState.usedFlags = useFlags;
188 currentState.activeEntries = 0;
189 currentState.iLUT = newILut;
191 currentState.rgb = (unsigned short *)
193 if (currentState.rgb == NULL) {
202 currentState.indices = (unsigned char *)
204 if (currentState.indices == NULL) {
205 free(currentState.rgb);
220 INSERTNEW(currentState, rgb, i);
225 INSERTNEW(currentState, rgb, cmap_len - i - 1);
228 if (!recurseLevel(&currentState)) {
231 free(currentState.rgb);
232 free(currentState.indices);
240 free(currentState.rgb);
241 free(currentState.indices);