WJEC GCSE Computer Science

Slides:



Advertisements
Similar presentations
Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Advertisements

GCSE Computing#BristolMet Session Objectives#10 MUST define the term sample rate COULD explain how sound can be sampled and stored in digital form SHOULD.
Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
WHAT’S THIS? ….. WHAT CHANGES? Uptown Funk 1 Uptown Funk 2. Uptown Funk 3.
Eee116j1 1 Digital Information Engineering Science EEE116J1 Prof Paul Maguire w.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Lesson Objectives Explain the representation of an image as a series of pixels represented in binary Explain the need for meta data to be included in the.
Bitmapped Images 27 th November 2014 With Mrs
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
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.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 1. Data Representation Data Representation – Why do we use binary? simplicity,
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
AS LEVEL ICT2 Processing Different Types of Information.
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Representation of Images You need to know: (k) explain the representation of an image as a series of pixels represented in binary (l) explain the need.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
CSCI-100 Introduction to Computing Hardware Part II.
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.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Representation of Data in Computer Systems
Processing Data. Representing Numbers  Recap on Binary Numbers  Binary digit (1 or 0) – known as a ‘bit’, short for BInary digiT – bits generally grouped.
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.
By the end of this session you should be able to... Understand character sets and why these are used within computer systems. Understand how characters.
Text and Images Key Revision Points.
Computer Systems Nat 5 Computing Science Data Representation
Unit 2.6 Data Representation Lesson 3 ‒ Images
Data Representation: Sound
3.3 Fundamentals of data representation
Image and Sound Representation
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Images Data Representation.
Data Representation Images.
Denary to Binary Numbers & Binary to Denary
Image and Sound Representation
Data representation – Sound.
Binary Notation and Intro to Computer Graphics
Computer Systems Nat 4/5 Data Representation Lesson 4:
Binary Representation in Audio and Images
Binary 4 File Sizes.
BTEC NCF Dip in Comp - Unit 02 Fundamentals of Computer Systems Lesson 10 - Text & Image Representation Mr C Johnston.
Multimedia: Digitised Sound Data
Chapter I Digital Imaging Fundamentals
Learning Intention I will learn how a computer stores graphics.
Folders out, planners out…
Data Representation Keywords Sound
Data Representation.
Bitmap, Vector, Pixels, Resolution, Metadata.
Representing Images 2.6 – Data Representation.
What do these words mean to you?
Web Design and Development
Summer Term Year 10 Slides
1. Explain how ASCII is used to represent text in a computer system
Chapter 2 Data Representation.
Representing Sound 2.6 – Data Representation.
Computer Systems Nat 4.5 Computing Science Data Representation
Option: Data Representation
Computer Systems Nat 4/5 Data Representation Lesson 4:
Recap In previous lessons we have looked at how numbers can be stored as binary. We have also seen how images are stored as binary. This lesson we are.
Option: Data Representation
Presentation transcript:

WJEC GCSE Computer Science Unit 1 Data Representation

Objectives To demonstrate how computers interpret instructions: How instructions are coded as bit patterns How the computer knows if it is reading instruction or data How sound can be sampled and stored digitally How a bitmap image is represented by pixels Why metadata needs to be included in image and sound files

How instructions are coded as bit patterns Computer programs are compiled into machine code before they are able to run on a computer system. Instructions to a CPU are processed as part of the fetch-decode-execute cycle. A typical instruction to a CPU is to add two numbers together. Another instruction may be to subtract two numbers.

How instructions are coded as bit patterns All of these instructions are stored as machine code, using a set pattern of bits for each operation, called the opcode. An example may be 1011 which could be the opcode for addition. 1010 may be the opcode for subtraction. Along with the opcode, an operand may be included in the instruction which may include the location in memory containing the data needed for that instruction to be processed, e.g. the instruction add 2 will be represented as 10110010.

How the computer knows if it is reading instructions or data Both instructions and data are stored as bit patterns in memory. It would be advantageous if the CPU was able to differentiate between the two, since the outcome may not be desirable if, for instance, data was processed as an instruction or vice-versa.

How the computer knows if it is reading instructions or data In some systems there is a software flag which allocates certain locations on memory as ‘instruction only’ locations and other areas on memory marked as ‘data only’ locations. In other systems a hardware flag is used to differentiate between the two. This is where an additional bit may be allocated to each bit pattern to flag whether it is data or instruction.

How sound can be sampled and stored digitally A computer system is only able to store and process binary digits as it is a digital device. If an analogue signal, such as sound, is sent to a computer system, it has to be converted into a digital signal before it can be processed.

Sound Sampling: Keywords Resolution: This is the number of bits used to store each sample. The more bits, the more accuracy you have – this also increases the filesize. Sample Frequency / Sample Rate: The number of samples taken in a given time period. The more samples taken the better the quality of feedback – this also increases the filesize. Amplitude The height of the sound wave KHz The frequency at which sounds are sampled. 16KHz = 16,000 Hz.

Sound Sampling 0.8 2.0 3.4 5.0 6.6 8.1 10.0 … Sampling is how analogue sounds are converted into digital files. A measurement of the sound wave (amplitude) is taken at set intervals (sample rate). The higher the sample rate, the better the quality of the file.

Storing sound waves Storing analogue sound waves as numbers is very easy: The height of the wave (amplitude) is converted into a binary number Each of the binary numbers is then stored in a file! 0.8 2.0 3.4 5.0 6.6 8.1 10.0 … 00000001 00000010 00000011 00001001 00000111 00001000 00001010 …

Sampling Sound is converted into a digital signal by a process called sampling. Sampling is where hardware, such as a microphone, measures the level of sound many times per second and records this as binary digits.

Sampling The number of times that the sound level is sampled per second is called the sampling frequency. The higher the sampling frequency, the better the quality of the sound recorded. A typical sampling frequency is 44,000 times per second, also known as 44 kHz. This is the sampling frequency used on most audio CDs.

Workbook Complete section 2c Q1-2

How an image is represented by pixels in binary format Images on a computer system are made up of thousands of small coloured dots, known as pixels (short for picture elements). Bitmap images are stored as an array of pixels. A black and white bitmap image will store a 1 for a black pixel and 0 for a white pixel. This bitmap image can be represented using a 56 bits (or 7 bytes).

How an image is represented by pixels in binary format A colour bitmap image is stored by replacing the 1s and 0s with a longer number that represents how much red, green and blue (RGB) is required in the colour of each pixel; this is known as colour depth. In a 256 colour palette, the image would require 1 byte of storage per pixel – so we would need 448 bits (or 56 bytes) to store the previous image in colour. There are other colour depths available, which can store more information about the colours in each pixel of an image. The more information stored about the colour of each pixel, the larger the file size becomes.

How an image is represented by pixels in binary format You may also have heard of vector images. These images do not store the data by pixels, but are a set of instructions for drawing a geometric shape. The advantages of a vector image are that they can be scaled without loss of quality (pixellation etc.) and use less storage space.

Why metadata needs to be included in an image file The term metadata refers to ‘data about data’. Key properties which are needed to display an image correctly are stored as metadata. Bitmap metadata Data such as an image’s height, width and colour depth are typical examples of data stored in the metadata about an image. Sound metadata Data such as a sound file’s artist, track length, album, track number, and file type are typical examples of data stored in the metadata about a sound file. Without metadata, a computer system may render an image incorrectly on screen, such as displaying all pixels in one row.

Workbook Complete section 2c Q3-4