Filesystem Hierarchy Standard FHS

**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

  1. Geben Sie eine mögliche Auflösung an (Pixel Breite x Pixel Höhe)
  2. Berechnen Sie den Speicherbedarf für ein Foto in Megabyte (MB) und Mebibyte (MiB)

Lösung:

  1. Anzahl der Pixel: 4000 x 3000 = 12.000.000 Pixel
  2. Speicherbedarf pro Pixel (unkomprimiert): 3 Byte
  3. Gesamter Speicherbedarf (unkomprimiert): 12.000.000 x 3 = 36.000.000 Byte
  4. Kompressionsrate: 10:1
  5. Gesamter Speicherbedarf (komprimiert): 36.000.000/ 10 = 3.600.000 Byte
  6. Umrechnung in Megabyte: 3.600.000 / 1.024 / 1024 = 3,43 MiB

Der Speicherbedarf für ein Foto beträgt etwa 3,43 MiB.