martedì 25 novembre 2014

G.Files

Image File Format:

15.   How many Bits do you need to store a 1920x1080 image if it is monochrome?
1920x1080x1=2.073.600 bit

16.    Now assume that it has 256 different colors. What's the size?
1920x1080x3=6.220.800 bit

17.   What is true color?
True color is a method to representing and storing graphical image information in a RGB color space. True color supports 24-bit for three RGB colors. For each pixel, generally one byte is used for each channel while the fourth byte (if present) is being used either as an alpha channel, data, or simply ignored.

18.   Differentiate between JPG, GIF, PNG and BMP. What about compression?
JPG: method of lossy compression for digital images.
GIF: format that supports up to 8 bit per pixel for each image, allowing a single image to reference its own palette of up to 256 different colours chosen from the 24bit RGB color space. It also supports animations. GIF images are compressed using the Lempel-Ziv-Welch (LZW) lossless data compression technique to reduce the file size without degraing the visual quality. 
PNG: is a raster graphics file format that supports lossless data compression. PNG was created as an improved replacement for GIF formats. PNG supports palette-based images, greyscale images and full-color non-palette-based RGB[A] images.
BMP:  is a raster graphics image file format used to store bitmap digital images. The BMP file format is capable of storing 2D digital images of arbitrary width, height, and resolution, both monochrome and color, in various color depths, and optionally with data compression, alpha channels, and color profiles. Many BMP files can be considerably compressed with lossless data compression algorithms such as ZIP because they contain redundant data.

19. Read and summarize: http://www.diffen.com/difference/JPEG_vs_PNG 
JPEGs and PNGs are raster image file formats, but only PNG use lossless data compression. This means the quality of a PNG will always be better than that of a JPEG. Neither format supports animation, layers or HDR, but PNG supports image transparency.
Photography: JPEG for storing the image; PNG in post production.
Web: combination of both. JPEG is used for large images (photos or website background); PNG is used for small images, in particularly for images generated with computer graphics.
Compression: JPEG uses a DCT based lossy compression method that sacrifices quality in favour of smaller file sizes; PNG priorizes quality and uses the lossless deflate compression algorithm.
Popularity: PNG is most popular but JPEG is the majority of the web image.

20.   How can you reduce image storage sizes? Show it by example.
Resizing the image
Reducing colors
Reducing quality


Sound and video formats


21.   Differentiate between WAV, WMA lossless and MP3.
WAV: Microsoft and IBM audio file format standard for storing an audio bitstream on PCs. Compatible with all the OS. A WAV file can contain compressed audio.
WMA: an audio data compression technology developed by Microsoft. The name can be used to refer        to its audio file format or its audio codecs.
WMA consists of four distinct codecs. The original WMA codec, known simply as WMA, was conceived as a competitor to the popular MP3 and RealAudio codecs. WMA Pro, a newer and more advanced codec, supports multichannel and high resolution audio. A lossless codec, WMA Lossless, compresses audio data without loss of audio fidelity (the regular WMA format is lossy). WMA Voice, targeted at voice content, applies compression using a range of low bit rates.
MP3: audio coding format for digital audio which uses a form of lossy data compression. The use in MP3 of a lossy compression algorithm is designed to greatly reduce the amount of data required to represent the audio recording and still sound like a faithful reproduction of the original uncompressed audio for most listeners.

22.   Read and summarize: http://www.diffen.com/difference/.avi_vs_.mov
AVI =Windows, abandoned for the WMV; has no native support for modern MPEG-4; not contain pixel aspect ratio information; universal portability (can be played on almost any computer or device).
MOV =Mac, QuickTime (contains one or more tracks with particular type of data: audio, video, effects, or text). Each track either contains a digitally-encoded media stream (using a specific codec) or a data reference to the media stream located in another file. Tracks are maintained in a hierarchical data structure; is particularly suited for editing.

23.   What is the difference between MPEG-3 and MP3?
MPEG-3 = video codec
MP3 = audio codec

24.   Read and summarize: http://www.diffen.com/difference/MP3_vs_MP4
MP3: only for audio files; removes sounds in the recording that are outside the normal human hearing range using pulse code modulation, a less space consuming and simple method of modulation and psychoacoustic models. In some ways, what JPEG is to images, MP3 is to audio.
MP4: multimedia container that support not just audio and video but also text and images

25.   What is a codec?
A codec is a device or computerprogram capable of encoding or decoding a digital data stream or signal.

Nessun commento:

Posta un commento