Lines Matching defs:distance

542   if( ( distance >= ( ( ( position[ POSITION ] + current_size - \
553 if( distance >= ( ( ( position[ POSITION ] + current_size - \
557 if( distance < ( ( ( COLOR_MAX - c[ POSITION ] ) * \
560 if( distance < ( ( ( position[ POSITION ] + \
574 Check the distance */ \
582 if( newdistance < distance ) \
585 distance = newdistance; \
590 distance = \
593 distance, &found_color, c, p, \
607 Check the distance */ \
615 if( newdistance < distance ) \
618 distance = newdistance; \
623 distance = mlib_search_quadrant_##IMAGE_TYPE##_3( \
625 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], p ); \
642 Check the distance */ \
650 if( newdistance < distance ) \
653 distance = newdistance; \
658 distance = \
661 distance, &found_color, c, p, \
676 Check the distance */ \
684 if( newdistance < distance ) \
687 distance = newdistance; \
692 distance = mlib_search_quadrant_##IMAGE_TYPE##_3( \
694 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], p ); \
704 if( distance >= ( ( ( position[ POSITION ] + current_size - \
708 if( distance < ( ( ( COLOR_MAX - c[ POSITION ] ) * \
711 if( distance < ( ( ( position[ POSITION ] + \
725 Check the distance */ \
734 if( newdistance < distance ) \
737 distance = newdistance; \
742 distance = \
745 distance, &found_color, c, p, \
759 Check the distance */ \
768 if( newdistance < distance ) \
771 distance = newdistance; \
776 distance = mlib_search_quadrant_##IMAGE_TYPE##_4( \
778 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], c[ 3 ], p ); \
795 Check the distance */ \
804 if( newdistance < distance ) \
807 distance = newdistance; \
812 distance = \
815 distance, &found_color, c, p, \
830 Check the distance */ \
839 if( newdistance < distance ) \
842 distance = newdistance; \
847 distance = mlib_search_quadrant_##IMAGE_TYPE##_4( \
849 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], c[ 3 ], p ); \
858 if( ( distance > ( ( ( position[ POSITION ] - c[ POSITION ] ) * \
868 if( distance > \
872 if( distance <= ( ( c[ POSITION ] * c[ POSITION ] ) >> SHIFT ) ) \
874 if( distance <= ( ( ( c[ POSITION ] + current_size - \
887 Check the distance */ \
895 if( newdistance < distance ) \
898 distance = newdistance; \
903 distance = \
906 distance, &found_color, c, p, \
920 Check the distance */ \
928 if( newdistance < distance ) \
931 distance = newdistance; \
936 distance = mlib_search_quadrant_##IMAGE_TYPE##_3( \
938 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], p ); \
953 Check the distance */ \
961 if( newdistance < distance ) \
964 distance = newdistance; \
969 distance = \
972 distance, &found_color, c, p, \
986 Check the distance */ \
994 if( newdistance < distance ) \
997 distance = newdistance; \
1002 distance = mlib_search_quadrant_##IMAGE_TYPE##_3( \
1004 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], p ); \
1014 if( distance > \
1018 if( distance <= ( ( c[ POSITION ] * c[ POSITION ] ) >> SHIFT ) ) \
1020 if( distance <= ( ( ( c[ POSITION ] + current_size - \
1033 Check the distance */ \
1042 if( newdistance < distance ) \
1045 distance = newdistance; \
1050 distance = \
1053 distance, &found_color, c, p, \
1067 Check the distance */ \
1076 if( newdistance < distance ) \
1079 distance = newdistance; \
1084 distance = mlib_search_quadrant_##IMAGE_TYPE##_4( \
1086 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], c[ 3 ], p ); \
1101 Check the distance */ \
1110 if( newdistance < distance ) \
1113 distance = newdistance; \
1118 distance = \
1121 distance, &found_color, c, p, \
1135 Check the distance */ \
1144 if( newdistance < distance ) \
1147 distance = newdistance; \
1152 distance = mlib_search_quadrant_##IMAGE_TYPE##_4( \
1154 distance, &found_color, c[ 0 ], c[ 1 ], c[ 2 ], c[ 3 ], p ); \
1165 /* Here is another color cell. Check the distance */ \
1172 if( newdistance < distance ) \
1175 distance = newdistance; \
1180 distance = mlib_search_quadrant_U8_3( \
1181 node->contents.quadrants[ qq ], distance, &found_color, \
1191 /* Here is another color cell. Check the distance */ \
1203 if( newdistance < distance ) \
1206 distance = newdistance; \
1211 distance = mlib_search_quadrant_S16_3( \
1212 node->contents.quadrants[ qq ], distance, &found_color, \
1289 mlib_u32 distance; \
1295 distance = FIND_DISTANCE_3( c[ 0 ], palc[ 0 ], \
1441 mlib_u32 distance = MLIB_U32_MAX; \
1574 /* Here is another color cell. Check the distance */ \
1582 if( newdistance < distance ) \
1585 distance = newdistance; \
1590 distance = mlib_search_quadrant_U8_4( \
1591 node->contents.quadrants[ qq ], distance, &found_color, \
1601 /* Here is another color cell. Check the distance */ \
1615 if( newdistance < distance ) \
1618 distance = newdistance; \
1623 distance = mlib_search_quadrant_S16_4( \
1624 node->contents.quadrants[ qq ], distance, &found_color, \
1707 mlib_u32 distance; \
1713 distance = FIND_DISTANCE_4( c[ 0 ], palc[ 0 ], \
1932 mlib_u32 distance = MLIB_U32_MAX; \
2695 mlib_u32 distance,
2707 /* Here is alone color cell. Check the distance */
2717 if (distance > newdistance) {
2719 distance = newdistance;
2723 distance =
2724 mlib_search_quadrant_U8_3(node->contents.quadrants[i], distance,
2728 return distance;
2733 mlib_u32 distance,
2752 if (distance < (position + current_size - c[dir_bit]) * (position + current_size - c[dir_bit])) { /* Search half of quadrant */
2757 /* Here is alone color cell. Check the distance */
2767 if (distance > newdistance) {
2769 distance = newdistance;
2773 distance =
2775 distance, found_color, c, base,
2786 /* Here is alone color cell. Check the distance */
2796 if (distance > newdistance) {
2798 distance = newdistance;
2805 distance =
2807 distance, found_color, c,
2813 distance =
2814 mlib_search_quadrant_U8_3(node->contents.quadrants[i], distance,
2820 return distance;
2825 mlib_u32 distance,
2844 if (distance <= (c[dir_bit] - position - current_size) * (c[dir_bit] - position - current_size)) { /* Search half of quadrant */
2849 /* Here is alone color cell. Check the distance */
2859 if (distance > newdistance) {
2861 distance = newdistance;
2865 distance =
2867 distance, found_color, c,
2879 /* Here is alone color cell. Check the distance */
2889 if (distance > newdistance) {
2891 distance = newdistance;
2898 distance =
2899 mlib_search_quadrant_U8_3(node->contents.quadrants[i], distance,
2903 distance =
2905 distance, found_color, c,
2911 return distance;
2916 mlib_u32 distance,
2928 /* Here is alone color cell. Check the distance */
2938 if (distance > newdistance) {
2940 distance = newdistance;
2944 distance =
2945 mlib_search_quadrant_S16_3(node->contents.quadrants[i], distance,
2949 return distance;
2954 mlib_u32 distance,
2973 if (distance < (((position + current_size - c[dir_bit]) * (position + current_size - c[dir_bit])) >> 2)) { /* Search half of quadrant */
2978 /* Here is alone color cell. Check the distance */
2988 if (distance > newdistance) {
2990 distance = newdistance;
2994 distance =
2996 distance, found_color, c,
3007 /* Here is alone color cell. Check the distance */
3017 if (distance > newdistance) {
3019 distance = newdistance;
3026 distance =
3028 distance, found_color, c,
3034 distance =
3035 mlib_search_quadrant_S16_3(node->contents.quadrants[i], distance,
3041 return distance;
3046 mlib_u32 distance,
3065 if (distance <= (((c[dir_bit] - position - current_size) * (c[dir_bit] - position - current_size)) >> 2)) { /* Search half of quadrant */
3070 /* Here is alone color cell. Check the distance */
3080 if (distance > newdistance) {
3082 distance = newdistance;
3086 distance =
3088 distance, found_color, c,
3101 /* Here is alone color cell. Check the distance */
3111 if (distance > newdistance) {
3113 distance = newdistance;
3120 distance =
3121 mlib_search_quadrant_S16_3(node->contents.quadrants[i], distance,
3125 distance =
3127 quadrants[i], distance,
3134 return distance;
3139 mlib_u32 distance,
3152 /* Here is alone color cell. Check the distance */
3164 if (distance > newdistance) {
3166 distance = newdistance;
3170 distance =
3171 mlib_search_quadrant_U8_4(node->contents.quadrants[i], distance,
3175 return distance;
3180 mlib_u32 distance,
3200 if (distance < (position + current_size - c[dir_bit]) * (position + current_size - c[dir_bit])) { /* Search half of quadrant */
3205 /* Here is alone color cell. Check the distance */
3217 if (distance > newdistance) {
3219 distance = newdistance;
3223 distance =
3225 distance, found_color, c, base,
3236 /* Here is alone color cell. Check the distance */
3248 if (distance > newdistance) {
3250 distance = newdistance;
3257 distance =
3259 distance, found_color, c,
3265 distance =
3266 mlib_search_quadrant_U8_4(node->contents.quadrants[i], distance,
3272 return distance;
3277 mlib_u32 distance,
3297 if (distance <= (c[dir_bit] - position - current_size) * (c[dir_bit] - position - current_size)) { /* Search half of quadrant */
3302 /* Here is alone color cell. Check the distance */
3314 if (distance > newdistance) {
3316 distance = newdistance;
3320 distance =
3322 distance, found_color, c,
3334 /* Here is alone color cell. Check the distance */
3346 if (distance > newdistance) {
3348 distance = newdistance;
3355 distance =
3356 mlib_search_quadrant_U8_4(node->contents.quadrants[i], distance,
3360 distance =
3362 distance, found_color, c,
3368 return distance;
3373 mlib_u32 distance,
3386 /* Here is alone color cell. Check the distance */
3398 if (distance > newdistance) {
3400 distance = newdistance;
3404 distance =
3405 mlib_search_quadrant_S16_4(node->contents.quadrants[i], distance,
3409 return distance;
3414 mlib_u32 distance,
3434 if (distance < (((position + current_size - c[dir_bit]) * (position + current_size - c[dir_bit])) >> 2)) { /* Search half of quadrant */
3439 /* Here is alone color cell. Check the distance */
3451 if (distance > newdistance) {
3453 distance = newdistance;
3457 distance =
3459 distance, found_color, c,
3470 /* Here is alone color cell. Check the distance */
3482 if (distance > newdistance) {
3484 distance = newdistance;
3491 distance =
3493 distance, found_color, c,
3499 distance =
3500 mlib_search_quadrant_S16_4(node->contents.quadrants[i], distance,
3506 return distance;
3511 mlib_u32 distance,
3531 if (distance <= (((c[dir_bit] - position - current_size) * (c[dir_bit] - position - current_size)) >> 2)) { /* Search half of quadrant */
3536 /* Here is alone color cell. Check the distance */
3548 if (distance > newdistance) {
3550 distance = newdistance;
3554 distance =
3556 distance, found_color, c,
3569 /* Here is alone color cell. Check the distance */
3581 if (distance > newdistance) {
3583 distance = newdistance;
3590 distance =
3591 mlib_search_quadrant_S16_4(node->contents.quadrants[i], distance,
3595 distance =
3597 quadrants[i], distance,
3604 return distance;