Using HiColor graphics

Slides:



Advertisements
Similar presentations
Lecture 2 Concepts, Terms and Definitions. Display Devices They are divided into a lot of small squares called pixels (“PICture ELements”). Each pixel.
Advertisements

1 RTL Example: Video Compression – Sum of Absolute Differences Video is a series of frames (e.g., 30 per second) Most frames similar to previous frame.
VGA Text Mode An introduction to font selection and to reprogramming of the Character Generator ram.
Introduction to Computers Section 10A. home Presentation Programs Provide powerful design tools to outline, create, edit, arrange and display complex.
Original Finished Anaglyph What are we trying to do?
Early PC Graphics Capabilities of the IBM Color Graphics Adapter (CGA) and Enhanced Graphics Adapter (EGA)
CS 686: Programming SuperVGA Graphics Devices Introduction: An exercise in working with graphics file formats.
Programming Super-VGA Graphics Devices Introduction to VESA graphics modes and to organization of the linear frame-buffer memory.
Defining protected-mode segment-descriptors An example of a protected-mode bootsector application that draws a message to the video display.
The CRT Controller How to modify CRTC registers to achieve a non-standard horizontal and vertical screen resolution.
Michener’s Algorithm An efficient scheme for drawing circles (and filling circular disks) on a raster graphics display.
COMP 14: Files and Graphics for Applets June 19, 2000 Nick Vallidis.
Direct I/O Programming An introduction to the Pentium’s mechanism for programming peripheral hardware components.
Graphics Bitmaps Drawing characters glyphs and multicolor patterns.
How to do ‘page-flipping’ The steps needed when revising our ‘wfmodel1.cpp’ prototype to achieve ‘smooth’ animation.
CS430 © 2006 Ray S. Babcock CS430 – Image Processing Image Representation.
CS 686: Programming SuperVGA Graphics Devices Introduction: An exercise in working with graphics file formats.
Exercise 1 - Poisson Image completion using Discrete Poisson Linear Systems.
A device-driver for Video Memory Introduction to basic principles of the PC’s graphics display.
VGA Color Registers How we can reprogram the Digital-to-Analog Converter’s 256 color-table registers.
Introduction to Computing Systems (3rd Exam). 1.[5] Suppose R1 contains an integer x and R2 contains another integer y. Please write an instruction which.
SiS 315 An introductory exploration of features of the SVGA graphics processor used in our classroom’s workstations.
First Bytes - LabVIEW. Today’s Session Introduction to LabVIEW Colors and computers Lab to create a color picker Lab to manipulate an image Visual ProgrammingImage.
4-Bit Binary-to-BCD Converter: case Statement
Basics of a Computer Graphics System Introduction to Computer Graphics CSE 470/598 Arizona State University Dianne Hansford.
CS-280 Dr. Mark L. Hornick 1 ASCII table. 2 Displaying Numbers as Text Problem: display numerical values as text Consider the numerical value 0x5A held.
GCSE Computing#BristolMet Session Objectives#9 MUST identify the data needed for a computer to display an image correctly (metadata) SHOULD describe the.
© GCSE Computing Candidates should be able to:  explain the representation of an image as a series of pixels represented in binary  explain the need.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
Chapter 2 Getting Started: Drawing Figures. The Framebuffer Lecture 2 Fri, Aug 29, 2003.
Binary, Decimal and Hexadecimal Numbers Svetlin Nakov Telerik Corporation
Bobby Bodenheimer CS 258 Introduction to Graphics Fall 2003 The Tiff Image Specification.
Lab 8 Bit-Mapped Graphics Moving from text-based graphics to bit- mapped graphics. Easy to draw graphic points and lines using INT 10h, Function 0Ch (write.
LCD Screens ‘How it works?’. LCD ScreensOutput devices LCD Screens Liquid crystal display (LCD) screens are visual display units. An LCD is made up of.
The Rendering Pipeline CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
GRAPHICS MODULE 14 STUDY BOOK. Graphic commands SCREEN - puts the screen into graphics mode WINDOW - allows scaling of the screen LINE - 3 formats –LINE.
Digression on r/w ‘/proc’ files An application of kernel module programming to Super VGA graphics device control.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
Beam Penetration & Shadow Mask Method
Why a bitmap (.bmp), not a.jpg? If you cannot save a.bmp, make it an uncompressed.tif. Compression (of this 8-bit 397,000 pixel image): none (397kb memory)medium.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
YCbCr 4:2:2 with Embedded Syncs In / RGB Graphics Out Using an SDTV Generic Setup CSC Setup for HD YCbCr to RGB REG 0x04 = 0x81 // csc_ric1 0x05 = 0xD5.
// A // --- // F| G |B // --- // E| |C // ---.Dp // D // My LED Functions Scott Nichols.
Graphics in a computers memory How a picture (i.e. a graphic) is stored in a computers memory A computer screen is made up of little dots, called PICture.
FRACTIONS & SHAPES BY:. How many of these are colored red? * out of *.
4. Kernel and VGA ENGI 3655 Lab Sessions. Richard Khoury2 Textbook Readings  None.
RGB lesson Mrs Ras. Open illustrator File > new change color mode to RGB.
Fundamentals of Digital Images & Photography. Pixels & Colors The pixel (a word invented from "picture element") is the basic unit of programmable color.
An urn contains 1 green, 2 red, and 3 blue marbles. Draw two without replacement. 1/6 2/6 3/6 2/5 3/5 1/5 3/5 1/5 2/5 2/30 3/30 2/30 6/30 3/30 6/30.
Direct-Access Color Graphics Chapter 11. Graphics modes C++ provides a different combination of graphics characteristics. These characteristics include.
1 Bits, Bytes, Binary & Hex CIS TAG ▪ Byte Bit.
 Introduction of Microsoft Excel  Uses of Microsoft Excel  How to start Microsoft Excel  Introduction of Microsoft Excel Screen  Practical of Mark.
Topic 12 Light. Lesson 5: Refraction of White Light.
Red Green Blue (RGB) Colour conversions Y and RGB Link In the images, the lighter the colour intensity (Red, Green, Blue), the more the contribution.
DISPLAY DEVICES CIS 10, Group #1 April 01, 2006 C. X. A. L. K. H. A. V. ((( L. C.
Representing images.
Getting Image Data Image Data Files 11/15/2018
Representing Images 2.6 – Data Representation.
Introduction to Intel x86-64 Assembly, Architecture, Applications, & Alliteration Xeno Kovah – 2014 xkovah at gmail.
Name: _______________________________
Programming Graphic LCD
Programming Graphic LCD
Programming Graphic LCD
EE 319K Introduction to Embedded Systems
Programming Graphic LCD
Programming Graphic LCD
Programming Graphic LCD
CS-401 Computer Architecture & Assembly Language Programming
Color Box Button - Gray Type : object Type : object Type : object
Presentation transcript:

Using HiColor graphics Introduction to the 15bpp/16bpp SuperVGA graphics modes

15-bit color-format 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 R R R R R G 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 R R R R R G G G G G B B B B B Each pixel is controlled by a two-byte element of display memory according to the format shown above (‘little endian’ convention)

Radeon’s 15bpp VESA modes mode 0x010D: 15-bpp 320x200 mode 0x0193: 15-bpp 320x240 mode 0x01A3: 15-bpp 400x300 mode 0x01B3: 15-bpp 512x384 mode 0x01C3: 15-bpp 640x350 mode 0x0183: 15-bpp 640x400 mode 0x0110: 15-bpp 640x480 mode 0x0113: 15-bpp 800x600 mode 0x0116: 15-bpp 1024x768 mode 0x0119: 15-bpp 1280x1024

16-bit color-format 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 R R R R R G 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 R R R R R G G G G G G B B B B B Each pixel is controlled by a two-byte element of display memory according to the format shown above (‘little endian’ convention)

Radeon’s 16bpp VESA modes mode 0x010E: 16-bpp 320x200 mode 0x0194: 16-bpp 320x240 mode 0x01A4: 16-bpp 400x300 mode 0x01B4: 16-bpp 512x384 mode 0x01C4: 16-bpp 640x350 mode 0x0184: 16-bpp 640x400 mode 0x0111: 16-bpp 640x480 mode 0x0114: 16-bpp 800x600 mode 0x0117: 16-bpp 1024x768 mode 0x011A: 16-bpp 1280x1024

Application programming unsigned short *vram; vram = (unsigned short *)0xA0000000; // For 15bpp color-format unsigned short red = (0x1F << 10); unsigned short green = (0x1F << 5); unsigned short blue = (0x1F << 0); unsigned short white = 0x7FFF;

In-class exercise #1 Write a ‘bare-bones’ graphics application that draws a border around the screen For each of the seven color-combinations named below, draw an array of colored boxes that shows all of the 32 possible intensities of that color: pure red, pure green, pure blue blue-and-green, blue-and-red, green-and-red red-and-green-and-blue

In-class exercise #2 Revise our ‘wfmodel1.cpp’ demo-program so that it uses 15bpp color-format instead of 8bpp color-format (but keep the same 640-by-480 screen-resolution)