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 10 matching lines...) Expand all Loading... |
21 #include "webrtc/video_decoder.h" | 21 #include "webrtc/video_decoder.h" |
22 #include "webrtc/video_encoder.h" | 22 #include "webrtc/video_encoder.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 class RTPFragmentationHeader; // forward declaration | 26 class RTPFragmentationHeader; // forward declaration |
27 | 27 |
28 // Note: if any pointers are added to this struct, it must be fitted | 28 // Note: if any pointers are added to this struct, it must be fitted |
29 // with a copy-constructor. See below. | 29 // with a copy-constructor. See below. |
30 struct CodecSpecificInfoVP8 { | 30 struct CodecSpecificInfoVP8 { |
31 bool hasReceivedSLI; | |
32 uint8_t pictureIdSLI; | |
33 bool hasReceivedRPSI; | |
34 uint64_t pictureIdRPSI; | |
35 int16_t pictureId; // Negative value to skip pictureId. | 31 int16_t pictureId; // Negative value to skip pictureId. |
36 bool nonReference; | 32 bool nonReference; |
37 uint8_t simulcastIdx; | 33 uint8_t simulcastIdx; |
38 uint8_t temporalIdx; | 34 uint8_t temporalIdx; |
39 bool layerSync; | 35 bool layerSync; |
40 int tl0PicIdx; // Negative value to skip tl0PicIdx. | 36 int tl0PicIdx; // Negative value to skip tl0PicIdx. |
41 int8_t keyIdx; // Negative value to skip keyIdx. | 37 int8_t keyIdx; // Negative value to skip keyIdx. |
42 }; | 38 }; |
43 | 39 |
44 struct CodecSpecificInfoVP9 { | 40 struct CodecSpecificInfoVP9 { |
45 bool has_received_sli; | |
46 uint8_t picture_id_sli; | |
47 bool has_received_rpsi; | |
48 uint64_t picture_id_rpsi; | |
49 int16_t picture_id; // Negative value to skip pictureId. | 41 int16_t picture_id; // Negative value to skip pictureId. |
50 | 42 |
51 bool inter_pic_predicted; // This layer frame is dependent on previously | 43 bool inter_pic_predicted; // This layer frame is dependent on previously |
52 // coded frame(s). | 44 // coded frame(s). |
53 bool flexible_mode; | 45 bool flexible_mode; |
54 bool ss_data_available; | 46 bool ss_data_available; |
55 | 47 |
56 int tl0_pic_idx; // Negative value to skip tl0PicIdx. | 48 int tl0_pic_idx; // Negative value to skip tl0PicIdx. |
57 uint8_t temporal_idx; | 49 uint8_t temporal_idx; |
58 uint8_t spatial_idx; | 50 uint8_t spatial_idx; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 struct CodecSpecificInfo { | 86 struct CodecSpecificInfo { |
95 CodecSpecificInfo() : codecType(kVideoCodecUnknown), codec_name(nullptr) {} | 87 CodecSpecificInfo() : codecType(kVideoCodecUnknown), codec_name(nullptr) {} |
96 VideoCodecType codecType; | 88 VideoCodecType codecType; |
97 const char* codec_name; | 89 const char* codec_name; |
98 CodecSpecificInfoUnion codecSpecific; | 90 CodecSpecificInfoUnion codecSpecific; |
99 }; | 91 }; |
100 | 92 |
101 } // namespace webrtc | 93 } // namespace webrtc |
102 | 94 |
103 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INTERFACE_H_ | 95 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INTERFACE_H_ |
OLD | NEW |