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

Unified Diff: modules/include/module_common_types.h

Issue 3015663002: [Experiment] Alpha Channel Support
Patch Set: Remove Frame Matching On Sender Side 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 a75ed42fa0e7ebd42c2eb9112f9925a119362319..e8e39a88fb22dea6c6770e57ce863d6c0b40b8a3 100644
--- a/modules/include/module_common_types.h
+++ b/modules/include/module_common_types.h
@@ -37,19 +37,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 {
@@ -68,7 +76,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