WEBVTT

00:00.000 --> 00:04.000
Representing images and sound.

00:04.000 --> 00:06.000
In this video, we will understand

00:06.000 --> 00:10.000
Computers do not see images or hear sounds the way humans do.

00:10.000 --> 00:14.000
Explain how images are stored using pixels.

00:14.000 --> 00:18.000
Describe how sounds are captured and represented using samples.

00:18.000 --> 00:24.000
Recognize that both images and sounds are stored as numbers inside a computer.

00:24.000 --> 00:29.000
Computers don't see images or hear sounds the way we do.

00:29.000 --> 00:32.000
Instead, they represent them using numbers.

00:32.000 --> 00:36.000
In this lesson, we'll learn how images are stored as pixels

00:36.000 --> 00:41.000
and how sound is captured using samples.

00:41.000 --> 00:45.000
An image is made up of tiny squares called pixels.

00:45.000 --> 00:48.000
The resolution tells us how many pixels are used.

00:48.000 --> 00:51.000
More pixels means a clearer picture.

00:51.000 --> 00:55.000
To show color, computers use the RGB model.

00:55.000 --> 01:01.000
Red, green, and blue light mix together to create millions of colors.

01:01.000 --> 01:06.000
The number of bits used for each pixel is called color depth.

01:06.000 --> 01:10.000
For example, 8 bit can show 256 colors,

01:10.000 --> 01:15.000
while 24 bit can show over 16 million.

01:15.000 --> 01:24.000
The file size of an image can be calculated using width multiplied by height multiplied by color depth.

01:24.000 --> 01:28.000
Sound is stored digitally through sampling and quantization.

01:28.000 --> 01:33.000
The red, continuous curve is the original analog sound wave.

01:33.000 --> 01:37.000
A sample is a snapshot of the sound wave taken at regular intervals.

01:37.000 --> 01:42.000
The yellow dots on the curve represent these individual samples.

01:42.000 --> 01:46.000
The green lines show the measured amplitude for each snapshot.

01:46.000 --> 01:51.000
The sampling rate is the number of samples taken per second.

01:51.000 --> 01:56.000
After sampling, the amplitude values are converted to a digital number,

01:56.000 --> 02:00.000
a process called quantization.

02:00.000 --> 02:06.000
Common image formats are JPEG, PNG, GIF, and BMP.

02:06.000 --> 02:11.000
For audio, we often use MP3, WAV, and FLAT.

02:11.000 --> 02:15.000
Compression helps reduce file sizes, but lossy compression,

02:15.000 --> 02:20.000
like JPEG makes files smaller, but reduces quality slightly.

