OSDN Git Service

[backup]NyARToolkit
[nyartoolkit-and/nyartoolkit-and.git] / src / jp / nyatla / nyartoolkit / core / rasterfilter / NyARRasterFilter_SimpleSmooth.java
index 39be984..c30646f 100644 (file)
@@ -26,7 +26,6 @@ package jp.nyatla.nyartoolkit.core.rasterfilter;
 \r
 import jp.nyatla.nyartoolkit.NyARException;\r
 import jp.nyatla.nyartoolkit.core.raster.INyARRaster;\r
-import jp.nyatla.nyartoolkit.core.rasterreader.INyARBufferReader;\r
 import jp.nyatla.nyartoolkit.core.types.NyARIntSize;\r
 \r
 \r
@@ -41,7 +40,7 @@ public class NyARRasterFilter_SimpleSmooth implements INyARRasterFilter
        public NyARRasterFilter_SimpleSmooth(int i_raster_type) throws NyARException\r
        {\r
                switch (i_raster_type) {\r
-               case INyARBufferReader.BUFFERFORMAT_INT1D_GRAY_8:\r
+               case INyARRaster.BUFFERFORMAT_INT1D_GRAY_8:\r
                        this._do_filter_impl=new IdoFilterImpl_GRAY_8();\r
                        break;\r
                default:\r
@@ -51,19 +50,19 @@ public class NyARRasterFilter_SimpleSmooth implements INyARRasterFilter
        public void doFilter(INyARRaster i_input, INyARRaster i_output) throws NyARException\r
        {\r
                assert (i_input!=i_output);\r
-               this._do_filter_impl.doFilter(i_input.getBufferReader(),i_output.getBufferReader(),i_input.getSize());\r
+               this._do_filter_impl.doFilter(i_input,i_output,i_input.getSize());\r
        }\r
        \r
        interface IdoFilterImpl\r
        {\r
-               public void doFilter(INyARBufferReader i_input, INyARBufferReader i_output,NyARIntSize i_size) throws NyARException;\r
+               public void doFilter(INyARRaster i_input, INyARRaster i_output,NyARIntSize i_size) throws NyARException;\r
        }\r
        class IdoFilterImpl_GRAY_8 implements IdoFilterImpl\r
        {\r
-               public void doFilter(INyARBufferReader i_input, INyARBufferReader i_output,NyARIntSize i_size) throws NyARException\r
+               public void doFilter(INyARRaster i_input, INyARRaster i_output,NyARIntSize i_size) throws NyARException\r
                {\r
-                       assert (i_input.isEqualBufferType(INyARBufferReader.BUFFERFORMAT_INT1D_GRAY_8));\r
-                       assert (i_output.isEqualBufferType(INyARBufferReader.BUFFERFORMAT_INT1D_GRAY_8));\r
+                       assert (i_input.isEqualBufferType(INyARRaster.BUFFERFORMAT_INT1D_GRAY_8));\r
+                       assert (i_output.isEqualBufferType(INyARRaster.BUFFERFORMAT_INT1D_GRAY_8));\r
                        int[] in_ptr =(int[])i_input.getBuffer();\r
                        int[] out_ptr=(int[])i_output.getBuffer();\r
                        /* 画像端は捨てる。\r