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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool inter_layer_predicted; // Frame is dependent on directly lower spatial | 61 bool inter_layer_predicted; // Frame is dependent on directly lower spatial |
62 // layer frame. | 62 // layer frame. |
63 uint8_t gof_idx; | 63 uint8_t gof_idx; |
64 | 64 |
65 // SS data. | 65 // SS data. |
66 size_t num_spatial_layers; | 66 size_t num_spatial_layers; |
67 bool spatial_layer_resolution_present; | 67 bool spatial_layer_resolution_present; |
68 uint16_t width[kMaxVp9NumberOfSpatialLayers]; | 68 uint16_t width[kMaxVp9NumberOfSpatialLayers]; |
69 uint16_t height[kMaxVp9NumberOfSpatialLayers]; | 69 uint16_t height[kMaxVp9NumberOfSpatialLayers]; |
70 GofInfoVP9 gof; | 70 GofInfoVP9 gof; |
| 71 |
| 72 // Frame reference data |
| 73 uint8_t num_ref_pics; |
| 74 uint16_t p_diff[kMaxVp9RefPics]; |
71 }; | 75 }; |
72 | 76 |
73 struct CodecSpecificInfoGeneric { | 77 struct CodecSpecificInfoGeneric { |
74 uint8_t simulcast_idx; | 78 uint8_t simulcast_idx; |
75 }; | 79 }; |
76 | 80 |
77 struct CodecSpecificInfoH264 {}; | 81 struct CodecSpecificInfoH264 {}; |
78 | 82 |
79 union CodecSpecificInfoUnion { | 83 union CodecSpecificInfoUnion { |
80 CodecSpecificInfoGeneric generic; | 84 CodecSpecificInfoGeneric generic; |
81 CodecSpecificInfoVP8 VP8; | 85 CodecSpecificInfoVP8 VP8; |
82 CodecSpecificInfoVP9 VP9; | 86 CodecSpecificInfoVP9 VP9; |
83 CodecSpecificInfoH264 H264; | 87 CodecSpecificInfoH264 H264; |
84 }; | 88 }; |
85 | 89 |
86 // 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 |
87 // 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 |
88 // in the copy-constructor of VCMEncodedFrame. | 92 // in the copy-constructor of VCMEncodedFrame. |
89 struct CodecSpecificInfo | 93 struct CodecSpecificInfo |
90 { | 94 { |
91 VideoCodecType codecType; | 95 VideoCodecType codecType; |
92 CodecSpecificInfoUnion codecSpecific; | 96 CodecSpecificInfoUnion codecSpecific; |
93 }; | 97 }; |
94 | 98 |
95 } // namespace webrtc | 99 } // namespace webrtc |
96 | 100 |
97 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_VIDEO_CODEC_INTERFACE_H | 101 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_VIDEO_CODEC_INTERFACE_H |
OLD | NEW |