Lines Matching full:p_cur
197 _CvPyramid *p_cur;
282 p_cur = (_CvPyramid *) p_base;
298 pyram[l] = p_cur;
306 for( j = 0; j <= size.width; j++, p_cur++ )
308 p_cur->c = pyramida[i * roi.width + j];
309 p_cur->p = &stub;
310 p_cur->a = 0;
311 p_cur->rect.x2 = 0;
335 p_cur = pyram[l] + (size.width + 1) * size.height;
337 p_cur[j].c = 0;
345 p_cur = pyram[level];
346 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 )
348 p_cur[j].c = 0;
378 p_cur = pyram[l];
379 for( i = 0; i < size.height; i++, p_cur += size.width + 1 )
383 _CvPyramid *p1 = p_cur[j].p;
384 _CvPyramid *p2 = p_cur[j + 1].p;
386 float t0 = (float) p_cur[j].a * p_cur[j].c;
387 float t1 = (float) p_cur[j + 1].a * p_cur[j + 1].c;
393 p_cur[j].a = p_cur[j + 1].a = 0;
396 p_cur[size.width].a = 0;
402 p_cur[j].a = 0;
408 p_cur = pyram[l + 1];
414 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 )
420 int a = p_cur[j].a;
426 p_cur[j].c *= icvInvTab[a - 1];
430 p_cur[j].c /= a;
435 p_cur[j].c = p_prev->c;
444 if( p_cur[size.width].a == 0 )
446 p_cur[size.width].c = p_prev[(l != 0) - 1].c;
450 p_cur[size.width].c /= p_cur[size.width].a;
453 cmp_node.data = p_cur + size.width;
462 int a = p_cur[j].a;
468 p_cur[j].c *= icvInvTab[a - 1];
472 p_cur[j].c /= a;
475 cmp_node.data = p_cur + j;
480 p_cur[j].c = p_prev->c;
496 p_cur[j].a = 0;
515 p_cur = pyram[level];
517 for( i = 0; i < size.height; i++, p_cur += size.width + 1 )
521 if( p_cur[j].a != 0 )
523 cmp_node.data = p_cur + j;
540 p_cur = pyram[l];
555 _CvPyramid *p = p_cur->p;
559 p_cur->c = p->c;
565 _c.f = p_cur->c; dst_image[j] = (uchar)_c.i;
566 p_cur = _CV_NEXT_BASE_C1(p_cur, 1);
570 p_cur++;
611 _CvPyramidC3 *p_cur;
701 p_cur = (_CvPyramidC3 *) p_base;
717 pyram[l] = p_cur;
725 assert( (char*)p_cur - buffer < buffer_size );
726 for( j = 0; j <= size.width; j++, p_cur++ )
728 p_cur->c = ((_CvRGBf *) pyramida)[i * roi.width + j];
729 p_cur->p = &stub;
730 p_cur->a = 0;
731 p_cur->rect.x2 = 0;
755 p_cur = pyram[l] + (size.width + 1) * size.height;
757 p_cur[j].c.blue = p_cur[j].c.green = p_cur[j].c.red = 0;
765 p_cur = pyram[level];
766 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 )
768 p_cur[j].c.blue = p_cur[j].c.green = p_cur[j].c.red = 0;
798 p_cur = pyram[l];
799 for( i = 0; i < size.height; i++, p_cur += size.width + 1 )
803 _CvPyramidC3 *p = p_cur[j].p;
804 float a = (float) p_cur[j].a;
806 p->c.blue += a * p_cur[j].c.blue;
807 p->c.green += a * p_cur[j].c.green;
808 p->c.red += a * p_cur[j].c.red;
811 p_cur[j].a = 0;
814 p_cur[size.width].a = 0;
820 p_cur[j].a = 0;
826 p_cur = pyram[l + 1];
832 for( i = 0; i <= size.height; i++, p_cur += size.width + 1 )
838 int a = p_cur[j].a;
852 p_cur[j].c.blue *= inv_a;
853 p_cur[j].c.green *= inv_a;
854 p_cur[j].c.red *= inv_a;
858 p_cur[j].c = p_prev->c;
867 if( p_cur[size.width].a == 0 )
869 p_cur[size.width].c = p_prev[(l != 0) - 1].c;
873 p_cur[size.width].c.blue /= p_cur[size.width].a;
874 p_cur[size.width].c.green /= p_cur[size.width].a;
875 p_cur[size.width].c.red /= p_cur[size.width].a;
878 cmp_node.data = p_cur + size.width;
887 int a = p_cur[j].a;
901 p_cur[j].c.blue *= inv_a;
902 p_cur[j].c.green *= inv_a;
903 p_cur[j].c.red *= inv_a;
905 cmp_node.data = p_cur + j;
910 p_cur[j].c = p_prev->c;
926 p_cur[j].a = 0;
945 p_cur = pyram[level];
947 for( i = 0; i < size.height; i++, p_cur += size.width + 1 )
951 if( p_cur[j].a != 0 )
953 cmp_node.data = p_cur + j;
970 p_cur = pyram[l];
985 _CvPyramidC3 *p = p_cur->p;
990 p_cur->c = p->c;
997 _c.f = p_cur->c.blue; dst_image[j*3] = (uchar)_c.i;
998 _c.f = p_cur->c.green; dst_image[j*3+1] = (uchar)_c.i;
999 _c.f = p_cur->c.red; dst_image[j*3+2] = (uchar)_c.i;
1000 p_cur = _CV_NEXT_BASE_C3(p_cur,1);
1004 p_cur++;
1032 _CvPyramid *p_cur = (_CvPyramid *) layer_data;
1046 c0 = p_cur->c;
1074 p_cur->p = p;
1079 p_cur = (_CvPyramid*)((char*)p_cur + sizeof(_CvPyramidBase));
1085 int a = p_cur->a;
1088 p_cur->c = 0;
1089 p_cur++;
1091 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) );
1096 p_cur->p = stub;
1099 cmp_node.data = p_cur;
1104 p_cur = _CV_NEXT_BASE_C1(p_cur,1);
1108 p_cur->c = 0;
1109 p_cur++;
1114 c0 = p_cur->c;
1144 p_cur->p = p;
1149 p_cur = _CV_NEXT_BASE_C1(p_cur,1);
1155 int a = p_cur->a;
1158 p_cur->c = 0;
1159 p_cur++;
1161 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) );
1166 p_cur->p = stub;
1169 cmp_node.data = p_cur;
1174 p_cur = _CV_NEXT_BASE_C1(p_cur,1);
1178 p_cur->c = 0;
1179 p_cur++;
1187 p_cur->c = 0;
1188 p_cur++;
1215 _CvPyramidC3 *p_cur = (_CvPyramidC3 *) layer_data;
1229 c1 = _CV_RGB_DIST( p_cur->c, p_next1[0].c );
1230 c2 = _CV_RGB_DIST( p_cur->c, p_next1[1].c );
1231 c3 = _CV_RGB_DIST( p_cur->c, p_next3[0].c );
1232 c4 = _CV_RGB_DIST( p_cur->c, p_next3[1].c );
1254 p_cur->p = p;
1259 p_cur = _CV_NEXT_BASE_C3(p_cur,1);
1265 int a = p_cur->a;
1268 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0;
1269 p_cur++;
1271 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) );
1276 p_cur->p = stub;
1277 if( is_last_iter /* && ( == 0 || p_cur->a != 0) */ )
1279 cmp_node.data = p_cur;
1285 p_cur = _CV_NEXT_BASE_C3(p_cur,1);
1289 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0;
1290 p_cur++;
1295 c1 = _CV_RGB_DIST( p_cur->c, p_next1[0].c );
1296 c2 = _CV_RGB_DIST( p_cur->c, p_next1[1].c );
1297 c3 = _CV_RGB_DIST( p_cur->c, p_next3[0].c );
1298 c4 = _CV_RGB_DIST( p_cur->c, p_next3[1].c );
1323 p_cur->p = p;
1328 p_cur = _CV_NEXT_BASE_C3(p_cur,1);
1334 int a = p_cur->a;
1337 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0;
1338 p_cur++;
1340 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) );
1345 p_cur->p = stub;
1346 if( is_last_iter /* && ( == 0 || p_cur->a != 0) */ )
1348 cmp_node.data = p_cur;
1353 p_cur = _CV_NEXT_BASE_C3(p_cur,1);
1357 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0;
1358 p_cur++;
1366 p_cur->c.blue = p_cur->c.green = p_cur->c.red = 0;
1367 p_cur++;