**This is an old revision of the document!**
Aufgabe 1: Speicherbedarf für Fotos
Ein Foto hat eine Auflösung von 12 Megapixeln und wird im JPEG-Format gespeichert, das eine durchschnittliche Kompressionsrate von 10:1 hat. Es wird eine Farbtiefe von 8 Bit je Farbkanal verwendet
- Geben Sie eine mögliche Auflösung an (Pixel Breite x Pixel Höhe)
- Berechnen Sie den Speicherbedarf für ein Foto in Megabyte (MB) und Mebibyte (MiB)
Lösung:
- Anzahl der Pixel: 4000 x 3000 = 12.000.000 Pixel
- Speicherbedarf pro Pixel (unkomprimiert): 3 Byte
- Gesamter Speicherbedarf (unkomprimiert): 12.000.000 x 3 = 36.000.000 Byte
- Kompressionsrate: 10:1
- Gesamter Speicherbedarf (komprimiert): 36.000.000/ 10 = 3.600.000 Byte
- Umrechnung in Megabyte: 3.600.000 / 1.024 / 1024 = 3,43 MiB
Der Speicherbedarf für ein Foto beträgt etwa 3,43 MiB.