private IdoFilterImpl _dofilterimpl;\r
public NyARRasterFilter_Rgb2Gs_RgbCube(int i_in_raster_type) throws NyARException\r
{\r
- if(!initInstance(i_in_raster_type,INyARRaster.BUFFERFORMAT_INT1D_GRAY_8))\r
+ if(!initInstance(i_in_raster_type,NyARBufferType.INT1D_GRAY_8))\r
{\r
throw new NyARException();\r
}\r
protected boolean initInstance(int i_in_raster_type,int i_out_raster_type)\r
{\r
switch(i_out_raster_type){\r
- case INyARRaster.BUFFERFORMAT_INT1D_GRAY_8:\r
+ case NyARBufferType.INT1D_GRAY_8:\r
switch (i_in_raster_type) {\r
- case INyARRaster.BUFFERFORMAT_BYTE1D_B8G8R8_24:\r
- case INyARRaster.BUFFERFORMAT_BYTE1D_R8G8B8_24:\r
+ case NyARBufferType.BYTE1D_B8G8R8_24:\r
+ case NyARBufferType.BYTE1D_R8G8B8_24:\r
this._dofilterimpl=new IdoFilterImpl_BYTE1D_B8G8R8_24();\r
break;\r
default:\r
*/\r
public void doFilter(INyARRaster i_input, INyARRaster i_output,NyARIntSize i_size) throws NyARException\r
{\r
- assert( i_input.isEqualBufferType(INyARRaster.BUFFERFORMAT_BYTE1D_B8G8R8_24)\r
- || i_input.isEqualBufferType(INyARRaster.BUFFERFORMAT_BYTE1D_R8G8B8_24));\r
- assert(i_output.isEqualBufferType(INyARRaster.BUFFERFORMAT_INT1D_GRAY_8));\r
+ assert( i_input.isEqualBufferType(NyARBufferType.BYTE1D_B8G8R8_24)\r
+ || i_input.isEqualBufferType(NyARBufferType.BYTE1D_R8G8B8_24));\r
+ assert(i_output.isEqualBufferType(NyARBufferType.INT1D_GRAY_8));\r
\r
int[] out_buf = (int[]) i_output.getBuffer();\r
byte[] in_buf = (byte[]) i_input.getBuffer();\r