| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 rtp->codecHeader.VP9.picture_id = info->codecSpecific.VP9.picture_id; | 48 rtp->codecHeader.VP9.picture_id = info->codecSpecific.VP9.picture_id; |
| 49 rtp->codecHeader.VP9.tl0_pic_idx = info->codecSpecific.VP9.tl0_pic_idx; | 49 rtp->codecHeader.VP9.tl0_pic_idx = info->codecSpecific.VP9.tl0_pic_idx; |
| 50 rtp->codecHeader.VP9.temporal_idx = info->codecSpecific.VP9.temporal_idx; | 50 rtp->codecHeader.VP9.temporal_idx = info->codecSpecific.VP9.temporal_idx; |
| 51 rtp->codecHeader.VP9.spatial_idx = info->codecSpecific.VP9.spatial_idx; | 51 rtp->codecHeader.VP9.spatial_idx = info->codecSpecific.VP9.spatial_idx; |
| 52 rtp->codecHeader.VP9.temporal_up_switch = | 52 rtp->codecHeader.VP9.temporal_up_switch = |
| 53 info->codecSpecific.VP9.temporal_up_switch; | 53 info->codecSpecific.VP9.temporal_up_switch; |
| 54 rtp->codecHeader.VP9.inter_layer_predicted = | 54 rtp->codecHeader.VP9.inter_layer_predicted = |
| 55 info->codecSpecific.VP9.inter_layer_predicted; | 55 info->codecSpecific.VP9.inter_layer_predicted; |
| 56 rtp->codecHeader.VP9.gof_idx = info->codecSpecific.VP9.gof_idx; | 56 rtp->codecHeader.VP9.gof_idx = info->codecSpecific.VP9.gof_idx; |
| 57 | 57 |
| 58 // Packetizer needs to know the number of spatial layers to correctly set |
| 59 // the marker bit, even when the number won't be written in the packet. |
| 60 rtp->codecHeader.VP9.num_spatial_layers = |
| 61 info->codecSpecific.VP9.num_spatial_layers; |
| 58 if (info->codecSpecific.VP9.ss_data_available) { | 62 if (info->codecSpecific.VP9.ss_data_available) { |
| 59 rtp->codecHeader.VP9.num_spatial_layers = | |
| 60 info->codecSpecific.VP9.num_spatial_layers; | |
| 61 rtp->codecHeader.VP9.spatial_layer_resolution_present = | 63 rtp->codecHeader.VP9.spatial_layer_resolution_present = |
| 62 info->codecSpecific.VP9.spatial_layer_resolution_present; | 64 info->codecSpecific.VP9.spatial_layer_resolution_present; |
| 63 if (info->codecSpecific.VP9.spatial_layer_resolution_present) { | 65 if (info->codecSpecific.VP9.spatial_layer_resolution_present) { |
| 64 for (size_t i = 0; i < info->codecSpecific.VP9.num_spatial_layers; | 66 for (size_t i = 0; i < info->codecSpecific.VP9.num_spatial_layers; |
| 65 ++i) { | 67 ++i) { |
| 66 rtp->codecHeader.VP9.width[i] = info->codecSpecific.VP9.width[i]; | 68 rtp->codecHeader.VP9.width[i] = info->codecSpecific.VP9.width[i]; |
| 67 rtp->codecHeader.VP9.height[i] = info->codecSpecific.VP9.height[i]; | 69 rtp->codecHeader.VP9.height[i] = info->codecSpecific.VP9.height[i]; |
| 68 } | 70 } |
| 69 } | 71 } |
| 70 rtp->codecHeader.VP9.gof.CopyGofInfoVP9(info->codecSpecific.VP9.gof); | 72 rtp->codecHeader.VP9.gof.CopyGofInfoVP9(info->codecSpecific.VP9.gof); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 } | 330 } |
| 329 | 331 |
| 330 void | 332 void |
| 331 VCMEncodedFrameCallback::SetMediaOpt( | 333 VCMEncodedFrameCallback::SetMediaOpt( |
| 332 media_optimization::MediaOptimization *mediaOpt) | 334 media_optimization::MediaOptimization *mediaOpt) |
| 333 { | 335 { |
| 334 _mediaOpt = mediaOpt; | 336 _mediaOpt = mediaOpt; |
| 335 } | 337 } |
| 336 | 338 |
| 337 } // namespace webrtc | 339 } // namespace webrtc |
| OLD | NEW |