00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
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 }