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

Unified Diff: webrtc/video/vie_encoder.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/video/vie_encoder.h
diff --git a/webrtc/video/vie_encoder.h b/webrtc/video/vie_encoder.h
index c0b80baadd6e948c918b8f75fb704b5b77b4e2b4..820f26fbc4f093311078f6a4f052749c2a700363 100644
--- a/webrtc/video/vie_encoder.h
+++ b/webrtc/video/vie_encoder.h
@@ -16,6 +16,7 @@
#include <vector>
#include "webrtc/api/video/video_rotation.h"
+#include "webrtc/api/video/video_content_type.h"
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/event.h"
#include "webrtc/base/sequenced_task_checker.h"
@@ -68,7 +69,8 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>,
SendStatisticsProxy* stats_proxy,
const VideoSendStream::Config::EncoderSettings& settings,
rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback,
- EncodedFrameObserver* encoder_timing);
+ EncodedFrameObserver* encoder_timing,
+ VideoEncoderConfig::ContentType content_type);
~ViEEncoder();
// RegisterProcessThread register |module_process_thread| with those objects
// that use it. Registration has to happen on the thread where
@@ -133,14 +135,17 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>,
VideoFrameInfo(int width,
int height,
VideoRotation rotation,
+ VideoContentTypeId content_type,
bool is_texture)
: width(width),
height(height),
rotation(rotation),
+ content_type_(content_type),
is_texture(is_texture) {}
int width;
int height;
VideoRotation rotation;
+ VideoContentTypeId content_type_;
bool is_texture;
int pixel_count() const { return width * height; }
};
@@ -184,6 +189,7 @@ class ViEEncoder : public rtc::VideoSinkInterface<VideoFrame>,
EncoderSink* sink_;
const VideoSendStream::Config::EncoderSettings settings_;
const VideoCodecType codec_type_;
+ const VideoEncoderConfig::ContentType content_type_;
vcm::VideoSender video_sender_ ACCESS_ON(&encoder_queue_);
OveruseFrameDetector overuse_detector_ ACCESS_ON(&encoder_queue_);

Powered by Google App Engine
This is Rietveld 408576698