summaryrefslogtreecommitdiffstats
path: root/include
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
commit9d619542bea7d4c376a5a8b4a55c795a796adef3 (patch)
tree925230ba48a7fec87d014def9eee6cdc317b004b /include
parent4af0dfd6cbc13fa6a89ec1430cbe6f619cd64d8a (diff)
downloadframeworks_base-9d619542bea7d4c376a5a8b4a55c795a796adef3.zip
frameworks_base-9d619542bea7d4c376a5a8b4a55c795a796adef3.tar.gz
frameworks_base-9d619542bea7d4c376a5a8b4a55c795a796adef3.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')
-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);