| 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 25 matching lines...) Expand all Loading... |
| 36 int16_t pictureId; // Negative value to skip pictureId. | 36 int16_t pictureId; // Negative value to skip pictureId. |
| 37 bool nonReference; | 37 bool nonReference; |
| 38 uint8_t simulcastIdx; | 38 uint8_t simulcastIdx; |
| 39 uint8_t temporalIdx; | 39 uint8_t temporalIdx; |
| 40 bool layerSync; | 40 bool layerSync; |
| 41 int tl0PicIdx; // Negative value to skip tl0PicIdx. | 41 int tl0PicIdx; // Negative value to skip tl0PicIdx. |
| 42 int8_t keyIdx; // Negative value to skip keyIdx. | 42 int8_t keyIdx; // Negative value to skip keyIdx. |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 struct CodecSpecificInfoVP9 { | 45 struct CodecSpecificInfoVP9 { |
| 46 bool hasReceivedSLI; | 46 bool has_received_sli; |
| 47 uint8_t pictureIdSLI; | 47 uint8_t picture_id_sli; |
| 48 bool hasReceivedRPSI; | 48 bool has_received_rpsi; |
| 49 uint64_t pictureIdRPSI; | 49 uint64_t picture_id_rpsi; |
| 50 int16_t pictureId; // Negative value to skip pictureId. | 50 int16_t picture_id; // Negative value to skip pictureId. |
| 51 bool nonReference; | 51 |
| 52 uint8_t temporalIdx; | 52 bool inter_pic_predicted; // This layer frame is dependent on previously |
| 53 bool layerSync; | 53 // coded frame(s). |
| 54 int tl0PicIdx; // Negative value to skip tl0PicIdx. | 54 bool flexible_mode; |
| 55 int8_t keyIdx; // Negative value to skip keyIdx. | 55 bool ss_data_available; |
| 56 |
| 57 int tl0_pic_idx; // Negative value to skip tl0PicIdx. |
| 58 uint8_t temporal_idx; |
| 59 uint8_t spatial_idx; |
| 60 bool temporal_up_switch; |
| 61 bool inter_layer_predicted; // Frame is dependent on directly lower spatial |
| 62 // layer frame. |
| 63 uint8_t gof_idx; |
| 64 |
| 65 // SS data. |
| 66 size_t num_spatial_layers; |
| 67 bool spatial_layer_resolution_present; |
| 68 uint16_t width[kMaxVp9NumberOfSpatialLayers]; |
| 69 uint16_t height[kMaxVp9NumberOfSpatialLayers]; |
| 70 GofInfoVP9 gof; |
| 56 }; | 71 }; |
| 57 | 72 |
| 58 struct CodecSpecificInfoGeneric { | 73 struct CodecSpecificInfoGeneric { |
| 59 uint8_t simulcast_idx; | 74 uint8_t simulcast_idx; |
| 60 }; | 75 }; |
| 61 | 76 |
| 62 struct CodecSpecificInfoH264 {}; | 77 struct CodecSpecificInfoH264 {}; |
| 63 | 78 |
| 64 union CodecSpecificInfoUnion { | 79 union CodecSpecificInfoUnion { |
| 65 CodecSpecificInfoGeneric generic; | 80 CodecSpecificInfoGeneric generic; |
| 66 CodecSpecificInfoVP8 VP8; | 81 CodecSpecificInfoVP8 VP8; |
| 67 CodecSpecificInfoVP9 VP9; | 82 CodecSpecificInfoVP9 VP9; |
| 68 CodecSpecificInfoH264 H264; | 83 CodecSpecificInfoH264 H264; |
| 69 }; | 84 }; |
| 70 | 85 |
| 71 // Note: if any pointers are added to this struct or its sub-structs, it | 86 // Note: if any pointers are added to this struct or its sub-structs, it |
| 72 // must be fitted with a copy-constructor. This is because it is copied | 87 // must be fitted with a copy-constructor. This is because it is copied |
| 73 // in the copy-constructor of VCMEncodedFrame. | 88 // in the copy-constructor of VCMEncodedFrame. |
| 74 struct CodecSpecificInfo | 89 struct CodecSpecificInfo |
| 75 { | 90 { |
| 76 VideoCodecType codecType; | 91 VideoCodecType codecType; |
| 77 CodecSpecificInfoUnion codecSpecific; | 92 CodecSpecificInfoUnion codecSpecific; |
| 78 }; | 93 }; |
| 79 | 94 |
| 80 } // namespace webrtc | 95 } // namespace webrtc |
| 81 | 96 |
| 82 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_VIDEO_CODEC_INTERFACE_H | 97 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_INTERFACE_VIDEO_CODEC_INTERFACE_H |
| OLD | NEW |