1/52
Looks like no tags are added yet.
BMP, JPG, GIF, PNG,TIF
Common bitmap file types
Screen resolution
72dpi
Print quality resolution
300dpi
Why is there a deterioration in quality when a bitmap is resized
The size of each pixel grows or shrinks to maintain the required resolution
Vector images
Made up of geometric shapes or objects
How are vector shapes displayed on the screen
The properties of each shape are stored and retrieved in order to mathematically redraw it
Example properties of objects stored in a vector drawing list
Shape type, position, fill colour, line colour and weight, length and width or radius
How can an image be captured by a physical camera
Light is focused by the lens onto an array of sensors on the sensor chip which each produce an electric signal, representing a pixel. An ADC converts the measurements of the light intensity into binary, and a colour filter is applied to generate separate data for red green and blue colour components
Adobe, SVG
Common vector file types
Bitmap metadata examples
Colour depth, width in pixels, height in pixels
Bitmaps or vectors for: photographs, digital art, complex images
Bitmaps
Bitmaps or vectors for: technical drawings, clipart, cartoons, logos, simple images
Vectors
Why do vectors typically have a smaller file size than bitmaps
They contain mathematical equations rather than storing information about every pixel
Sound
A vibration that propagates as an audible wave of pressure through the air
Analogue signals
A continuous signal that represents physical measurements
Digital signals
Discrete time signals generated by digital modulation
How are analog signals caputured
By measuring continuously varying quantities
How are digital signals captured
By counting quantities
Analog to digital converter (ADC)
Any device that converts continuous natural sound waves into a digital format eg a microphone
Digital to analog converter (DAC)
Any device that converts digital audio signals into a continuous natural sound wave eg a speaker
Why is the pixel data for bitmap images discrete
The colour of each pixel is stored in a fixed number of bits
How do ADC’s convert analogue sounds to digital
The analogue signal is sampled at fixed time intervals. The amplitude of the signal is measured and rounded to the nearest available value (quantisation) and then coded in binary
Nyquist theorem
You need to use a sampling rate at least double that of the highest frequency in the original signal/sound
Frequency range of the human ear
20Hz - 20kHz
Sampling rate
The number of samples taken in a given period of time
Sampling resolution
The number of bits used to represent each sample
How is MIDI used to allow electronic musical instruments to communicate with computers
A MIDI controller is used to send and receive a sequence of event messages to each device
Example details included in event messages
Duration of note, pitch, vibrato, volume change
MIDI file
A list of instructions that detail how to synthesise a sound
4 advantages of using MIDI instead of sampled sound
More compact representation, easy to modify notes/instruments, no data lost through sampling, can be directly output to control different instruments
3 disadvantages of using MIDI instead of sampled sound
Doesn’t store the actual sound recording, requires a compatible synthesiser, cannot accurately reproduce every detail of a live acoustic performance.
3 Attributes of a MIDI file
16 channels supported, 2/3 bytes long, first byte of each MIDI message is a status byte
5 purposes of compression
Reduce file size/download times/storage requirements, make best use of bandwidth, less buffering on audio or video streams
What type of images is lossless compression ideal for
Vector-style images
Advantage of lossless compression
The file can be reproduced exactly as it was originally
What is dictionary coding ideal for
Text based documents
What is run length encoding ideal for
Images
How can data be compressed using dictionary-based compression
A dictionary is built that maps substrings of the original text onto single tokens. The substrings are then replaced by the corresponding tokens
Possible issue with dictionary compression
It creates additional overhead in storing the dictionary, but the space it saves negates the problem
How is information stored using Run Length Encoding
In frequency/data pairs
Encryption
The process of encoding a message so it can be read only by the sender and the intended recipient
Symmetric encryption
A single cypher is used to both encrypt and decrypt a message
Issues with symmetric encyrption
A message can be cracked by intercepting or duplicating the cipher key
Plaintext vs ciphertext
Plaintext is the original data while ciphertext is the encrypted data
Cipher
The encryption method or algoritm
Caesar cipher
Replaces each letter of the alphabet with another letter a fixed distance away from the original letter
3 reasons why are Caesar ciphers vulnerable
Each character is always encrypted to the same character, the ciphertext will retain structural properties of the plaintext message (eg frequency of characters), there are only 25 functional encryption keys
3 cases where a one time pad cipher (eg the Vernam cipher) is offers perfect security
The encryption key is at least as long as the plaintext message, the key is random, the key is not reused
Why is the Vernam cipher perfectly secure (under the 3 main conditions)
Nothing can be learnt about the plaintext from the ciphertext, and the knowledge of how one character has been encrypted doesn’t help figure out how others have been
How does the Vernam Cipher work
A Boolean XOR operation is carried out between the binary representation of each character of the plaintext and the corresponding character of the one-time pad (encryption key)
Why is the file size doubled for stereo sound
Two channels are recorded for left and right
Why a MIDI file is generally smaller than a digital audio file
Stores instructions rather than sound recordings therefore it doesn’t need to store thousands of digital samples representing sound waveforms
Differences in playback quality between MIDI and digital audio
MIDI depends on the synthesiser used while digital audio is generally consistent across devices