summaryrefslogtreecommitdiff
path: root/common_types.h
diff options
context:
space:
mode:
authorstefan@webrtc.org <stefan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-04 12:42:07 +0000
committerstefan@webrtc.org <stefan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-04 12:42:07 +0000
commit2d4a80c05adffe07b48dc235475852450cd90568 (patch)
tree8be3d90f488a107bac7e54dbecc02ffea78c231e /common_types.h
parent65afbf3e1da598f94f47eb0c11fe2b668e4f30f4 (diff)
downloadwebrtc-2d4a80c05adffe07b48dc235475852450cd90568.tar.gz
Add boilerplate code for H.264.
R=mflodman@webrtc.org, niklas.enbom@webrtc.org Review URL: https://webrtc-codereview.appspot.com/17849005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6603 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'common_types.h')
-rw-r--r--common_types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common_types.h b/common_types.h
index 6892a83f..193e2818 100644
--- a/common_types.h
+++ b/common_types.h
@@ -587,10 +587,24 @@ struct VideoCodecVP8 {
}
};
+// H264 specific.
+struct VideoCodecH264
+{
+ VideoCodecProfile profile;
+ bool frameDroppingOn;
+ int keyFrameInterval;
+ // These are NULL/0 if not externally negotiated.
+ const uint8_t* spsData;
+ size_t spsLen;
+ const uint8_t* ppsData;
+ size_t ppsLen;
+};
+
// Video codec types
enum VideoCodecType
{
kVideoCodecVP8,
+ kVideoCodecH264,
kVideoCodecI420,
kVideoCodecRED,
kVideoCodecULPFEC,
@@ -601,6 +615,7 @@ enum VideoCodecType
union VideoCodecUnion
{
VideoCodecVP8 VP8;
+ VideoCodecH264 H264;
};