tahoma2d/toonz/sources/tnzbase/tscanner/tscannerutil.h

35 lines
1.3 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#include <traster.h>
2016-06-15 18:43:10 +12:00
namespace TScannerUtil {
2016-03-19 06:57:51 +13:00
/* copia un rettangolo da rin a rout,
* specchiandolo orizzontalmente se mirror e' dispari,
* e poi ruotandolo del multiplo di novanta gradi specificato
* da ninety in senso antiorario
*
*/
2016-06-15 18:43:10 +12:00
void copyRGBBufferToTRaster32(unsigned char *rgbBuffer, int rgbLx, int rgbLy,
const TRaster32P &rout, bool internal);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void copyRGBBufferToTRasterGR8(unsigned char *rgbBuffer, int rgbLx, int rgbLy,
int rgbWrap, const TRasterGR8P &rout);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void copyGR8BufferToTRasterGR8(unsigned char *gr8Buffer, int rgbLx, int rgbLy,
const TRasterGR8P &rout, bool internal);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void copyGR8BufferToTRasterBW(unsigned char *gr8Buffer, int rgbLx, int rgbLy,
const TRasterGR8P &rout, bool internal,
float thres);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void copyBWBufferToTRasterGR8(const unsigned char *buffer, int rgbLx, int rgbLy,
const TRasterGR8P &rout, bool isBW,
bool internal);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void copy90BWBufferToRasGR8(unsigned char *bwBuffer, int bwLx, int bwLy,
int bwWrap, bool isBW, TRasterGR8P &rout,
int mirror, int ninety);
2016-03-19 06:57:51 +13:00
};