Data Formats.

Slides:



Advertisements
Similar presentations
Data Representation. Units & Prefixes Review kilo, mega, and giga are different in binary! bit (b) – binary digit Byte (B) – 8 binary digits KiloByte.
Advertisements

Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
Information Representation
The Binary Numbering Systems
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
Introduction to Multimedia SMDC Staff Training 6/9/06.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Connecting with Computer Science, 2e
Introduction to Multimedia Student Multimedia Design Center 06/06/06.
Chapter 2 : Business Information Business Data Communications, 5e.
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
Chapter 2 : Business Information Business Data Communications, 5e.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Digital Information Technology
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
COMP Representing Sound in a ComputerSound Course book - pages
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Text, Images, Video and Sound CS 1 Introduction to Computers and Computer Technology Rick Graziani Spring 2015.
Chapter 2 Computer Hardware
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
© Keith Vander Linden, 2005 Jeremy D. Frens, Open up the box of a computer, and you won't find any numbers in there. You'll find electromagnetic.
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
Chapter 2 : Business Information Business Data Communications, 6e.
© Keith Vander Linden, 2005 Jeremy D. Frens, Open up the box of a computer, and you won't find any numbers in there. You'll find electromagnetic.
Communicating Quantitative Information Is a picture worth 1000 words? Digital images. Number bases Standards, Compression Will [your] images last? Homework:
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Class 9 LBSC 690 Information Technology Multimedia.
CSCI-100 Introduction to Computing Hardware Part II.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
1 Problem Solving using Computers “Data....Representation, and Storage.
HONR101 Analytics in a Big Data World Monday, January 18,
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Chapter 1: Data Storage.
Multimedia Systems Dr. Wissam Alkhadour.
Computer Science: An Overview Eleventh Edition
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Invitation to Computer Science, C++ Version, Fourth Edition
Chapter 8 & 11: Representing Information Digitally
Data Representation.
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
BTEC NCF Dip in Comp - Unit 02 Fundamentals of Computer Systems Lesson 10 - Text & Image Representation Mr C Johnston.
Folders out, planners out…
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
CS 115: Computing for The Socio-Techno Web
Invitation to Computer Science, C++ Version, Third Edition
Data Representation Keywords Sound
Overview What is Multimedia? Characteristics of multimedia
Multimedia Fundamentals(continued)
Representing Images 2.6 – Data Representation.
Summer Term Year 10 Slides
The Building Blocks: Binary Numbers, Boolean Logic, and Gates
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
Representing Sound 2.6 – Data Representation.
Basic Concepts of Digital Imaging
Visuals are analog signals...
WJEC GCSE Computer Science
Presentation transcript:

Data Formats

Representing data Everything is binary Computers use switches (on/off) to represent state and computation. Binary is the logical language. How are characters, images, and sounds represented in binary?

Representing data Everything is binary Standard data representations Characters: ASCII, Unicode: mapping from binary numbers into printable characters Englander, 2009, p. 102

Representing data Everything is binary Standard data representations Characters: ASCII, Unicode: mapping from binary numbers into printable characters The CPU sees 1001 0111 but, interpreted as ASCII, we see “W” printed on the screen. Englander, 2009, p. 102

Representing data Everything is binary Standard data representations Characters: ASCII, Unicode: mapping from binary numbers into printable characters Implications: Conversion of numbers to printed strings is needed. “1234” and 1234 are radically different.

Representing data Everything is binary Standard data representations Characters: ASCII, Unicode: mapping from binary numbers into printable characters Implications: Conversion of numbers to printed strings is needed. “1234” and 1234 are radically different. 0111 0001 0111 0010 0111 0011 0111 0100 0000 0000 0000 0000 0000 0100 1101 0010

Representing data Everything is binary Standard data representations Images: pixels (picture elements) represented by red, green, blue, and alpha (transparency) 8-bit quantities

Representing data Everything is binary Standard data representations Images: pixels (picture elements) represented by red, green, blue, and alpha (transparency) 8-bit quantities RGBA(FB, C5, 27, FF) RGBA(F8, 84, 12, FF) RGBA(9C, 0A, 0B, FF)

Representing data Everything is binary Standard data representations Images: pixels (picture elements) represented by red, green, blue, and alpha (transparency) 8-bit quantities A color is just a 32-bit number. A picture is just a grid (rows and columns) of colors.

Representing data Everything is binary Standard data representations Images: pixels (picture elements) represented by red, green, blue, and alpha (transparency) 8-bit quantities A color is just a 32-bit number. A picture is just a grid (rows and columns) of colors. In practice, an 8 megapixel image (3263x2448) would take 32 megabytes of space uncompressed. Advanced compression techniques (JPEG) reduce this to about 2 megabytes.

Representing data Everything is binary Standard data representations Sounds: a wave. Frequency (pitch), amplitude (loudness). Sample the amplitude many times per second. Record the amplitude as a number.

Representing data Everything is binary Standard data representations Sounds: a wave. Frequency (pitch), amplitude (loudness). Sample the amplitude many times per second. Record the amplitude as a number. Englander, 2009, p. 120

Representing data Everything is binary Standard data representations Sounds: a wave. Frequency (pitch), amplitude (loudness). Sample the amplitude many times per second. Record the amplitude as a number. CD-quality is 16-bit sample, 2 channels, each at 44,000 Hz = 10 Mb per minute in raw format. Advanced data compression (mpeg) reduces sizes by 11-to-1 by eliminating sounds the human ear can’t distinguish (psycho-acoustic model).

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds.

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Brall, 2011

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Not much changes from frame to frame. Why store everything? Brall, 2011

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Advanced compression (MPEG) encodes only differences between frames.

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Advanced compression (MPEG) encodes only differences between frames.

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Advanced compression (MPEG) encodes only differences between frames. I-frames: standard JPEG picture compression.

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Advanced compression (MPEG) encodes only differences between frames. P-frames: differences from previous I-frame or P-frame only.

Representing data Everything is binary Standard data representations Video: a series of pictures (flipbook) and sounds. Advanced compression (MPEG) encodes only differences between frames. B-frames: differences from either adjacent frame (forward or backward).

Data Formats Summary Computers manipulate binary numbers. All data representations inside computer systems (characters, images, sounds, video) are ways of encoding and decoding data for human use. Standard encodings for: Characters: ASCII, Unicode Pictures: RGBA colors as a matrix Sounds: samples of amplitude Videos: Flipbook pictures with only differences between key frames.

References Englander, I. (2009). The architecture of computer hardware and systems software: an information technology approach. Wiley. Brall, Jeff. (2011). Flip book proof of concept. Retrieved June 27, 2013 from http://jeffbrall.wordpress.com/2011/01/29/flip-book-proof-of-concept-2/