Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: webrtc/modules/video_coding/encoded_frame.h

Issue 2870823003: Configured VCMTiming with sender defining delay times. (Closed)
Patch Set: empty Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 28 matching lines...) Expand all
39 _renderTimeMs = renderTimeMs; 39 _renderTimeMs = renderTimeMs;
40 } 40 }
41 41
42 /** 42 /**
43 * Set the encoded frame size 43 * Set the encoded frame size
44 */ 44 */
45 void SetEncodedSize(uint32_t width, uint32_t height) { 45 void SetEncodedSize(uint32_t width, uint32_t height) {
46 _encodedWidth = width; 46 _encodedWidth = width;
47 _encodedHeight = height; 47 _encodedHeight = height;
48 } 48 }
49
50 void SetPlayoutDelay(int min_playout_delay, int max_playout_delay) {
51 playout_delay_.min_ms = min_playout_delay;
52 playout_delay_.max_ms = max_playout_delay;
53 }
54
49 /** 55 /**
50 * Get the encoded image 56 * Get the encoded image
51 */ 57 */
52 const webrtc::EncodedImage& EncodedImage() const { 58 const webrtc::EncodedImage& EncodedImage() const {
53 return static_cast<const webrtc::EncodedImage&>(*this); 59 return static_cast<const webrtc::EncodedImage&>(*this);
54 } 60 }
55 /** 61 /**
56 * Get pointer to frame buffer 62 * Get pointer to frame buffer
57 */ 63 */
58 const uint8_t* Buffer() const { return _buffer; } 64 const uint8_t* Buffer() const { return _buffer; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 129
124 // Video rotation is only set along with the last packet for each frame 130 // Video rotation is only set along with the last packet for each frame
125 // (same as marker bit). This |_rotation_set| is only for debugging purpose 131 // (same as marker bit). This |_rotation_set| is only for debugging purpose
126 // to ensure we don't set it twice for a frame. 132 // to ensure we don't set it twice for a frame.
127 bool _rotation_set; 133 bool _rotation_set;
128 }; 134 };
129 135
130 } // namespace webrtc 136 } // namespace webrtc
131 137
132 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ 138 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_buffer2.h » ('j') | webrtc/modules/video_coding/frame_buffer2.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698