style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Sat, 16 Jun 2012 09:18:00 +0000 (09:18 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 16 Jun 2012 09:18:00 +0000 (09:18 +0000)
source/blender/blenkernel/intern/tracking.c
source/blender/editors/space_clip/clip_draw.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/makesrna/intern/rna_scene_api.c
source/creator/creator.c

index b32400586a8a719090d755fed08e5c2c1597d421..3992f2be0528d905451e4b46d5967c2cd60b56ae 100644 (file)
@@ -216,7 +216,7 @@ void BKE_tracking_get_camera_object_matrix(Scene *scene, Object *ob, float mat[4
 }
 
 void BKE_tracking_get_projection_matrix(MovieTracking *tracking, MovieTrackingObject *object,
-                                    int framenr, int winx, int winy, float mat[4][4])
+                                        int framenr, int winx, int winy, float mat[4][4])
 {
        MovieReconstructedCamera *camera;
        float lens = tracking->camera.focal * tracking->camera.sensor_width / (float)winx;
@@ -1416,13 +1416,13 @@ void BKE_tracking_distortion_update(MovieDistortion *distortion, MovieTracking *
                distortion->intrinsics = libmv_CameraIntrinsicsNew(camera->focal,
                                                                   camera->principal[0], camera->principal[1] * aspy,
                                                                   camera->k1, camera->k2, camera->k3,
-                                                           calibration_width, calibration_height * aspy);
+                                                                  calibration_width, calibration_height * aspy);
        }
        else {
                libmv_CameraIntrinsicsUpdate(distortion->intrinsics, camera->focal,
                                             camera->principal[0], camera->principal[1] * aspy,
                                             camera->k1, camera->k2, camera->k3,
-                                     calibration_width, calibration_height * aspy);
+                                            calibration_width, calibration_height * aspy);
        }
 #else
        (void) distortion;
@@ -1559,7 +1559,7 @@ ImBuf *BKE_tracking_undistort_frame(MovieTracking *tracking, ImBuf *ibuf, int ca
                camera->intrinsics = BKE_tracking_distortion_new();
 
        return BKE_tracking_distortion_exec(camera->intrinsics, tracking, ibuf, calibration_width,
-                                        calibration_height, overscan, TRUE);
+                                           calibration_height, overscan, TRUE);
 }
 
 ImBuf *BKE_tracking_distort_frame(MovieTracking *tracking, ImBuf *ibuf, int calibration_width,
@@ -1571,7 +1571,7 @@ ImBuf *BKE_tracking_distort_frame(MovieTracking *tracking, ImBuf *ibuf, int cali
                camera->intrinsics = BKE_tracking_distortion_new();
 
        return BKE_tracking_distortion_exec(camera->intrinsics, tracking, ibuf, calibration_width,
-                                        calibration_height, overscan, FALSE);
+                                           calibration_height, overscan, FALSE);
 }
 
 /*********************** Image sampling *************************/
@@ -1579,14 +1579,14 @@ ImBuf *BKE_tracking_distort_frame(MovieTracking *tracking, ImBuf *ibuf, int cali
 static void disable_imbuf_channels(ImBuf *ibuf, MovieTrackingTrack *track, int grayscale)
 {
        BKE_tracking_disable_channels(ibuf, track->flag & TRACK_DISABLE_RED,
-                                           track->flag & TRACK_DISABLE_GREEN,
-                                        track->flag & TRACK_DISABLE_BLUE, grayscale);
+                                     track->flag & TRACK_DISABLE_GREEN,
+                                     track->flag & TRACK_DISABLE_BLUE, grayscale);
 }
 
 ImBuf *BKE_tracking_sample_pattern(int frame_width, int frame_height, ImBuf *search_ibuf,
-                                         MovieTrackingTrack *track, MovieTrackingMarker *marker,
-                                         int use_mask, int num_samples_x, int num_samples_y,
-                                         float pos[2])
+                                   MovieTrackingTrack *track, MovieTrackingMarker *marker,
+                                   int use_mask, int num_samples_x, int num_samples_y,
+                                   float pos[2])
 {
 #ifdef WITH_LIBMV
        ImBuf *pattern_ibuf;
@@ -1662,7 +1662,7 @@ ImBuf *BKE_tracking_get_pattern_imbuf(ImBuf *ibuf, MovieTrackingTrack *track, Mo
        search_ibuf = BKE_tracking_get_search_imbuf(ibuf, track, marker, anchored, disable_channels);
 
        pattern_ibuf = BKE_tracking_sample_pattern(ibuf->x, ibuf->y, search_ibuf, track, marker,
-                                                        FALSE, num_samples_x, num_samples_y, NULL);
+                                                  FALSE, num_samples_x, num_samples_y, NULL);
 
        IMB_freeImBuf(search_ibuf);
 
@@ -1712,7 +1712,7 @@ ImBuf *BKE_tracking_get_search_imbuf(ImBuf *ibuf, MovieTrackingTrack *track, Mov
  * out, do a partial grayscale conversion so the display is better.
  */
 void BKE_tracking_disable_channels(ImBuf *ibuf, int disable_red, int disable_green, int disable_blue,
-                                         int grayscale)
+                                   int grayscale)
 {
        int x, y;
        float scale;
@@ -2471,9 +2471,9 @@ int BKE_tracking_context_step(MovieTrackingContext *context)
                                /* run the tracker! */
                                tracked = libmv_trackRegion(&options,
                                                            track_context->search_area,
-                                                                                       track_context->search_area_width,
-                                                                                       track_context->search_area_height,
-                                                                                       patch_new, width, height,
+                                                           track_context->search_area_width,
+                                                           track_context->search_area_height,
+                                                           patch_new, width, height,
                                                            src_pixel_x, src_pixel_y,
                                                            &result,
                                                            dst_pixel_x, dst_pixel_y);
@@ -2483,7 +2483,7 @@ int BKE_tracking_context_step(MovieTrackingContext *context)
                        #pragma omp critical
                        {
                                tracking_insert_new_marker(context, track, marker, curfra, tracked,
-                                                                frame_width, frame_height, dst_pixel_x, dst_pixel_y);
+                                                          frame_width, frame_height, dst_pixel_x, dst_pixel_y);
                        }
 
                        ok = TRUE;
@@ -3059,7 +3059,7 @@ void BKE_tracking_detect_fast(MovieTracking *tracking, ListBase *tracksbase, ImB
        MEM_freeN(pixels);
 
        detect_retrieve_libmv_features(tracking, tracksbase, features, framenr,
-                               ibuf->x, ibuf->y, layer, place_outside_layer);
+                                      ibuf->x, ibuf->y, layer, place_outside_layer);
 
        libmv_destroyFeatures(features);
 #else
index 8deb83b6f0dba9e9ed198a0f538871dd80458842..1679f784e8ce88dccbc27f9d1dddd1f26014dd73 100644 (file)
@@ -838,15 +838,15 @@ static void draw_marker_slide_zones(SpaceClip *sc, MovieTrackingTrack *track, Mo
                glLineStipple(3, 0xaaaa);
 
                glBegin(GL_LINE_LOOP);
-                       glVertex2f(pat_min[0] - dx, pat_min[1] - dy);
-                       glVertex2f(pat_max[0] + dx, pat_min[1] - dy);
-                       glVertex2f(pat_max[0] + dx, pat_max[1] + dy);
-                       glVertex2f(pat_min[0] - dx, pat_max[1] + dy);
+               glVertex2f(pat_min[0] - dx, pat_min[1] - dy);
+               glVertex2f(pat_max[0] + dx, pat_min[1] - dy);
+               glVertex2f(pat_max[0] + dx, pat_max[1] + dy);
+               glVertex2f(pat_min[0] - dx, pat_max[1] + dy);
                glEnd();
 
                glBegin(GL_LINES);
-                       glVertex2f(0.0f, 0.0f);
-                       glVertex2fv(tilt_ctrl);
+               glVertex2f(0.0f, 0.0f);
+               glVertex2fv(tilt_ctrl);
                glEnd();
 
                glDisable(GL_LINE_STIPPLE);
index fcb4f97bcbefa895c137227cf222eefcc13f68ce..709a73178aaf6104ab62b257e89235c3a8f970f8 100644 (file)
@@ -153,12 +153,14 @@ static void view3d_draw_clipping(RegionView3D *rv3d)
        BoundBox *bb = rv3d->clipbb;
 
        if (bb) {
-               static unsigned int clipping_index[6][4] = {{0, 1, 2, 3},
-                                                           {0, 4, 5, 1},
-                                                           {4, 7, 6, 5},
-                                                           {7, 3, 2, 6},
-                                                           {1, 5, 6, 2},
-                                                           {7, 4, 0, 3}};
+               static unsigned int clipping_index[6][4] = {
+                       {0, 1, 2, 3},
+                       {0, 4, 5, 1},
+                       {4, 7, 6, 5},
+                       {7, 3, 2, 6},
+                       {1, 5, 6, 2},
+                       {7, 4, 0, 3}
+               };
 
                /* fill in zero alpha for rendering & re-projection [#31530] */
                unsigned char col[4];
@@ -2835,7 +2837,7 @@ static int view3d_main_area_draw_engine(const bContext *C, ARegion *ar, int draw
                cliprct.xmax = CLAMPIS(cliprct.xmax, ar->winrct.xmin, ar->winrct.xmax);
                cliprct.ymax = CLAMPIS(cliprct.ymax, ar->winrct.ymin, ar->winrct.ymax);
 
-               if(cliprct.xmax > cliprct.xmin && cliprct.ymax > cliprct.ymin) {
+               if (cliprct.xmax > cliprct.xmin && cliprct.ymax > cliprct.ymin) {
                        glGetIntegerv(GL_SCISSOR_BOX, scissor);
                        glScissor(cliprct.xmin, cliprct.ymin, cliprct.xmax - cliprct.xmin, cliprct.ymax - cliprct.ymin);
                }
index 4e4316b02276a1ba0550954bc149fb140a3156f0..a1199f95c131ba250f7f1bc1db069e0e0ce71dd0 100644 (file)
@@ -92,9 +92,9 @@ static void rna_Scene_collada_export(
     int selected,
     int include_children,
     int include_armatures,
-       int deform_bones_only,
+    int deform_bones_only,
     int use_object_instantiation,
-       int sort_by_name,
+    int sort_by_name,
     int second_life)
 {
        collada_export(scene, filepath, apply_modifiers, selected,  
index 51846c8936e44e3230d3047176a876370c74dda4..8b6d92414c8e3f7b8c144001c2c19ada2acbce80 100644 (file)
@@ -153,8 +153,8 @@ static int print_version(int argc, const char **argv, void *data);
 /* for the callbacks: */
 
 #define BLEND_VERSION_STRING_FMT                                              \
-       "Blender %d.%02d (sub %d)\n",                                             \
-       BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION              \
+    "Blender %d.%02d (sub %d)\n",                                             \
+    BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION          \
 
 /* Initialize callbacks for the modules that need them */
 static void setCallbacks(void);