summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/avc_utils.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-11-15 09:01:13 -0800
committerAndreas Huber <andih@google.com>2010-11-15 09:01:13 -0800
commitbfd41f33c77c66ead48ee378e4ea4b7bfa5fca1f (patch)
tree9ce0da90930ffeabafb3dd8e6151aba696281cc2 /media/libstagefright/include/avc_utils.h
parent2d71233de5450f1b128c8149fdbdf39b937f3cb8 (diff)
downloadframeworks_av-bfd41f33c77c66ead48ee378e4ea4b7bfa5fca1f.zip
frameworks_av-bfd41f33c77c66ead48ee378e4ea4b7bfa5fca1f.tar.gz
frameworks_av-bfd41f33c77c66ead48ee378e4ea4b7bfa5fca1f.tar.bz2
Refactor h.264 profile/level support into avc_utils.
Change-Id: Idb33636dc723aa79ea0122dc3582109ada4b1358 related-to-bug: 2368598
Diffstat (limited to 'media/libstagefright/include/avc_utils.h')
-rw-r--r--media/libstagefright/include/avc_utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/media/libstagefright/include/avc_utils.h b/media/libstagefright/include/avc_utils.h
index 62cfc36..3aeb07f 100644
--- a/media/libstagefright/include/avc_utils.h
+++ b/media/libstagefright/include/avc_utils.h
@@ -24,6 +24,17 @@ namespace android {
struct ABitReader;
+enum {
+ kAVCProfileBaseline = 0x42,
+ kAVCProfileMain = 0x4d,
+ kAVCProfileExtended = 0x58,
+ kAVCProfileHigh = 0x64,
+ kAVCProfileHigh10 = 0x6e,
+ kAVCProfileHigh422 = 0x7a,
+ kAVCProfileHigh444 = 0xf4,
+ kAVCProfileCAVLC444Intra = 0x2c
+};
+
void FindAVCDimensions(
const sp<ABuffer> &seqParamSet, int32_t *width, int32_t *height);
@@ -39,6 +50,8 @@ sp<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit);
bool IsIDR(const sp<ABuffer> &accessUnit);
+const char *AVCProfileToString(uint8_t profile);
+
} // namespace android
#endif // AVC_UTILS_H_