Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the...
-
Upload
jeffrey-newman -
Category
Documents
-
view
215 -
download
1
Transcript of Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the...
![Page 1: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/1.jpg)
Digital Media
Dr. Jim Rowan
Chapter 2
![Page 2: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/2.jpg)
First, somemac software you will be using
(found in the application folder)
• Grab - used to do a screen capture
• TextEdit - used as a simple word processor
• PhotoBooth - used to take your picture with the built in camera and take video with the built in camera
• Preview: Change image file formats
![Page 3: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/3.jpg)
About file formats and extensions(like .au, .doc, .ppt, .mov)
• Indication to us (the humans) what kind of file this is
• Some software looks at the extension– so... some software will try to open files
with improper extensions– results in “file corrupted” error message– try it... change the extension from .doc
to .jpg
![Page 4: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/4.jpg)
File formats and extensions
• Some software looks at the data in the file for more definitive answer (the header)
• important file-related information is encoded in the data of the file
• for example: some image formats have color tables to reduce the size of the file
• some video just saves the changes from one frame to the next
• we’ve seen the header before when we used hexFiend to look at images… image size is stored in the header
![Page 5: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/5.jpg)
The Question:
• How do you put stuff in a computer – so that you can manipulate it– so that you can send it– so that someone else can see and use it?
• How do you represent the real world in a digital world?
![Page 6: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/6.jpg)
The answer:
• Represent the real world as numbers
• Store the numbers
• Transmit the numbers
• Retrieve the numbers
• Display them in a form humans understand
![Page 7: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/7.jpg)
Today:
• Chapter 2 is a “first cut” of nearly all the material that will be covered in greater detail this semester
• About the real world
• About digital representation
![Page 8: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/8.jpg)
• From the first day’s lecture we saw different types of real world stuff as a bunch of numbers
![Page 9: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/9.jpg)
Note on paper
![Page 10: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/10.jpg)
Picture
![Page 11: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/11.jpg)
Song: fieldsOfGold.mp3
![Page 12: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/12.jpg)
Video
![Page 13: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/13.jpg)
So it’s all just numbers, and binary numbers at that!
First we must talk about numbering systems!
![Page 14: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/14.jpg)
Numbering systems:
DecimalBinary
Hexadecimal
![Page 15: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/15.jpg)
Which statement is True?
5 + 5 = 10
1 + 1 = 10
7 + 1 = 10
F + 1 = 10
![Page 16: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/16.jpg)
well… it depends…
5 + 5 = 10 (in decimal)
1 + 1 = 10 (in binary)
7 + 1 = 10 (in octal)
welcome to numbering systems!
![Page 17: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/17.jpg)
Numbering systems
• Humans: decimal– Humans: 10 fingers, 10 digits– 0, 1, 2, 3, 4, 5, 6, 7, 8 & 9 10
• Computers: binary– Computers: 1 finger, 2 digits– 0 & 1
![Page 18: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/18.jpg)
Hexadecimal
• Humans and Computers: hexadecimal– Hexadecimal: 16 fingers, 16 digits– 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
![Page 19: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/19.jpg)
Why Hexadecimal?
• You can use one hexadecimal instead of 4 binary digits
• While this seems complicated.. it is actually easier (after some practice!) for humans to deal with 16 different digits than 4 0s and 1s
• In Hex: 0123456789ABCDEF• In binary: 0000 0001 0010 0011 0100 0101 0110
0111 1000 1001 1010 1011 1100 1101 1110 1111
![Page 20: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/20.jpg)
How many different things?
• In Decimal 1 digit can represent 10 different things:– 0 1 2 3 4 5 6 7 8 9
• In Decimal 2 digits can represent 100 different things:– 00 01 02 03 04 05 06 07 08 09 10 11 12… 97 98 99
• In Binary 1 digit can represent 2 different things:– 0 and 1
• In Binary 2 digits can represent 4 different things:– 00 01 10 11
• In Hexadecimal 1 digit can represent 16 different things:– 0 1 2 3 4 5 6 7 8 9 A B C D E F
• In Hexadecimal 2 digits can represent 256 different things:– 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15
16 17 18 19 1A 1B 1C 1D 1E 1F 20 21… F9 FA FB FC FD FE FF
![Page 21: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/21.jpg)
How many different things?• So… how many things can you count with 4 hex digits?
– USE THE FORMULA!
– [number of digits in the numbering system]**[number of digits used]…
– [16]**[4] = 65,536• How many things can you count with 4 decimal digits?
– [number of digits in the numbering system]**[number of digits used]…
– [10]**[4] = 10,000• How many things can you count with 4 binary digits?
– [number of digits in the numbering system]**[number of digits used]…
– [2]**[4] = 16
![Page 22: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/22.jpg)
Counting…with a different number of fingers(it’s the same process but different number sets)
• 10 fingers: Counting in decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 then… start over with 0 and
increment the digit to the left ==> 10
• 1 finger: Counting in binary– 0, 1 then… start over with 0 and increment the digit to
the left ==> 10
• 16 fingers: Counting in hexadecimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F then… start
over with 0 and increment the digit to the left ==> 10
![Page 23: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/23.jpg)
Binary Coding
• Data for a computer... Binary– zeros and ones
• Data for humans... Hex – 1 Hexadecimal represents 4 binary digits
• Data for humans… ASCII (the alphabet)– 2 hex codes ==> 1 ASCII code
For example ==>
![Page 24: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/24.jpg)
Example: ASCII Code
• Humans and Computers: ASCII– The ASCII code for C is
• in hexadecimal: 43 (In decimal: 67)• which is binary: 0100 0011
![Page 25: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/25.jpg)
Stuff in the Real Worldto
Stuff on a computer… HOW?• A note…
– Letters of the alphabet-> bits (0s and 1s)
• A picture…– Reflected light -> bits (0s and 1s)
• A song…– Pressure waves in air -> bits (0s and 1s)
• A video…– Pressure waves in air and Reflected light -> bits (0s and 1s)
![Page 26: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/26.jpg)
HOW?
First, the real world of:
Discrete&
Continuous
![Page 27: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/27.jpg)
Phenomena in the Real world: discrete vs continuous
• Things in the real world can be discrete• They either ARE or they ARE NOT • These things can be counted• Examples:
– The number of cars in the parking lot– The number of beans in a jar
![Page 28: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/28.jpg)
Phenomena in the Real world: discrete vs continuous
• Things in the real world can be continuous• Continuous can’t be counted, it must be
measured• Examples:
– Atmospheric pressure– Height of an ocean wave– Frequency of a sound wave
![Page 29: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/29.jpg)
The problem is... computers can only count
• Discrete data is easy for a computer– count it and store it as a number
• Continuous data... easy? not so much– music:
• measure the frequency & amplitude• encode as a collection of numbers
– pictures: • measure the amount (intensity) and frequency of light (color)
in a number of spots of light (pixels)• encode the frequency and the intensity as a collection of
numbers
![Page 30: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/30.jpg)
Question...
• If computers only store 0s and 1s...
• How does all this continuous stuff end up in a computer so that we can save it and play it back?
• Answer– Continuous data must be converted to
discrete data
![Page 31: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/31.jpg)
Converting continuous phenomenon to digital data:-You must SAMPLE to convert it to discreteSampling consists of two processes
1) stop to take a measurementthe number per time period is called the sample rate
2) take the measurementthe number of different values each sample can take on is called the quantization level
Digital data back to continuous phenomenon:– Display samples using “sample and hold”
• Play the sample for the duration of the sample time
From the Real World …and Back!
![Page 32: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/32.jpg)
Before we go further with sampling:What this stuff means:
Bit: binary digit
Byte: 8 Bits
KB: kilo byte (1000 bytes)
MB: mega byte (1,000,000 bytes)
GB: giga byte (1,000,000,000 bytes)
TB: tera byte (1,000,000,000,000 bytes)
KBPS: kilo (1,000) bits per second
MBPS: mega (1,000,000) bits per second
![Page 33: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/33.jpg)
Note this!
• Communications are usually stated in bps (bits per second)
• File size is usually stated in bytes
• AND: 8 bits per byte– you will have to convert from one to the
other when you do download/upload calculations
![Page 34: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/34.jpg)
Network access
• dial up connection
• ADSL
• T1
• T3
![Page 35: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/35.jpg)
Network access...
• dial up connection– phone modem– asymmetric
• 56,000 bps (bits, not bytes) max downstream (internet to modem)
• 33.6 kbps upstream (modem to internet)
– rarely get these speeds
![Page 36: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/36.jpg)
Network access...
• ADSL – asymmetric digital subscriber line– over copper phone wires– limited to short distance from phone switch– asymmetric
• 6.1 mbps downstream• 640 kbps upstream
![Page 37: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/37.jpg)
Network access...
• Other options– Cable modem (also asynchronous)– satellite with phone (also asynchronous)– satellite alone (expensive but available in the boonies)– local wireless networks– high altitude tethered balloons– transmission over power lines
![Page 38: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/38.jpg)
Network access...Commercial internet users
• T1 connection 1.544 mbps
• T3 connection 44.7 mbps
• Provide web servers for others to put websites on
• Large commercial enterprises will have their own web server
![Page 39: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/39.jpg)
Time-to-download/upload calculations
• The Speeds:– Dial-Up
• 56,000 bps internet to modem (downstream)• 33,600 bps modem to internet (upstream)
– ADSL• 6.1 mbps (million bps) downstream• 640 kbps (thousand bps) upstream
– T1 • 1.544 mbps
– T3 • 44.7 mbps
NOTE!
bps is bits per second while filesize
is stated in bytes
![Page 40: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/40.jpg)
Time-To-Load calculations
For a 1.2 megabyte video:
How long would it take to load it to youTube over-fastest dialup-adsl-T1-T3
How long would it take to download it from youTube over-fastest dialup-adsl-T1-T3
![Page 41: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/41.jpg)
But... How many samples do you
need?
It depends…So let’s look at sampling…
![Page 42: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/42.jpg)
![Page 43: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/43.jpg)
![Page 44: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/44.jpg)
single sample
![Page 45: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/45.jpg)
single sample
![Page 46: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/46.jpg)
single sample(sample and hold)
![Page 47: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/47.jpg)
two samples
![Page 48: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/48.jpg)
two samples
![Page 49: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/49.jpg)
two samples (sample and hold)
![Page 50: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/50.jpg)
three samples
![Page 51: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/51.jpg)
three samples
![Page 52: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/52.jpg)
three samples (sample and hold)
![Page 53: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/53.jpg)
four samples
![Page 54: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/54.jpg)
four samples
![Page 55: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/55.jpg)
four samples (sample and hold)
![Page 56: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/56.jpg)
five samples
![Page 57: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/57.jpg)
five samples
![Page 58: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/58.jpg)
five samples(sample and hold)
![Page 59: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/59.jpg)
Taking it a lot farther…
![Page 60: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/60.jpg)
Taking it a lot farther…
![Page 61: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/61.jpg)
How frequently should I sample?
• too few– small file size (good)– not a faithful representation when replayed
• too many– large file size (bad)– excellent representation when replayed
• The Nyquist rate – twice as many samples as the frequency being
captured– Results in an ok file size– Results in faithful representation when replayed
![Page 62: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/62.jpg)
CD quality is44,100 samples per second
• Why?– Human hearing response is in the range of 20
to 22,000 cycles per second
• Nyquist sample rate = highest frequency to be captured = 22,050 CPS
2 x 22,050 = 44,100 samples per second
![Page 63: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/63.jpg)
Looking at FieldsOfGold.mp3…
• 4 minutes and 59 seconds long• 1,201,173 bytes in lengthCan this be right?• CD quality
– 44,100 samples per second (sample rate)– 16 bit samples (quantization level is 16 bit)– 16 bits can store 65,536 different levels
• (2**16 = 65,536 individual levels)
![Page 64: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/64.jpg)
FieldsOfGold.mp3
• 4’59 = 299 seconds long• 299 x 44,100 samples per second
= 13,156,000 samples
• 13,185,900 x 2 bytes/sample (2 bytes = 16 bits)– 26,371,800 bytes
• Stereo: 2 channels => 52,743,600 bytes• Should be 52+ megabytes!• Why does it show only 1.2 megabytes?• HMMMmmm...
![Page 65: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/65.jpg)
FieldsOfGold.mp3
• Why 52+ megabytes not 1.2 megabytes?– wait for it…
![Page 66: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/66.jpg)
FieldsOfGold.mp3
• Why 52+ megabytes not 1.2 megabytes?
• This is an MP3!
• The data is COMPRESSED!
• If you had the song on a CD it would be 52+ megabytes long and in .aiff format
![Page 67: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/67.jpg)
Two types of compression
• Lossy
• Lossless
.mp3 audio
.jpeg imagesrun length encodingtable compression
![Page 68: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/68.jpg)
Further reading
• http://en.wikipedia.org/wiki/Nyquist_rate
• http://en.wikipedia.org/wiki/Sampling_%28signal_processing%29
• http://en.wikipedia.org/wiki/Mp3
![Page 69: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/69.jpg)
The side effects of sampling:sampling artifacts
Sampling Artifacts are the negative side effects caused by having to sample
continuous data
![Page 70: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/70.jpg)
Sampling Artifacts
• Under-sampling: not enough samples being taken of continuous data can produce undesired artifacts
• Examples might be:– Moire’ patterns on images– retrograde motion on video
![Page 71: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/71.jpg)
Sampling Artifacts (cont.)
• Not enough quantization levels when sampling continuous data can produce undesired artifacts
• Examples might be:– too few grey levels: gradients become steps– too few brightness levels: posterization
![Page 72: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/72.jpg)
![Page 73: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/73.jpg)
![Page 74: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/74.jpg)
Sampling ArtifactsRetrograde Motion
4 samples/cycle, 2 cycles
2 samples/cycle, 2 cycles
![Page 75: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/75.jpg)
![Page 76: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/76.jpg)
Sampling Artifacts (cont.)
• Audio – too few amplitude levels, quantization
noise• 8 bits (256 amplitude levels) produces
discernable noise• 16 bits (65,536 amplitude levels) CD quality,
no discernable hiss
– general sound “fuzziness” or a “flat” sound
![Page 77: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/77.jpg)
Data RepresentationsHow stuff is stored in a computer
• Images• Bitmapped• Vector
• Audio• Animation• Video• Text
![Page 78: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/78.jpg)
Images, bitmappedTuTh
• Are stored as arrays of pixels
• Can be stored directly – TIFF & PNG for example
• Can have an associated color map– JPEG for example
• Generating these pixels from the stored model is called rendering
![Page 79: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/79.jpg)
![Page 80: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/80.jpg)
![Page 81: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/81.jpg)
![Page 82: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/82.jpg)
![Page 83: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/83.jpg)
Images, vector graphic
• Are stored as mathematical descriptions
• Often smaller than bitmapped
• Size of the file is independent of resolution or image size
• Not suitable for some type of images
![Page 84: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/84.jpg)
Example & Comparison• Bitmapped graphics
– Defined as spots (pixels) of color– Has problems scaling– File size unaffected by image complexity– File size affected by the image size
• Vector graphics– Defined by their mathematically described parts– File size affected by image complexity– File size unaffected by the image size
(scaling is easy)
![Page 85: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/85.jpg)
![Page 86: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/86.jpg)
![Page 87: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/87.jpg)
![Page 88: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/88.jpg)
Moving images
• Captured live with camera– iMovie– Stored as video
• Generated from animation– Blender– Similar to 2D vector graphics… but in 3D and
with a means of creating motion
![Page 89: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/89.jpg)
Network communication&
Servers and Clients
![Page 90: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/90.jpg)
Servers & Clients...
• Clients consume and display internet content• Your browser is a client• Clients request content from servers
– by sending a server an HTTP://URL message which is a request for a web page
• Servers respond to requests for internet content– send requested web pages to Clients
• The content is sent in HTML code– HTML sent by the server is interpreted by the client (browser) and
displayed on your display
• Look at http://www.pondliner.com/ and view source
![Page 91: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/91.jpg)
URL (uniform resource locator)… a human-readable name
• URL takes the form:
http://www.amazon.com/newStuff/index.html
• URL has 3 parts– the protocol that you are using (http://)– The domain name: (www.amazon.com)– The directory and file you want to see:
(newStuff.index.html)– the URL maps to a number called an IP address
![Page 92: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/92.jpg)
Servers & Clients...
• servers have fixed IPs so they are easy to find• your computer probably uses DHCP which is a
dynamic (changing from connection to connection) IP
• An example: my IP right now (assigned through dhcp) is: (look it up in system preferences)
• IPv4 vs IPv6
![Page 93: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/93.jpg)
The Internet
your computer
DHCP:
your browser(Safari)(client)
yahoo.com(server)
235.01.30.164
walmart.com(server)
100.43.153.07
Domain Name System (DNS)
requestedwebpages
![Page 94: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/94.jpg)
yahoo.com(server)
235.01.30.164
The Internet
walmart.com(server)
100.43.153.07
ISP
DHCP: 135.10.34.143
your computer
your browser(Safari)(client)
Domain Name System (DNS)
requestedwebpages
![Page 95: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/95.jpg)
yahoo.com(server)
235.01.30.164
The Internet
walmart.com(server)
100.43.153.07
DHCP: 135.10.34.143
your computer
your browser(Safari)(client) http://www.yahoo.com
Domain Name System (DNS)http://www.yahoo.com =235.01.30.164
requestedwebpages
![Page 96: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/96.jpg)
yahoo.com(server)
235.01.30.164
The Internet
walmart.com(server)
100.43.153.07
/index.html
DHCP: 135.10.34.143
your computer
your browser(Safari)(client) http://www.yahoo.com
Domain Name System (DNS)http://www.yahoo.com =235.01.30.164
requestedwebpages
![Page 97: Digital Media Dr. Jim Rowan Chapter 2. First, some mac software you will be using (found in the application folder) Grab - used to do a screen capture.](https://reader035.fdocuments.in/reader035/viewer/2022062517/56649ebf5503460f94bc9e79/html5/thumbnails/97.jpg)
Questions?