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

Side by Side Diff: modules/video_coding/include/video_codec_interface.h

Issue 2951033003: [EXPERIMENTAL] Generic stereo codec with index header sending single frames
Patch Set: Rebase and add external codec support. Created 3 years, 2 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 unified diff | Download patch
« no previous file with comments | « modules/video_coding/include/video_codec_initializer.h ('k') | modules/video_coding/packet.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 H264PacketizationMode packetization_mode; 73 H264PacketizationMode packetization_mode;
74 }; 74 };
75 75
76 union CodecSpecificInfoUnion { 76 union CodecSpecificInfoUnion {
77 CodecSpecificInfoGeneric generic; 77 CodecSpecificInfoGeneric generic;
78 CodecSpecificInfoVP8 VP8; 78 CodecSpecificInfoVP8 VP8;
79 CodecSpecificInfoVP9 VP9; 79 CodecSpecificInfoVP9 VP9;
80 CodecSpecificInfoH264 H264; 80 CodecSpecificInfoH264 H264;
81 }; 81 };
82 82
83 struct StereoInfo {
84 VideoCodecType stereoCodecType;
85 uint8_t frameIndex;
86 uint8_t frameCount;
87 uint64_t pictureIndex;
88 };
89
83 // Note: if any pointers are added to this struct or its sub-structs, it 90 // Note: if any pointers are added to this struct or its sub-structs, it
84 // must be fitted with a copy-constructor. This is because it is copied 91 // must be fitted with a copy-constructor. This is because it is copied
85 // in the copy-constructor of VCMEncodedFrame. 92 // in the copy-constructor of VCMEncodedFrame.
86 struct CodecSpecificInfo { 93 struct CodecSpecificInfo {
87 CodecSpecificInfo() : codecType(kVideoCodecUnknown), codec_name(nullptr) {} 94 CodecSpecificInfo() : codecType(kVideoCodecUnknown), codec_name(nullptr) {}
88 VideoCodecType codecType; 95 VideoCodecType codecType;
89 const char* codec_name; 96 const char* codec_name;
90 CodecSpecificInfoUnion codecSpecific; 97 CodecSpecificInfoUnion codecSpecific;
98 StereoInfo stereoInfo;
91 }; 99 };
92 100
93 } // namespace webrtc 101 } // namespace webrtc
94 102
95 #endif // MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INTERFACE_H_ 103 #endif // MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INTERFACE_H_
OLDNEW
« no previous file with comments | « modules/video_coding/include/video_codec_initializer.h ('k') | modules/video_coding/packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698