/[gr2lib]/trunk/gr2lib/core/typedefs/granny_pixel_layouts.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/typedefs/granny_pixel_layouts.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 148 by william, Tue Jul 20 08:11:31 2010 UTC revision 187 by william, Sat Jul 24 04:16:43 2010 UTC
# Line 1  Line 1 
1  ´╗┐using System;  ´╗┐#define HIDE_MISSING_XML_COMMENTS_FOR_TYPEDEFS // when defined will disable warnings about missing XML comments for all typedefs (CS1591)
2    using System;
3  using System.Collections.Generic;  using System.Collections.Generic;
4  using System.Linq;  using System.Linq;
5  using System.Text;  using System.Text;
# Line 8  using System.Runtime.InteropServices; Line 9  using System.Runtime.InteropServices;
9  namespace gr2lib.core.typedefs  namespace gr2lib.core.typedefs
10  {  {
11    
12    #if HIDE_MISSING_XML_COMMENTS_FOR_TYPEDEFS
13    #pragma warning disable 1591
14    #endif
15    
16        #region public enum granny_pixel_layout
17      public enum granny_pixel_layout      public enum granny_pixel_layout
18      {      {
19          GrannyRGB555PixelFormat,          GrannyRGB555PixelFormat,
# Line 22  namespace gr2lib.core.typedefs Line 28  namespace gr2lib.core.typedefs
28          GrannyBGRA5551PixelFormat,          GrannyBGRA5551PixelFormat,
29          GrannyBGRA4444PixelFormat,          GrannyBGRA4444PixelFormat,
30          GrannyBGR888PixelFormat,          GrannyBGR888PixelFormat,
31          GrannyBGRA8888PixelFormat          GrannyBGRA8888PixelFormat,
32            GrannyABGR8888PixelFormat
33      }      }
34        #endregion
35    
36        #region public struct granny_pixel_layouts
37      public struct granny_pixel_layouts      public struct granny_pixel_layouts
38      {      {
39            #region GetPixelLayoutFromEnum(granny_pixel_layout layout_type)
40          public static Layout GetPixelLayoutFromEnum(granny_pixel_layout layout_type)          public static Layout GetPixelLayoutFromEnum(granny_pixel_layout layout_type)
41          {          {
42              switch (layout_type)              switch (layout_type)
# Line 48  namespace gr2lib.core.typedefs Line 57  namespace gr2lib.core.typedefs
57                  default: return granny_pixel_layouts.GrannyDefaultPixelLayout;                  default: return granny_pixel_layouts.GrannyDefaultPixelLayout;
58              }              }
59          }          }
60            #endregion
   
61          #region Pixel Layout: GrannyDefaultPixelLayout          #region Pixel Layout: GrannyDefaultPixelLayout
62          /// <summary>          /// <summary>
63          /// default pixel layout (GrannyRGBA8888PixelFormat)          /// default pixel layout (GrannyRGBA8888PixelFormat)
64          /// </summary>          /// </summary>
65          public static Layout GrannyDefaultPixelLayout          public static Layout GrannyDefaultPixelLayout
66          {          {
67                #region Get GrannyDefaultPixelLayout
68              get              get
69              {              {
70                  return GetPixelLayoutFromEnum(granny_pixel_layout.GrannyRGBA8888PixelFormat);                  return GetPixelLayoutFromEnum(granny_pixel_layout.GrannyRGBA8888PixelFormat);
71              }              }
72                #endregion
73          }          }
74          #endregion          #endregion
   
75          #region Pixel Layout: GrannyRGB555PixelFormat          #region Pixel Layout: GrannyRGB555PixelFormat
76          /// <summary>          /// <summary>
77          /// 16bpp  5-bit red, 5-bit green, 5-bit blue          /// 16bpp  5-bit red, 5-bit green, 5-bit blue
# Line 78  namespace gr2lib.core.typedefs Line 87  namespace gr2lib.core.typedefs
87                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB555PixelFormat");                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB555PixelFormat");
88                      if (addr != IntPtr.Zero)                      if (addr != IntPtr.Zero)
89                      {                      {
90                            gr2lib.core.coretypes.native.Layout _native_ptr;
91                          gr2lib.core.coretypes.native.Layout _native;                          gr2lib.core.coretypes.native.Layout _native;
92                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
93                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
94                          _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
95                          for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }                          _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
96                          for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
97                          _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
98                            _tmp_layout.BitsForComponent = _native.BitsForComponent;
99                          return _tmp_layout;                          return _tmp_layout;
100                      }                      }
101                      else                      else
# Line 100  namespace gr2lib.core.typedefs Line 111  namespace gr2lib.core.typedefs
111              #endregion              #endregion
112          }          }
113          #endregion          #endregion
   
   
114          #region Pixel Layout: GrannyRGB565PixelFormat          #region Pixel Layout: GrannyRGB565PixelFormat
115          /// <summary>          /// <summary>
116          /// 16bpp  5-bit red, 6-bit green, 5-bit blue          /// 16bpp  5-bit red, 6-bit green, 5-bit blue
# Line 117  namespace gr2lib.core.typedefs Line 126  namespace gr2lib.core.typedefs
126                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB565PixelFormat");                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB565PixelFormat");
127                      if (addr != IntPtr.Zero)                      if (addr != IntPtr.Zero)
128                      {                      {
129                            gr2lib.core.coretypes.native.Layout _native_ptr;
130                          gr2lib.core.coretypes.native.Layout _native;                          gr2lib.core.coretypes.native.Layout _native;
131                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
132                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
133                          _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
134                          for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }                          _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
135                          for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
136                          _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
137                            _tmp_layout.BitsForComponent = _native.BitsForComponent;
138                          return _tmp_layout;                          return _tmp_layout;
139                      }                      }
140                      else                      else
# Line 139  namespace gr2lib.core.typedefs Line 150  namespace gr2lib.core.typedefs
150              #endregion              #endregion
151          }          }
152          #endregion          #endregion
   
153          #region Pixel Layout: GrannyRGBA5551PixelFormat          #region Pixel Layout: GrannyRGBA5551PixelFormat
154          /// <summary>          /// <summary>
155          /// 16bpp  5-bit red, 5-bit green, 5-bit blue, 1-bit alpha          /// 16bpp  5-bit red, 5-bit green, 5-bit blue, 1-bit alpha
# Line 155  namespace gr2lib.core.typedefs Line 165  namespace gr2lib.core.typedefs
165                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA5551PixelFormat");                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA5551PixelFormat");
166                      if (addr != IntPtr.Zero)                      if (addr != IntPtr.Zero)
167                      {                      {
168                            gr2lib.core.coretypes.native.Layout _native_ptr;
169                          gr2lib.core.coretypes.native.Layout _native;                          gr2lib.core.coretypes.native.Layout _native;
170                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
171                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
172                          _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
173                          for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }                          _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
174                          for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
175                          _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
176                            _tmp_layout.BitsForComponent = _native.BitsForComponent;
177                          return _tmp_layout;                          return _tmp_layout;
178                      }                      }
179                      else                      else
# Line 192  namespace gr2lib.core.typedefs Line 204  namespace gr2lib.core.typedefs
204                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA4444PixelFormat");                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA4444PixelFormat");
205                      if (addr != IntPtr.Zero)                      if (addr != IntPtr.Zero)
206                      {                      {
207                            gr2lib.core.coretypes.native.Layout _native_ptr;
208                          gr2lib.core.coretypes.native.Layout _native;                          gr2lib.core.coretypes.native.Layout _native;
209                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
210                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
211                          _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
212                          for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }                          _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
213                          for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
214                          _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
215                            _tmp_layout.BitsForComponent = _native.BitsForComponent;
216                          return _tmp_layout;                          return _tmp_layout;
217                      }                      }
218                      else                      else
# Line 229  namespace gr2lib.core.typedefs Line 243  namespace gr2lib.core.typedefs
243                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB888PixelFormat");                      IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB888PixelFormat");
244                      if (addr != IntPtr.Zero)                      if (addr != IntPtr.Zero)
245                      {                      {
246                            gr2lib.core.coretypes.native.Layout _native_ptr;
247                          gr2lib.core.coretypes.native.Layout _native;                          gr2lib.core.coretypes.native.Layout _native;
248                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
249                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
250                          _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
251                          for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }                          _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
252                          for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
253                          _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
254                            _tmp_layout.BitsForComponent = _native.BitsForComponent;
255                          return _tmp_layout;                          return _tmp_layout;
256                      }                      }
257                      else                      else
# Line 271  namespace gr2lib.core.typedefs Line 287  namespace gr2lib.core.typedefs
287                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
288                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
289                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
290                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
291                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
292                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
293                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 309  namespace gr2lib.core.typedefs Line 326  namespace gr2lib.core.typedefs
326                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
327                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
328                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
329                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
330                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
331                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
332                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 327  namespace gr2lib.core.typedefs Line 345  namespace gr2lib.core.typedefs
345              #endregion              #endregion
346          }          }
347          #endregion          #endregion
348    
349            #region Pixel Layout: GrannyABGR8888PixelFormat
350            /// <summary>
351            /// 32bpp  8-bit red, 8-bit green, 8-bit blue, 8-bit alpha
352            /// </summary>
353            public static Layout GrannyABGR8888PixelFormat
354            {
355                #region Get GrannyABGR8888PixelFormat Layout
356                get
357                {
358                    Layout _tmp_layout = granny_pixel_layouts.GrannyARGB8888PixelFormat;
359    
360                    unsafe
361                    {
362                        IntPtr layoutPTR = (IntPtr)_tmp_layout.BytesPerPixel;
363                        _tmp_layout.NativePointer = layoutPTR;
364                    }            
365    
366                    int R = _tmp_layout.ShiftForComponent[1];
367                    int B = _tmp_layout.ShiftForComponent[3];
368    
369                    // swap R & B
370                    _tmp_layout.ShiftForComponent[1] = B;
371                    _tmp_layout.ShiftForComponent[3] = R;
372                    return _tmp_layout;
373                }
374                #endregion
375            }
376            #endregion
377    
378          #region Pixel Layout: GrannyBGR555PixelFormat          #region Pixel Layout: GrannyBGR555PixelFormat
379          /// <summary>          /// <summary>
380          /// 16bpp  5-bit blue, 5-bit green, 5-bit red          /// 16bpp  5-bit blue, 5-bit green, 5-bit red
# Line 347  namespace gr2lib.core.typedefs Line 395  namespace gr2lib.core.typedefs
395                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
396                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
397                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
398                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
399                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
400                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
401                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 385  namespace gr2lib.core.typedefs Line 434  namespace gr2lib.core.typedefs
434                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
435                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
436                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
437                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
438                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
439                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
440                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 423  namespace gr2lib.core.typedefs Line 473  namespace gr2lib.core.typedefs
473                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
474                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
475                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
476                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
477                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
478                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
479                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 461  namespace gr2lib.core.typedefs Line 512  namespace gr2lib.core.typedefs
512                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
513                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
514                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
515                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
516                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
517                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
518                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 499  namespace gr2lib.core.typedefs Line 551  namespace gr2lib.core.typedefs
551                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
552                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
553                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
554                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
555                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
556                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
557                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 537  namespace gr2lib.core.typedefs Line 590  namespace gr2lib.core.typedefs
590                          Layout _tmp_layout = new Layout();                          Layout _tmp_layout = new Layout();
591                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));                          _native_ptr = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
592                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));                          _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure((IntPtr)_native_ptr.BytesPerPixel, typeof(gr2lib.core.coretypes.native.Layout));
593                            _tmp_layout.NativePointer = (IntPtr)_native_ptr.BytesPerPixel;
594                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;                          _tmp_layout.BytesPerPixel = _native.BytesPerPixel;
595                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;                          _tmp_layout.ShiftForComponent = _native.ShiftForComponent;
596                          _tmp_layout.BitsForComponent = _native.BitsForComponent;                          _tmp_layout.BitsForComponent = _native.BitsForComponent;
# Line 556  namespace gr2lib.core.typedefs Line 610  namespace gr2lib.core.typedefs
610          }          }
611          #endregion          #endregion
612      }      }
613        #endregion
614    
615    #if HIDE_MISSING_XML_COMMENTS_FOR_TYPEDEFS
616    #pragma warning restore 1591
617    #endif
618  }  }

Legend:
Removed from v.148  
changed lines
  Added in v.187

  ViewVC Help
Powered by ViewVC 1.1.22