See vgui_section_buffer.h for a description of this file. More...
#include "vgui_section_buffer.h"
#include <vcl_cassert.h>
#include <vcl_iostream.h>
#include <vbl/vbl_array_1d.h>
#include <vil1/vil1_image.h>
#include <vil1/vil1_pixel.h>
#include <vil/vil_image_view.h>
#include <vil/vil_image_resource.h>
#include <vil/vil_pixel_format.h>
#include "vgui_macro.h"
#include "vgui_pixel.h"
#include "vgui_section_render.h"
#include "vgui_range_map_params.h"
#include "vgui_range_map.h"
#include "internals/vgui_gl_selection_macros.h"
#include "internals/vgui_accelerate.h"
Go to the source code of this file.
Defines | |
#define | Code(BufferType) result=convert_buffer(in,rmp,(BufferType*)out,hstep); |
#define | Code(BufferType) buffer_=new BufferType[allocw_*alloch_]; |
#define | Code(BufferType) delete[] static_cast<BufferType*>(buffer_); |
#define | DoCase(T) |
#define | DoCase(PixelFormat, DataType, NComp) |
See vgui_section_buffer.h for a description of this file.
Definition in file vgui_section_buffer.cxx.
#define Code | ( | BufferType | ) | result=convert_buffer(in,rmp,(BufferType*)out,hstep); |
#define Code | ( | BufferType | ) | buffer_=new BufferType[allocw_*alloch_]; |
#define Code | ( | BufferType | ) | delete[] static_cast<BufferType*>(buffer_); |
#define DoCase | ( | T | ) |
case T: \ { \ typedef vil_pixel_format_type_of<T>::type Type; \ vil_image_view<Type> img = image_in->get_view( x_, w_, y_, h_ ); \ assert( img ); \ conversion_okay = convert_image(img,rmp,buffer_,allocw_,format_,type_); \ break; \ }
#define DoCase | ( | PixelFormat, | |
DataType, | |||
NComp | |||
) |
case PixelFormat: \ { \ DataType* temp_buffer = new DataType[ w_ * h_ * NComp ]; \ section_ok = image.get_section( temp_buffer, x_, y_, w_, h_ ); \ if ( section_ok ) { \ vil_image_view<DataType> view( temp_buffer, w_, h_, NComp, \ NComp, NComp*w_, 1 ); \ conversion_ok = convert_image(view,rmp,buffer_,allocw_,format_,type_);\ } \ delete[] temp_buffer; \ break; \ }