From 8bb5603cc735315c8691dc9b7a81b4ad4d6e253e Mon Sep 17 00:00:00 2001 From: Nipun Kwatra Date: Thu, 9 Sep 2010 16:25:08 -0700 Subject: Adding hasProfile. - Added hasProfile to CamcorderProfile and JNI. - Added hasCamcorderProfile to MediaProfiles. - using android.hardware.Camera.CAMERA_ID_DEFAULT for default camera in get(). Change-Id: Ib57bb49ae79492d7cbc0ec6c7b6efcbf74f80013 --- include/media/MediaProfiles.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/media/MediaProfiles.h') diff --git a/include/media/MediaProfiles.h b/include/media/MediaProfiles.h index df64ce8..183bb1e 100644 --- a/include/media/MediaProfiles.h +++ b/include/media/MediaProfiles.h @@ -79,6 +79,12 @@ public: camcorder_quality quality) const; /** + * Returns true if a profile for the given camera at the given quality exists, + * or false if not. + */ + bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; + + /** * Returns the output file formats supported. */ Vector getOutputFileFormats() const; @@ -263,6 +269,8 @@ private: Vector mLevels; }; + int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; + // Debug static void logVideoCodec(const VideoCodec& codec); static void logAudioCodec(const AudioCodec& codec); -- cgit v1.1