Thursday, April 18, 2013

[android help] Why CamcorderProfiles doesn't define the whole quality in android source code?


As we know , android provide the CamcorderProfile class in frameworks/base/media/java/android/media/CamcorderProfiles.java and the quality levels.


The following data is from android SDK.


  1. int QUALITY_1080P Quality level corresponding to the 1080p (1920 x 1080) resolution.

  2. int QUALITY_480P Quality level corresponding to the 480p (720 x 480) resolution.

  3. int QUALITY_720P Quality level corresponding to the 720p (1280 x 720) resolution.

  4. int QUALITY_CIF Quality level corresponding to the cif (352 x 288) resolution.

  5. int QUALITY_HIGH Quality level corresponding to the highest available resolution.

  6. int QUALITY_LOW Quality level corresponding to the lowest available resolution.

  7. int QUALITY_QCIF Quality level corresponding to the qcif (176 x 144) resolution.

  8. int QUALITY_QVGA Quality level corresponding to the QVGA (320x240) resolution.

There are eight levels.


The definition of the levels is in frameworks/av/media/libmedia/MediaProfiles.cpp . But I can only find little implemetion about createDefaultCamcorder action.


Such as:


/static/ MediaProfiles::CamcorderProfile* MediaProfiles::createDefaultCamcorderQcifProfile(camcorder_quality quality){}


/static/ MediaProfiles::CamcorderProfile* MediaProfiles::createDefaultCamcorderCifProfile(camcorder_quality quality){}


There are only two levels . So I want to know , why google don't implement the whole 8 levels? Or I had missed something ?


I am using Android 4.1.


Thanks.



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...