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

Side by Side Diff: webrtc/modules/video_coding/include/video_coding_defines.h

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Fix typo, leading to failed video catpure test Created 3 years, 8 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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 struct VCMFrameCount { 55 struct VCMFrameCount {
56 uint32_t numKeyFrames; 56 uint32_t numKeyFrames;
57 uint32_t numDeltaFrames; 57 uint32_t numDeltaFrames;
58 }; 58 };
59 59
60 // Callback class used for passing decoded frames which are ready to be 60 // Callback class used for passing decoded frames which are ready to be
61 // rendered. 61 // rendered.
62 class VCMReceiveCallback { 62 class VCMReceiveCallback {
63 public: 63 public:
64 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT 64 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT
65 rtc::Optional<uint8_t> qp) = 0; 65 rtc::Optional<uint8_t> qp,
66 VideoContentType content_type) = 0;
66 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { 67 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) {
67 return -1; 68 return -1;
68 } 69 }
69 // Called when the current receive codec changes. 70 // Called when the current receive codec changes.
70 virtual void OnIncomingPayloadType(int payload_type) {} 71 virtual void OnIncomingPayloadType(int payload_type) {}
71 virtual void OnDecoderImplementationName(const char* implementation_name) {} 72 virtual void OnDecoderImplementationName(const char* implementation_name) {}
72 73
73 protected: 74 protected:
74 virtual ~VCMReceiveCallback() {} 75 virtual ~VCMReceiveCallback() {}
75 }; 76 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 public: 156 public:
156 virtual void RequestKeyFrame() = 0; 157 virtual void RequestKeyFrame() = 0;
157 158
158 protected: 159 protected:
159 virtual ~KeyFrameRequestSender() {} 160 virtual ~KeyFrameRequestSender() {}
160 }; 161 };
161 162
162 } // namespace webrtc 163 } // namespace webrtc
163 164
164 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ 165 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/include/mock/mock_vcm_callbacks.h ('k') | webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698