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

Side by Side Diff: webrtc/common_video/include/video_frame.h

Issue 2993923002: Removing VCMCodecDataBase::Codec and VideoCodingModule::Codec. (Closed)
Patch Set: Remove deprate - let sprang handle when method is removed Created 3 years, 4 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
« no previous file with comments | « webrtc/api/video_codecs/video_encoder.cc ('k') | webrtc/common_video/video_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 12 matching lines...) Expand all
23 23
24 // TODO(pbos): Rename EncodedFrame and reformat this class' members. 24 // TODO(pbos): Rename EncodedFrame and reformat this class' members.
25 class EncodedImage { 25 class EncodedImage {
26 public: 26 public:
27 static const size_t kBufferPaddingBytesH264; 27 static const size_t kBufferPaddingBytesH264;
28 28
29 // Some decoders require encoded image buffers to be padded with a small 29 // Some decoders require encoded image buffers to be padded with a small
30 // number of additional bytes (due to over-reading byte readers). 30 // number of additional bytes (due to over-reading byte readers).
31 static size_t GetBufferPaddingBytes(VideoCodecType codec_type); 31 static size_t GetBufferPaddingBytes(VideoCodecType codec_type);
32 32
33 EncodedImage() : EncodedImage(nullptr, 0, 0) {} 33 EncodedImage();
34 EncodedImage(uint8_t* buffer, size_t length, size_t size);
34 35
35 EncodedImage(uint8_t* buffer, size_t length, size_t size) 36 void SetEncodeTime(int64_t encode_start_ms, int64_t encode_finish_ms) const;
36 : _buffer(buffer), _length(length), _size(size) {}
37
38 void SetEncodeTime(int64_t encode_start_ms, int64_t encode_finish_ms) const {
39 timing_.is_timing_frame = true;
40 timing_.encode_start_ms = encode_start_ms;
41 timing_.encode_finish_ms = encode_finish_ms;
42 }
43 37
44 // TODO(kthelgason): get rid of this struct as it only has a single member 38 // TODO(kthelgason): get rid of this struct as it only has a single member
45 // remaining. 39 // remaining.
46 struct AdaptReason { 40 struct AdaptReason {
47 AdaptReason() : bw_resolutions_disabled(-1) {} 41 AdaptReason() : bw_resolutions_disabled(-1) {}
48 int bw_resolutions_disabled; // Number of resolutions that are not sent 42 int bw_resolutions_disabled; // Number of resolutions that are not sent
49 // due to bandwidth for this frame. 43 // due to bandwidth for this frame.
50 // Or -1 if information is not provided. 44 // Or -1 if information is not provided.
51 }; 45 };
52 uint32_t _encodedWidth = 0; 46 uint32_t _encodedWidth = 0;
(...skipping 27 matching lines...) Expand all
80 int64_t network_timestamp_ms = 0; 74 int64_t network_timestamp_ms = 0;
81 int64_t network2_timestamp_ms = 0; 75 int64_t network2_timestamp_ms = 0;
82 int64_t receive_start_ms = 0; 76 int64_t receive_start_ms = 0;
83 int64_t receive_finish_ms = 0; 77 int64_t receive_finish_ms = 0;
84 } timing_; 78 } timing_;
85 }; 79 };
86 80
87 } // namespace webrtc 81 } // namespace webrtc
88 82
89 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_H_ 83 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « webrtc/api/video_codecs/video_encoder.cc ('k') | webrtc/common_video/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698