| OLD | NEW |
| 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 Loading... |
| 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 StereoInfo() : num_frames(0) {} |
| 85 VideoCodecType stereoCodecType; |
| 86 uint8_t num_frames; |
| 87 const EncodedImage* encoded_images[kMaxNumberOfStereoFrames]; |
| 88 const CodecSpecificInfo* codec_specific_infos[kMaxNumberOfStereoFrames]; |
| 89 const RTPFragmentationHeader* fragmentations[kMaxNumberOfStereoFrames]; |
| 90 }; |
| 91 |
| 83 // Note: if any pointers are added to this struct or its sub-structs, it | 92 // 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 | 93 // must be fitted with a copy-constructor. This is because it is copied |
| 85 // in the copy-constructor of VCMEncodedFrame. | 94 // in the copy-constructor of VCMEncodedFrame. |
| 86 struct CodecSpecificInfo { | 95 struct CodecSpecificInfo { |
| 87 CodecSpecificInfo() : codecType(kVideoCodecUnknown), codec_name(nullptr) {} | 96 CodecSpecificInfo() : codecType(kVideoCodecUnknown), codec_name(nullptr) {} |
| 88 VideoCodecType codecType; | 97 VideoCodecType codecType; |
| 89 const char* codec_name; | 98 const char* codec_name; |
| 90 CodecSpecificInfoUnion codecSpecific; | 99 CodecSpecificInfoUnion codecSpecific; |
| 100 StereoInfo stereoInfo; |
| 91 }; | 101 }; |
| 92 | 102 |
| 93 } // namespace webrtc | 103 } // namespace webrtc |
| 94 | 104 |
| 95 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INTERFACE_H_ | 105 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INTERFACE_H_ |
| OLD | NEW |