summaryrefslogtreecommitdiffstats
path: root/include/media/MediaProfiles.h
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-09-09 16:25:08 -0700
committerNipun Kwatra <nkwatra@google.com>2010-09-10 14:22:11 -0700
commit8bb5603cc735315c8691dc9b7a81b4ad4d6e253e (patch)
treee1b026cd15a4bf8cba990adee7c12969a4e55bd6 /include/media/MediaProfiles.h
parentc0a84782589eececdfa7e723e8aa0e572d0d79f5 (diff)
downloadframeworks_av-8bb5603cc735315c8691dc9b7a81b4ad4d6e253e.zip
frameworks_av-8bb5603cc735315c8691dc9b7a81b4ad4d6e253e.tar.gz
frameworks_av-8bb5603cc735315c8691dc9b7a81b4ad4d6e253e.tar.bz2
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
Diffstat (limited to 'include/media/MediaProfiles.h')
-rw-r--r--include/media/MediaProfiles.h8
1 files changed, 8 insertions, 0 deletions
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<output_format> getOutputFileFormats() const;
@@ -263,6 +269,8 @@ private:
Vector<int> mLevels;
};
+ int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const;
+
// Debug
static void logVideoCodec(const VideoCodec& codec);
static void logAudioCodec(const AudioCodec& codec);