Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/hdr/hdrwriter.cpp

    r12912 r13041  
    1 /*  
     1/* 
    22 The following code was based on code from the following location: 
    33    http://www.graphics.cornell.edu/online/formats/rgbe/ 
     
    99    pixels consisting of floats.  The data is assumed to be an array of floats. 
    1010    By default there are three floats per pixel in the order red, green, blue. 
    11     (RGBE_DATA_??? values control this.)  Only the mimimal header reading and  
     11    (RGBE_DATA_??? values control this.)  Only the mimimal header reading and 
    1212    writing is implemented.  Each routine does error checking and will return 
    1313    a status value as defined below.  This code is intended as a skeleton so 
     
    2323    For the moment, we don't output most of the header fields 
    2424 
    25   
     25 
    2626*/ 
    2727 
     
    143143            old_run_count = run_count; 
    144144            run_count = 1; 
    145             while((data[beg_run] == data[beg_run + run_count])  
     145            while((data[beg_run] == data[beg_run + run_count]) 
    146146                && (beg_run + run_count < numbytes) 
    147147                && (run_count < 127)) 
     
    198198 
    199199    buffer = (unsigned char *)malloc(sizeof(unsigned char)*4*scanline_width); 
    200     if (buffer == NULL)  
     200    if (buffer == NULL) 
    201201        // no buffer space so write flat 
    202202        return writeNoRLE(fout,img); 
     
    205205    { 
    206206        float* data = (float*) img->data(0, row); 
    207          
     207 
    208208        rgbe[0] = 2; 
    209209        rgbe[1] = 2;