0% found this document useful (0 votes)
8 views1 page

Data Storage

The document discusses data storage measurements and units like bits, bytes, kilobytes, megabytes, and how to calculate the file size of images and sounds. It provides formulas to calculate uncompressed image and sound file sizes in bytes based on attributes like width, height, sample rate, and length.

Uploaded by

Umer Farooq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Data Storage

The document discusses data storage measurements and units like bits, bytes, kilobytes, megabytes, and how to calculate the file size of images and sounds. It provides formulas to calculate uncompressed image and sound file sizes in bytes based on attributes like width, height, sample rate, and length.

Uploaded by

Umer Farooq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Science 2210/0478 (Notes)

Chapter: 1

Topic: Data Storage and Measurements

Understanding Data Storage Measurements


Data storage is measured using various units, based on binary (powers of 2) or decimal (powers
of 10) systems. For this class, we will focus on binary-based units:

Bit: The smallest unit of data storage, representing a single binary digit (0 or 1).
Nibble: A group of 4 bits.
Byte: A group of 8 bits.
Kibibyte (KiB): 1 KiB = 1,024 bytes.
Mebibyte (MiB): 1 MiB = 1,024 KiB.
Gibibyte (GiB): 1 GiB = 1,024 MiB.
Tebibyte (TiB): 1 TiB = 1,024 GiB.
Pebibyte (PiB): 1 PiB = 1,024 TiB.
Exbibyte (EiB): 1 EiB = 1,024 PiB.

These units are used to measure the size of data storage devices or digital files.

Calculating File Size for Image and Sound Files:


Image File Size: To calculate the file size of an uncompressed image, use the formula:

File size (in bytes) = Image Width (pixels) x Image Height (pixels) x Color Depth (bits per pixel) / 8

Convert the file size to the desired units (e.g., KiB, MiB) by dividing by the appropriate power of
1024.

Sound File Size: To calculate the file size of an uncompressed sound file, use the formula:

File size (in bytes) = Sample Rate (samples per second) x Sample Resolution (bits per sample) x
Length of Track (seconds) / 8

Convert the file size to the desired units as before.

Page 1 of 1

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy