virtualSoC  0.6.2
baskett
Vcsos.Komponent.FrameBufferInfo Struct Reference

Public Member Functions

 FrameBufferInfo (int typ)
 
override string ToString ()
 

Public Attributes

int physbase
 
byte BitsPerPixel
 
int Width
 
int Height
 
int Size
 
FrameBufferOrientation Orientation
 

Detailed Description

Constructor & Destructor Documentation

◆ FrameBufferInfo()

Vcsos.Komponent.FrameBufferInfo.FrameBufferInfo ( int  typ)
62  {
63  physbase = 0xB000;
64  Orientation = ( typ % 2 == 0 ) ? FrameBufferOrientation.Landscape :
65  FrameBufferOrientation.Portrait;
66  typ = ( typ % 2 == 0 ) ? typ : typ - 1;
67 
68  switch ((FrameBufferSize)typ) {
69  case FrameBufferSize.VMFB_360x480x32:
70  Width = 360;
71  Height = 480;
72  break;
73  case FrameBufferSize.VMFB_720x240x32:
74  Width = 720;
75  Height = 240;
76  break;
77  case FrameBufferSize.VMFB_800x600x32:
78  Width = 800;
79  Height = 600;
80  break;
81  case FrameBufferSize.VMFB_1280x720x32:
82  Width = 1280;
83  Height = 720;
84  break;
85  case FrameBufferSize.VMFB_720x480x32:
86  Width = 720;
87  Height = 480;
88  break;
89  default:
90  Width = 360;
91  Height = 480;
92  break;
93  }
94  if (Orientation == FrameBufferOrientation.Portrait) {
95  int w = Width;
96  Width = Height;
97  Height = w;
98  }
99  BitsPerPixel = 24;
100  Size = Width * Height * (BitsPerPixel/8);
101  }
byte BitsPerPixel
Definition: Framebuffer.cs:45
int Size
Definition: Framebuffer.cs:47
FrameBufferOrientation Orientation
Definition: Framebuffer.cs:48
int Width
Definition: Framebuffer.cs:46
int physbase
Definition: Framebuffer.cs:44
FrameBufferSize
Definition: Framebuffer.cs:33
FrameBufferOrientation
Definition: Framebuffer.cs:28
int Height
Definition: Framebuffer.cs:46

Member Function Documentation

◆ ToString()

override string Vcsos.Komponent.FrameBufferInfo.ToString ( )
103  {
104  return string.Format ("{0}x{1}-{2} {3} [0x{4:X4}:0x{5:X4}]", Width, Height, BitsPerPixel,
106  }
byte BitsPerPixel
Definition: Framebuffer.cs:45
int Size
Definition: Framebuffer.cs:47
FrameBufferOrientation Orientation
Definition: Framebuffer.cs:48
int Width
Definition: Framebuffer.cs:46
int physbase
Definition: Framebuffer.cs:44
int Height
Definition: Framebuffer.cs:46

Member Data Documentation

◆ BitsPerPixel

byte Vcsos.Komponent.FrameBufferInfo.BitsPerPixel

◆ Height

int Vcsos.Komponent.FrameBufferInfo.Height

◆ Orientation

FrameBufferOrientation Vcsos.Komponent.FrameBufferInfo.Orientation

◆ physbase

int Vcsos.Komponent.FrameBufferInfo.physbase

◆ Size

int Vcsos.Komponent.FrameBufferInfo.Size

◆ Width

int Vcsos.Komponent.FrameBufferInfo.Width

The documentation for this struct was generated from the following file: