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

Unified Diff: webrtc/test/frame_generator_capturer.h

Issue 2772033002: Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Set EncodedImage content_type from vie_encoder Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/test/frame_generator_capturer.h
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h
index 75e48497bec35c65fa5a746e57e619c570c78b79..833fa90d00fd34f51f366631a55eca386ad6d23b 100644
--- a/webrtc/test/frame_generator_capturer.h
+++ b/webrtc/test/frame_generator_capturer.h
@@ -14,6 +14,7 @@
#include <string>
#include "webrtc/api/video/video_frame.h"
+#include "webrtc/api/video/video_content_type.h"
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/task_queue.h"
#include "webrtc/test/video_capturer.h"
@@ -66,6 +67,8 @@ class FrameGeneratorCapturer : public VideoCapturer {
void ForceFrame();
void SetFakeRotation(VideoRotation rotation);
+ void SetFakeContentType(VideoContentTypeId content_type);
+
int64_t first_frame_capture_time() const { return first_frame_capture_time_; }
FrameGeneratorCapturer(Clock* clock,
@@ -90,6 +93,8 @@ class FrameGeneratorCapturer : public VideoCapturer {
int target_fps_;
VideoRotation fake_rotation_ = kVideoRotation_0;
+ VideoContentTypeId fake_video_content_type_ = kVideoContent_Default;
+
int64_t first_frame_capture_time_;
// Must be the last field, so it will be deconstructed first as tasks
// in the TaskQueue access other fields of the instance of this class.

Powered by Google App Engine
This is Rietveld 408576698