Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

rend_f.c

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------- 00002 @COPYRIGHT : 00003 Copyright 1993,1994,1995 David MacDonald, 00004 McConnell Brain Imaging Centre, 00005 Montreal Neurological Institute, McGill University. 00006 Permission to use, copy, modify, and distribute this 00007 software and its documentation for any purpose and without 00008 fee is hereby granted, provided that the above copyright 00009 notice appear in all copies. The author and McGill University 00010 make no representations about the suitability of this 00011 software for any purpose. It is provided "as is" without 00012 express or implied warranty. 00013 ---------------------------------------------------------------------------- */ 00014 00015 #include <volume_io/internal_volume_io.h> 00016 #include <bicpl/vols.h> 00017 00018 #ifndef lint 00019 static char rcsid[] = "$Header: /software/source//libraries/bicpl/Volumes/rend_f.c,v 1.7 2000/02/06 15:30:56 stever Exp $"; 00020 #endif 00021 00022 #include "render_funcs_include.c" 00023 00024 /* ----------------------------- MNI Header ----------------------------------- 00025 @NAME : render_one_row 00026 @INPUT : 00027 @OUTPUT : 00028 @RETURNS : 00029 @DESCRIPTION: Renders a row of a slice, by including the generated source 00030 files which handle each of the cases separately, for speed. 00031 @METHOD : 00032 @GLOBALS : 00033 @CALLS : 00034 @CREATED : 1993 David MacDonald 00035 @MODIFIED : 00036 ---------------------------------------------------------------------------- */ 00037 00038 public void render_one_row ( 00039 void *volume_data1, 00040 Data_types volume1_type, 00041 int y, 00042 int start_x, 00043 int end_x, 00044 int **y_offsets1, 00045 int **row_offsets1, 00046 void **start_slices1, 00047 int n_slices1, 00048 Real weights1[], 00049 void *volume_data2, 00050 Data_types volume2_type, 00051 int **y_offsets2, 00052 int **row_offsets2, 00053 void **start_slices2, 00054 int n_slices2, 00055 Real weights2[], 00056 unsigned short **cmode_colour_map, 00057 Colour **rgb_colour_map, 00058 pixels_struct *pixels ) 00059 { 00060 int x_size; 00061 Colour *rgb_pixel_ptr; 00062 unsigned short *cmap_pixel_ptr; 00063 00064 x_size = pixels->x_size; 00065 00066 if( pixels->pixel_type == RGB_PIXEL ) 00067 rgb_pixel_ptr = &pixels->data.pixels_rgb[IJ(y,start_x,x_size)]; 00068 else 00069 cmap_pixel_ptr = &pixels->data.pixels_16bit_colour_index 00070 [IJ(y,start_x,x_size)]; 00071 00072 #include "call_rend_f_include.c" 00073 }

Generated on Wed Jul 28 09:10:58 2004 for BICPL by doxygen 1.3.7