Text, Sound and Images Quick Revision
Character Sets and Text Representation
- A character set is a defined list of characters recognized and processed by computer hardware and software, enabling computers to interpret and store human-readable text.
- Computers represent characters numerically using binary encoding schemes.
- Primary standard character sets include standard ASCII, Extended ASCII, and Unicode.
- Architecture and Capacity:
- Standard ASCII uses a 7-bit binary encoding system.
- It can represent a total of 128 unique characters.
- Character codes range from 0 to 127 in denary, corresponding to 00 to 7F in hexadecimal notation.
- Encoded Character Types:
- Letters: Uppercase (A–Z) and lowercase (a–z).
- Digits: Numerical characters (0–9).
- Punctuation marks and special characters.
- Control characters: Non-printable command codes located from code 0 to code 31 (for example, carriage return and line feed).
- Case Conversion Mechanism:
- Uppercase and lowercase representations of characters differ by exactly one specific bit position.
- The 6th bit toggles between 1 and 0 when converting between lowercase and uppercase.
- This structural property enables binary-level case conversion operations to be performed efficiently.
- Grouped and Sequential Storage:
- Alphanumeric character blocks (such as a–z and 0–9) are allocated in continuous sequential numerical order.
- Sequential ordering significantly optimizes the speed of algorithmic sorting and textual processing.
Extended ASCII
- Architecture and Expansion:
- Extended ASCII increases the character code length to 8 bits.
- An 8-bit structure supports 256 unique characters.
- Code values range from 0 to 255 in denary, corresponding to 00 to FF in hexadecimal notation.
- It appends an additional 128 character positions (spanning codes 128 to 255) beyond standard ASCII.
- Included Symbols and Functional Use:
- Accommodates non-English Latin alphabet characters and accents (such as n~ and eˊ).
- Incorporates specialized graphical characters and mathematical/special symbols.
- Key Advantages:
- Simple and computationally efficient.
- Requires minimal digital storage space (1 byte per character).
- Straightforward to implement across computing systems.
- Maintains full backwards compatibility with legacy hardware and older software architectures.
- Well-suited for straightforward English text processing.
- Key Disadvantages:
- Highly limited character capacity (256 characters maximum).
- Lacks support for non-Latin and complex international writing scripts.
- Cannot accommodate modern digital symbols, glyphs, or emojis.
- Outdated for modern international computing and cross-border digital communication.
- Inadequate for globalized, modern software applications.
Unicode
- Features and Scope:
- Developed as a comprehensive, modern character set capable of representing all written languages across the globe.
- Maintains full backwards compatibility with ASCII by matching the first 128 Unicode code points identically with the ASCII character set.
- Utilizes encoding lengths of 16 bits or more.
- Capable of representing in excess of 65,000 characters, extending into hundreds of thousands of symbols, historic scripts, and emojis.
- Universally adopted across modern operating systems, web pages, internet protocols, and database management systems.
- Key Advantages:
- Provides multilingual support for diverse global languages within a single unified standard.
- Substantially larger character capacity than legacy standards.
- Established as the global standard across disparate computing platforms and hardware architectures.
- Robust handling of non-standard symbols, mathematical notations, and graphical emojis.
- Seamless backwards compatibility with base ASCII systems.
- Key Disadvantages:
- Imposes larger storage overhead per character compared to 7-bit and 8-bit legacy encodings.
- Computationally more complex to parse, decode, and process.
- Can introduce compatibility hurdles when interfacing with legacy or constrained hardware systems.
- Can create performance overhead in data-intensive storage or transmission tasks.
- Introduces potential implementation complexity due to multiple underlying encoding formats (such as UTF-8, UTF-16, and UTF-32).
Bitmap Images and Visual Representation
- Foundational Structure:
- A bitmap image is composed of an array of discrete picture elements termed pixels.
- Pixels are organized in a two-dimensional (2D) matrix or grid.
- Every single pixel is represented internally by a binary sequence that defines its visual appearance.
- Colour Depth and Bit Allocations:
- Colour depth specifies the exact number of binary bits allocated to represent the colour of each individual pixel.
- 1 bit per pixel yields 2 possible colour states (21=2): binary 0 designates black, while binary 1 designates white.
- 2 bits per pixel yields 4 possible colour states (22=4).
- 3 bits per pixel yields 8 possible colour states (23=8).
- 8-bit colour depth yields 256 possible colour states (28=256).
- 24-bit colour depth yields over 16 million possible colour states (224=16,777,216 colours), often referred to as true colour.
- Image Resolution:
- Defined as the total count of pixels spanning an image, calculated as width multiplied by height:
Image Resolution=Width×Height
- Representative calculation: An image measuring 4096 pixels wide by 3072 pixels high yields a resolution of:
4096×3072=12,582,912pixels
- Visual fidelity relationship: Elevated resolution provides greater visual detail and clarity; reduced resolution degrades detail but decreases file size.
High Resolution and Colour Depth Impacts
- Direct Technical Effects:
- Higher resolutions generate a higher overall pixel count across the image grid.
- Higher colour depths allocate a higher quantity of binary bits to every pixel.
- The compounding of increased pixel count and bit depth causes a substantial increase in overall image file size.
- Operational Drawbacks:
- Expanded file sizes demand significantly greater secondary storage capacity.
- Storage media can hold fewer total image files.
- Image transmission over networks suffers from slower download, upload, and transfer speeds.
File Storage Architecture for Digital Images
- Step-by-Step Internal Representation:
- An image file is assembled from a finite collection of pixels.
- Each individual pixel stores exactly one colour value.
- The entire image possesses fixed spatial dimensions defined as a set quantity of pixels wide by pixels high.
- Every specific colour in the image’s palette corresponds to a unique numerical colour code and binary representation.
- The computer stores the binary colour value of each pixel sequentially in memory and on disk.
- Image Metadata Requirements:
- Image files contain embedded metadata that informs software how to unpack, render, and display the stored visual data.
- Metadata parameters explicitly specify image properties, primarily resolution dimensions and colour depth.
Fundamentals of Sound and Digitization
- Physical Properties of Sound:
- Sound propagates physically through air as mechanical vibrations.
- Human auditory structures detect these pressure fluctuations and interpret them as audible sound.
- A sound wave is defined by three fundamental physical characteristics:
- Frequency: The rate at which the sound wave vibrates, which dictates pitch.
- Wavelength: The physical spatial distance separating consecutive wave peaks.
- Amplitude: The physical height or intensity of the sound wave, which dictates loudness.
- Analogue Nature of Acoustic Signals:
- Natural sound waves are continuous, analogue physical phenomena.
- Digital computer processors cannot natively process or store continuous analogue signals.
- Sound must undergo digital sampling to convert continuous acoustic waves into discrete binary records.
- Analogue-to-Digital Conversion (ADC) Process:
- Conversion requires dedicated Analogue to Digital Converter (ADC) hardware.
- The ADC measures the amplitude of the analogue sound wave at strictly timed, regular intervals.
- Each measured amplitude level is quantized and stored as an approximate binary numerical value.
Audio Sampling Metrics: Sampling Rate and Sampling Resolution
- Sampling Rate:
- Represents the total count of amplitude samples recorded per second during audio capture.
- Measured in Hertz (Hz).
- Standard audio benchmark: 44,100Hz corresponds to 44,100samples per second.
- Sampling Resolution (Bit Depth):
- Represents the total number of binary bits allocated to record the amplitude of each individual sample.
- Higher bit depth provides finer measurement gradations, yielding a more precise representation of wave amplitude.
- Audio Fidelity Relationship:
- Increasing either the sampling rate or the sampling bit depth produces a digital waveform that more closely mimics the original physical analogue sound wave.
- Benefits of High Sampling Rates and High Bit Depths:
- Superior perceived audio reproduction and sound quality.
- Expanded dynamic range, enabling capture of subtle acoustic variations from quietest to loudest tones.
- Marked reduction in quantization error and distortion, providing accurate audio reproduction.
- Drawbacks of High Sampling Rates and High Bit Depths:
- Exponentially larger audio file sizes.
- Extended network transmission, streaming, and download durations.
- Increased processing overhead on computer processors and elevated secondary storage consumption.
Technical Definitions Reference Guide
- ASCII Code: A standardized character set designed to represent all characters found on a standard keyboard alongside functional control codes.
- Character Set: A complete list of characters that have been defined by computer hardware and software, necessary for computer architectures to comprehend human-readable characters.
- Unicode: A universal character set engineered to represent all the languages of the world, whose initial 128 characters are entirely identical to the standard ASCII code.
- Sampling Resolution: The specific number of bits utilized to represent the amplitude of a sound wave in digital sound recording; universally referred to as bit depth.
- Bit Depth: The total number of bits assigned to encode the smallest individual data unit within a sound file.
- Colour Depth: The total number of bits assigned to encode and represent the colour value of an individual pixel.
- Sampling Rate: The total number of discrete sound samples captured per second during digital sound recording.
- Bitmap Image: A graphic image constructed from an organized matrix of discrete pixels.
- Pixel: Derived from the phrase "picture element"; represents the smallest indivisible visual element used to construct an image on an electronic display.
- Image Resolution: The dimensional count of pixels along the X-Y coordinates of an image, illustrated by an example dimension of 4096×3192pixels.
- Pixelated (Image): The visual degradation occurring when zooming into a bitmap image, where the density of pixels relative to viewing size is diminished to such an extent that individual constituent pixel blocks become visible.
- Pixel Density: The quantitative measurement of individual pixels packed within a single square inch of display surface.