top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In how many ways the compression of file can be possible?

+1 vote
397 views
In how many ways the compression of file can be possible?
posted May 23, 2014 by Anuradha Tabyal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Lossy and Lossless Compression:
Because it lets you recreate the original file exactly. All lossless compression is based on the idea of breaking a file into a "smaller" form for transmission or storage and then putting it back together on the other end so it can be used again.

Lossy compression works very differently. These programs simply eliminate "unnecessary" bits of information, tailoring the file so that it is smaller. This type of compression is used a lot for reducing the file size of bitmap pictures, which tend to be fairly bulky. To see how this works, let's consider how your computer might compress a scanned photograph.

A Lossless compression program can't do much with this type of file. While large parts of the picture may look the same -- the whole sky is blue, for example -- most of the individual pixels are a little bit different. To make this picture smaller without compromising the resolution, you have to change the color value for certain pixels. If the picture had a lot of blue sky, the program would pick one color of blue that could be used for every pixel. Then, the program rewrites the file so that the value for every sky pixel refers back to this information. If the compression scheme works well, you won't notice the change, but the file size will be significantly reduced.

Of course, with lossy compression, you can't get the original file back after it has been compressed. You're stuck with the compression program's reinterpretation of the original. For this reason, you can't use this sort of compression for anything that needs to be reproduced exactly, including software applications, databases and presidential inauguration speeches.

answer May 27, 2014 by Kuldeep Apte
Similar Questions
+2 votes

As per my knowledge -

MediaRecorder: supports only from Camera Preview. does not support from surface.
OMAXCodec: it supports surface.
MediaCodec: Introduced in 4.1 and supports from surface.

Now my Questions are ?

1) How to figure out which Codec is used in my device ?
2) Are all "mediaRecorder" , OMAXCodec, MediaCodec falls on which category "Software Encoders" or "hardware Encoders".
3) What is the software encoder that Android uses ?

...