Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: modules/include/module_common_types.h

Issue 2951033003: [EXPERIMENTAL] Generic stereo codec with index header sending single frames
Patch Set: Rebase and add external codec support. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/engine/webrtcvideoengine.cc ('k') | modules/rtp_rtcp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/include/module_common_types.h
diff --git a/modules/include/module_common_types.h b/modules/include/module_common_types.h
index bc5c347a4a93baadca7a294b8bf4b18d60e6697b..8e2292388ca12273d3cfe19f42687f69250fa4d8 100644
--- a/modules/include/module_common_types.h
+++ b/modules/include/module_common_types.h
@@ -38,19 +38,27 @@ struct RTPAudioHeader {
size_t channel; // number of channels 2 = stereo
};
-union RTPVideoTypeHeader {
- RTPVideoHeaderVP8 VP8;
- RTPVideoHeaderVP9 VP9;
- RTPVideoHeaderH264 H264;
-};
-
enum RtpVideoCodecTypes {
kRtpVideoNone,
kRtpVideoGeneric,
+ kRtpVideoStereo,
kRtpVideoVp8,
kRtpVideoVp9,
kRtpVideoH264
};
+
+struct RTPVideoStereoInfo {
+ RtpVideoCodecTypes stereoCodecType;
+ uint8_t frameIndex;
+ uint8_t frameCount;
+ uint64_t pictureIndex;
+};
+
+union RTPVideoTypeHeader {
+ RTPVideoHeaderVP8 VP8;
+ RTPVideoHeaderVP9 VP9;
+ RTPVideoHeaderH264 H264;
+};
// Since RTPVideoHeader is used as a member of a union, it can't have a
// non-trivial default constructor.
struct RTPVideoHeader {
@@ -69,7 +77,9 @@ struct RTPVideoHeader {
// this frame, 0 if not using simulcast.
RtpVideoCodecTypes codec;
RTPVideoTypeHeader codecHeader;
+ RTPVideoStereoInfo stereoInfo;
};
+
union RTPTypeHeader {
RTPAudioHeader Audio;
RTPVideoHeader Video;
« no previous file with comments | « media/engine/webrtcvideoengine.cc ('k') | modules/rtp_rtcp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698