diff options
author | James Dong <jdong@google.com> | 2010-02-23 17:21:44 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-02-24 18:10:12 -0800 |
commit | 9b433f0b654d32530b0b48a7a653216ae0bb94d8 (patch) | |
tree | 164555367b9006e2212e0b63f608fc228b711417 /include/media | |
parent | 9a56aaf12b462a064e81e02386eca8a1e77fe737 (diff) | |
download | frameworks_base-9b433f0b654d32530b0b48a7a653216ae0bb94d8.zip frameworks_base-9b433f0b654d32530b0b48a7a653216ae0bb94d8.tar.gz frameworks_base-9b433f0b654d32530b0b48a7a653216ae0bb94d8.tar.bz2 |
Image encoding settings java API through xml configuration file
- I decided to completely remove jpeg decoding related stuff from this change
I think that setting is better off if it is specified by the system properties.
We don't have to include MediaProfiles.h header in skia files
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/MediaProfiles.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/media/MediaProfiles.h b/include/media/MediaProfiles.h index 3f253f9..eb96d20 100644 --- a/include/media/MediaProfiles.h +++ b/include/media/MediaProfiles.h @@ -52,6 +52,7 @@ public: * or -1 if error. * * Supported param name are: + * duration - the recording duration. * file.format - output file format. see mediarecorder.h for details * vid.codec - video encoder. see mediarecorder.h for details. * aud.codec - audio encoder. see mediarecorder.h for details. @@ -120,6 +121,16 @@ public: */ Vector<audio_decoder> getAudioDecoders() const; + /** + * Returns the number of image encoding quality levels supported. + */ + Vector<int> getImageEncodingQualityLevels() const; + + /** + * Returns the maximum amount of memory in bytes we can use for decoding a JPEG file. + */ + int getImageDecodingMaxMemory() const; + private: MediaProfiles& operator=(const MediaProfiles&); // Don't call me MediaProfiles(const MediaProfiles&); // Don't call me @@ -257,6 +268,8 @@ private: static VideoEncoderCap* createVideoEncoderCap(const char **atts); static AudioEncoderCap* createAudioEncoderCap(const char **atts); static CamcorderProfile* createCamcorderProfile(const char **atts); + static int getImageEncodingQualityLevel(const char **atts); + static int getImageDecodingMaxMemory(const char **atts); // Customized element tag handler for parsing the xml configuration file. static void startElementHandler(void *userData, const char *name, const char **atts); @@ -271,6 +284,8 @@ private: static void createDefaultVideoDecoders(MediaProfiles *profiles); static void createDefaultAudioDecoders(MediaProfiles *profiles); static void createDefaultEncoderOutputFileFormats(MediaProfiles *profiles); + static void createDefaultImageEncodingQualityLevels(MediaProfiles *profiles); + static void createDefaultImageDecodingMaxMemory(MediaProfiles *profiles); static VideoEncoderCap* createDefaultH263VideoEncoderCap(); static VideoEncoderCap* createDefaultM4vVideoEncoderCap(); static AudioEncoderCap* createDefaultAmrNBEncoderCap(); @@ -295,6 +310,8 @@ private: Vector<AudioDecoderCap*> mAudioDecoders; Vector<VideoDecoderCap*> mVideoDecoders; Vector<output_format> mEncoderOutputFileFormats; + Vector<int> mImageEncodingQualityLevels; + int mImageDecodingMaxMemory; }; }; // namespace android |