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.
- int QUALITY_1080P Quality level corresponding to the 1080p (1920 x 1080) resolution.
- int QUALITY_480P Quality level corresponding to the 480p (720 x 480) resolution.
- int QUALITY_720P Quality level corresponding to the 720p (1280 x 720) resolution.
- int QUALITY_CIF Quality level corresponding to the cif (352 x 288) resolution.
- int QUALITY_HIGH Quality level corresponding to the highest available resolution.
- int QUALITY_LOW Quality level corresponding to the lowest available resolution.
- int QUALITY_QCIF Quality level corresponding to the qcif (176 x 144) resolution.
- 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