1. Trang chủ
  2. » Giáo án - Bài giảng

The architecture of computer hardware and systems software an information technology approach ch03

45 354 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 45
Dung lượng 1,42 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Sources of Data Binary input  Begins as discrete input  Example: keyboard input such as A 1+2=3 math  Keyboard generates a binary number code for each key  Analog  Continuous data

Trang 1

CHAPTER 3:

Data Formats

The Architecture of Computer Hardware

and Systems Software:

An Information Technology Approach

3rd Edition, Irv Englander John Wiley and Sons 2003

Trang 2

represented, stored and processed by a computer

Trang 3

Sources of Data

 Binary input

 Begins as discrete input

 Example: keyboard input such as A 1+2=3 math

 Keyboard generates a binary number code for each key

 Analog

 Continuous data such as sound or images

 Requires hardware to convert data into binary numbers

Computer

1101000101010101…

Input device

A 1+2=3 math

Figure 3.1 with this

color scheme

Trang 4

Common Data Representations

Type of Data Standard(s)

Alphanumeric Unicode, ASCII, EDCDIC

Image (bitmapped)  GIF (graphical image format)

 TIF (tagged image file format)

 PNG (portable network graphics) Image (object) PostScript, JPEG, SWF (Macromedia

Flash), SVG Outline graphics and fonts PostScript, TrueType

Sound WAV, AVI, MP3, MIDI, WMA

Page description PDF (Adobe Portable Document

Format), HTML, XML Video Quicktime, MPEG-2, RealVideo, WMV

Trang 5

Internal Data Representation

 Reflects the

 Complexity of input source

 Type of processing required

 Trade-offs

 Accuracy and resolution

 Simple photo vs painting in an art book

 Compactness (storage and transmission)

 More data required for improved accuracy and resolution

Compression represents data in a more compact form

Metadata : data that describes or interprets the meaning of data

Trang 6

Data Types: Numeric

 Used for mathematical manipulation

 Types

 Covered in Chapters 4 and 5

Trang 7

Data Types: Alphanumeric

 Special-purpose characters: $ &

 Examples: Variables declared as numbers by the programmer (Salary$ in BASIC)

 Examples: Phone numbers, ZIP codes

Trang 8

Alphanumeric Codes

 Arbitrary choice of bits to represent

characters

recognize same code

character corresponds to placement in the alphabet

Trang 9

Representing Characters

 ASCII - most widely used coding

scheme

 EBCDIC: IBM mainframe (legacy)

 Unicode: developed for worldwide use

Trang 10

European special characters

 ASCII

Trang 11

ASCII Reference Table

Trang 12

Code developed by IBM

mainframes

ASCII EBCDIC

Space 2016 4016

A 4116 C116

b 6216 8216

Trang 13

characters

and Korean

clusters required by some languages

local-languages

Trang 14

Collating Sequence

upper- and lowercase codes

Trang 15

2 Classes of Codes

device

 VT: vertical tab  LF: Line feed

 ESC: provides extensions by changing the meaning of a specified number of contiguous following characters

 BEL: bell rings  DEL: delete current character

Trang 16

Control Code Definitions

Trang 17

Keyboard Input

 One generated when key is struck and another when key

multiple key combinations

 Examples: shift and control keys

Trang 18

Other Alphanumeric Input

OCR (optical character reader)

 Scans text and inputs it as character data

 Used to read specially encoded characters

 Example: magnetically printed check numbers

 General use limited by high error rate

Bar Code Readers

 Used in applications that require fast, accurate and repetitive input with minimal employee training

 Examples: supermarket checkout counters and inventory control

 Alphanumeric data in bar code read optically using wand

Magnetic stripe reader: alphanumeric data from credit cards

Trang 19

 Quality of the image

 Storage space required

 Time to transmit

 Ease of modification

Trang 20

Bitmap Images

shading, color, shape and texture

 Examples:

 Scanned photos

 Clip art generated by a paint program

and processing requirements are fairly simple

 Scanners

 Digital cameras and video capture devices

 Graphical input devices like mice and pens

 Editing tools to make tedious bit by bit process easier

Trang 21

Bitmap Images

graphic stored as a binary number

location

code corresponding to 1 of 16 shades of gray

Trang 22

Bitmap Display

 Monochrome: black or white

 Gray scale: black, white or 254 shades

of gray

 Color graphics: 16 colors, 256 colors,

or 24-bit true color (16.7 million colors)

Trang 23

Storing Bitmap Images

Resolution (the number of pixels per inch)

 Amount of detail affecting clarity and sharpness of an image

gray or multiple colors

Palette: color translation table that uses a code for each pixel rather than actual color value

Trang 24

GIF (Graphics Interchange Format)

time sequences

(Lempel-Zif-Welch) algorithm

pictures with large blocks of solid color

Trang 25

GIF (Graphics Interchange Format)

Trang 26

JPEG

(Joint Photographers Expert Group)

 Allows more than 16 million colors

 Suitable for highly detailed photographs and paintings

 Employs lossy compression algorithm that

transmission speed

distort sharp lines

Trang 27

Other Bitmap Formats

 TIFF (Tagged Image File Format): tif (pronounced tif)

 Used in high-quality image processing, particularly in

publishing

 Device-independent format for Microsoft Windows

environment: pixel colors stored independent of output device

 Windows Paintbrush software

Trang 28

Object Images

spreadsheet data graphs

colors

create the graphic

 number of instructions to create lines, shapes, fill patterns

images

Trang 29

Object Images

 Easy to move, scale and rotate without losing shape and identity as bitmap images may

images

 Must be converted to bitmap since output

devices except plotters are bitmap

Trang 30

Popular Object Graphics Software

 Files extensions include wmf, dxf, mgx, and cgm

products

image-editing, painting and animation software

drafters, and design-related professionals

Web description language

 Not proprietary

Trang 31

Page description language : list of

procedures and statements that

describe each of the objects to be

printed on a page

device reads PostScript to generate image

 Scalable font support

objects

Trang 32

PostScript Program

Trang 33

Representing Characters

ASCII

with the character

includes both identification and presentation requirement for characters

Trang 34

Bitmap vs Object Images

Bitmap (Raster) Object (Vector)

Pixel map Geometrically defined shapes

Photographic quality Complex drawings

Paint software Drawing software

Larger storage requirements Higher computational requirements

Enlarging images produces jagged

edges Objects scale smoothly

Resolution of output limited by

resolution of image Resolution of output limited by output device

Trang 35

Video Images

 Video camera producing full screen 640 x 480 pixel true

color image at 30 frames/sec 27.65 MB of data/sec

 1-minute film clip 1.6 GB storage

limit number of colors, reduce frame rate

Streaming video: video displayed as it is downloaded from the Web server

 Example: video conferencing

 Local data (file on DVD or downloaded onto system) for

higher quality

 MPEG-2: movie quality images with high compression require substantial processing capability

Trang 36

Audio Data

less demanding than those for video

sound

instructions to recreate or synthesize sounds

A-to-D converter

Trang 37

Waveform Audio

Sampling rate normally 50KHz

Trang 38

Sampling Rate

measured during the recording process.

Trang 39

to communicate with music synthesizers

sound cards use to recreate or synthesize

Trang 40

Audio Formats

E xperts G roup)

reduce storage requirements

lossy compression

specification

reproducing small snippets of sound

Trang 41

.WAV Sound Format

Trang 42

Data Compression

Compression: recoding data so that it requires fewer

Compression ratio: the amount file is shrunk

Lossless: inverse algorithm restores data to exact

original form

 Examples: GIF, PCX, TIFF

Lossy: trades off data degradation for file size and

Trang 43

makes dictionary entry

Trang 44

Internal Computer Data Format

 All data stored as binary numbers

 Interpreted based on

language used to create application

Trang 45

5 Simple Data Types

 Type DayOfWeek = Mon, Tues, Wed, Thurs, Fri, Sat, Sun

 Numbers with a decimal point

 Numbers whose magnitude, large or small, exceeds

computer’s capability to store as an integer

Ngày đăng: 10/01/2018, 16:23

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN