/ *   
 
   *   P R O J E C T :   N y A R T o o l k i t C S 
 
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   *   T h i s   w o r k   i s   b a s e d   o n   t h e   o r i g i n a l   A R T o o l K i t   d e v e l o p e d   b y 
 
   *       H i r o k a z u   K a t o 
 
   *       M a r k   B i l l i n g h u r s t 
 
   *       H I T L a b ,   U n i v e r s i t y   o f   W a s h i n g t o n ,   S e a t t l e 
 
   *   h t t p : / / w w w . h i t l . w a s h i n g t o n . e d u / a r t o o l k i t / 
 
   * 
 
   *   T h e   N y A R T o o l k i t C S   i s   J a v a   e d i t i o n   A R T o o l K i t   c l a s s   l i b r a r y . 
 
   *   C o p y r i g h t   ( C ) 2 0 0 8 - 2 0 1 0   R y o   I i z u k a 
 
   * 
 
   *   T h i s   p r o g r a m   i s   f r e e   s o f t w a r e :   y o u   c a n   r e d i s t r i b u t e   i t   a n d / o r   m o d i f y 
 
   *   i t   u n d e r   t h e   t e r m s   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e   a s   p u b l i s h e d   b y 
 
   *   t h e   F r e e   S o f t w a r e   F o u n d a t i o n ,   e i t h e r   v e r s i o n   3   o f   t h e   L i c e n s e ,   o r 
 
   *   ( a t   y o u r   o p t i o n )   a n y   l a t e r   v e r s i o n . 
 
   *   
 
   *   T h i s   p r o g r a m   i s   d i s t r i b u t e d   i n   t h e   h o p e   t h a t   i t   w i l l   b e   u s e f u l , 
 
   *   b u t   W I T H O U T   A N Y   W A R R A N T Y ;   w i t h o u t   e v e n   t h e   i m p l i e d   w a r r a n t y   o f 
 
   *   M E R C H A N T A B I L I T Y   o r   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E .     S e e   t h e 
 
   *   G N U   G e n e r a l   P u b l i c   L i c e n s e   f o r   m o r e   d e t a i l s . 
 
   * 
 
   *   Y o u   s h o u l d   h a v e   r e c e i v e d   a   c o p y   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e 
 
   *   a l o n g   w i t h   t h i s   p r o g r a m .     I f   n o t ,   s e e   < h t t p : / / w w w . g n u . o r g / l i c e n s e s / > . 
 
   *   
 
   *   F o r   f u r t h e r   i n f o r m a t i o n   p l e a s e   c o n t a c t . 
 
   * 	 h t t p : / / n y a t l a . j p / n y a t o o l k i t / 
 
   * 	 < a i r m a i l ( a t ) e b o n y . p l a l a . o r . j p >   o r   < n y a t l a ( a t ) n y a t l a . j p > 
 
   *   
 
   * / 
 
 n a m e s p a c e   j p . n y a t l a . n y a r t o o l k i t . c s . c o r e 
 
 { 
 
 
 
 
 
         / * * 
 
           *   S0n0000o000000n0b__0hY0[pe0[W0~0Y00
 
           *   [peo00;Nk0{ @ l i n k   I N y A R R a s t e r } g0O(uY00;u }b__h0W0f0OD0~0Y00
 
           *   0000b__[peo03 2 b i t n0$Pg0000000n0D}T[0g0[W0f0D0~0Y00
 
           *   000o00[peK000000n0i 0w0S0h0L0g0M0~0Y00
 
           *   < p r e > 
 
           *   < t a b l e > 
 
           *   < t r > < t d > 0000000( 000E^) < / t d > < t d > 0000< / t d > < t d > P< / t d > < / t r > 
 
           *   < t r > < t d > 2 4 - 3 1 ( 8 ) < / t d > < t d > N}< / t d > < t d > < / t d > < / t r > 
 
           *   < t r > < t d > 1 6 - 2 7 ( 8 ) < / t d > < t d > WI D < / t d > < t d > 0 0 : !qR/ 0 1 : b y t e [ ] / 0 2 : i n t [ ] [ ] / 0 3 : s h o r t [ ] < / t d > < / t r > 
 
           *   < t r > < t d > 0 8 - 1 5 ( 8 ) < / t d > < t d > 000000000I D < / t d > < t d > 0 0 : 2 4 b i t / 0 1 : 3 2 b i t / 0 2 : 1 6 b i t < / t d > < / t r > 
 
           *   < t r > < t d > 0 0 - 0 7 ( 8 ) < / t d > < t d > WjuS< / t d > < t d > < / t d > < / t r > 
 
           *   < / t a b l e > 
 
           *   < / p r e > 
 
           * / 
 
         p u b l i c   c l a s s   N y A R B u f f e r T y p e 
 
         { 
 
                 p r i v a t e   c o n s t   i n t   T _ B Y T E 1 D   =   0 x 0 0 0 1 0 0 0 0 ; 
 
                 p r i v a t e   c o n s t   i n t   T _ I N T 2 D   =   0 x 0 0 0 2 0 0 0 0 ; 
 
                 p r i v a t e   c o n s t   i n t   T _ S H O R T 1 D   =   0 x 0 0 0 3 0 0 0 0 ; 
 
                 p r i v a t e   c o n s t   i n t   T _ I N T 1 D   =   0 x 0 0 0 4 0 0 0 0 ; 
 
                 p r i v a t e   c o n s t   i n t   T _ O B J E C T   =   0 x 0 0 1 0 0 0 0 0 ; 
 
                 p r i v a t e   c o n s t   i n t   T _ U S E R   =   0 x 0 0 F F 0 0 0 0 ; 
 
                 / / 
 
 
 
                 / / 
 
                 / / yrkj0[pe
 
                 / / 
 
 
 
                 / * *  0hQf0n0;u }L00 00000000000o08^k0N U L L 0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   N U L L _ A L L Z E R O   =   0 x 0 0 0 0 0 0 0 1 ; 
 
 
 
                 / * *   000[n00000W0U S E R _ D E F I N E   +   ( 0 x 0 0 0 0 ~ 0 x F F F F ) 
 
                   *   [I{k0Oc0f0O0`0U0D00
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   U S E R _ D E F I N E   =   T _ U S E R ; 
 
 
 
                 / / 
 
                 / / b y t e b__
 
                 / / 
 
 
 
                 / * *   R G B b__0b y t e [ 3 ] g00R 8 G 8 B 8 n02 4 000g0;u }L0<h
}U00f0D000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ R 8 G 8 B 8 _ 2 4   =   T _ B Y T E 1 D   |   0 x 0 0 0 1 ; 
 
                 / * *   R G B b__0  b y t e [ 3 ] g00B 8 G 8 R 8 n02 4 000n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ B 8 G 8 R 8 _ 2 4   =   T _ B Y T E 1 D   |   0 x 0 0 0 2 ; 
 
                 / * *   R G B b__0b y t e [ 4 ] g00R 8 G 8 B 8 X 8 n03 2 000n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ B 8 G 8 R 8 X 8 _ 3 2   =   T _ B Y T E 1 D   |   0 x 0 1 0 1 ; 
 
                 / * *   R G B b__0b y t e [ 4 ] g00X 8 R 8 G 8 B 8 n03 2 000n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ X 8 R 8 G 8 B 8 _ 3 2   =   T _ B Y T E 1 D   |   0 x 0 1 0 2 ; 
 
 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ X 8 B 8 G 8 R 8 _ 3 2   =   T _ B Y T E 1 D | 0 x 0 1 0 3 ; 
 
 
 
                 / * *  0R G B b__0b y t e [ 2 ] g00R G B 5 6 5 n01 6 000( l i t t l e   e n d i a n ) n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ R 5 G 6 B 5 _ 1 6 L E   =   T _ B Y T E 1 D   |   0 x 0 2 0 1 ; 
 
                 / * *  0R G B b__0b y t e [ 2 ] g00R G B 5 6 5 n01 6 000( b i g   e n d i a n ) n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ R 5 G 6 B 5 _ 1 6 B E   =   T _ B Y T E 1 D   |   0 x 0 2 0 2 ; 
 
 
 
                 / * *  0b y t e [ ] n0Y U V 4 2 0 b__
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   B Y T E 1 D _ Y U V 4 2 0 S P   =   T _ B Y T E 1 D   |   0 x 0 3 0 1 ; 
 
 
 
                 / * *  0R G B b__0s h o r t [ 1 ] g00R G B 5 6 5 n01 6 000( l i t t l e   e n d i a n ) n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   W O R D 1 D _ R 5 G 6 B 5 _ 1 6 L E   =   T _ S H O R T 1 D   |   0 x 0 2 0 1 ; 
 
                 / * *  0R G B b__0s h o r t [ 1 ] g00R G B 5 6 5 n01 6 000( b i g   e n d i a n ) n0;u }b__0
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   W O R D 1 D _ R 5 G 6 B 5 _ 1 6 B E   =   T _ S H O R T 1 D   |   0 x 0 2 0 2 ; 
 
 
 
                 / / 
 
                 / / i n t [ ] [ ] b__
 
                 / / 
 
 
 
                 / * *  0i n t $Pb__0i n t [ 1 ] [ 1 ] g001 p i x e l = 1 ;u }n00000000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 2 D   =   T _ I N T 2 D   |   0 x 0 0 0 0 ; 
 
                 / * *   0000000b__0i n t [ 1 ] [ 1 ] g08 i t n0( 0 - 2 5 5 ) n00000000;uP
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 2 D _ G R A Y _ 8   =   T _ I N T 2 D   |   0 x 0 0 0 1 ; 
 
                 / * *   N$Pb__0i n t [ 1 ] [ 1 ] g000   o r   1 n02 $P;uP
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 2 D _ B I N _ 8   =   T _ I N T 2 D   |   0 x 0 0 0 2 ; 
 
 
 
                 / / 
 
                 / / i n t [ ] b__
 
                 / / 
 
 
 
                 / * *   i n t $Pb__0i n t [ 1 ] g001 p i x e l = 1 ;u }n00000000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 1 D   =   T _ I N T 1 D   |   0 x 0 0 0 0 ; 
 
                 / * *   0000000b__0i n t [ 1 ] g08 i t n0( 0 - 2 5 5 ) n00000000;uP
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 1 D _ G R A Y _ 8   =   T _ I N T 1 D   |   0 x 0 0 0 1 ; 
 
                 / * *   N$Pb__0i n t [ 1 ] g000   o r   1 n02 $P;uP
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 1 D _ B I N _ 8   =   T _ I N T 1 D   |   0 x 0 0 0 2 ; 
 
 
 
                 / * *  0R G B b__0i n t [ 1 ] g00X R G B 3 2 n03 2 000n0;u }b__0
 
                   *     ( 000000o000000000OX[0) 
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 1 D _ X 8 R 8 G 8 B 8 _ 3 2   =   T _ I N T 1 D   |   0 x 0 1 0 2 ; 
 
 
 
                 / * *   H S V b__0i n t [ 1 ] g00H : 9 b i t ( 0 - 3 5 9 ) , S : 8 b i t ( 0 - 2 5 5 ) , V ( 0 - 2 5 5 ) n0;u }b__
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   I N T 1 D _ X 7 H 9 S 8 V 8 _ 3 2   =   T _ I N T 1 D   |   0 x 0 1 0 3 ; 
 
 
 
                 / / 
 
                 / / 00000000V	gb__
 
                 / / 
 
 
 
                 / * *   J a v a 00000000V	g000000n00000g0Y00* / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ J a v a   =   T _ O B J E C T   |   0 x 0 1 0 0 ; 
 
                 / * *   C # 00000000V	g000000n00000g0Y00* / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ C S   =   T _ O B J E C T   |   0 x 0 2 0 0 ; 
 
                 / * *   A S 3 00000000V	g000000n00000g0Y00* / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ A S 3   =   T _ O B J E C T   |   0 x 0 3 0 0 ; 
 
 
 
                 / * * 
 
                   *   R G B b__00000o00C # n0B i t m a p W000000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ C S _ B i t m a p   =   O B J E C T _ C S   |   0 x 0 1 ; 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ C S _ U n i t y   =   O B J E C T _ C S   |   0 x 1 1 ; 
 
                 / * * 
 
                   *   R G B b__00000o00J a v a n0B u f f e r e d I m a g e W000000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ J a v a _ B u f f e r e d I m a g e   =   O B J E C T _ J a v a   |   0 x 0 1 ; 
 
                 / * * 
 
                   *   A n d r o i d n0B i t m a p W000000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ A n d _ B i t m a p =   O B J E C T _ J a v a | 0 x 1 1 ; 
 
 
 
 
 
                 / * * 
 
                   *   R G B b__00000o00A c t i o n S c r i p t 3 n0B i t m a p D a t a W000000
 
                   * / 
 
                 p u b l i c   c o n s t   i n t   O B J E C T _ A S 3 _ B i t m a p D a t a   =   O B J E C T _ A S 3   |   0 x 0 1 ; 
 
 
 
         } 
 
 } 