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

Unified Diff: media/video/video_encode_types.h

Issue 16320005: Define EncodedVideoSource and RtcCapturedEncodingVideoCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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
« media/video/encoded_video_source.h ('K') | « media/video/encoded_video_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_encode_types.h
diff --git a/media/video/video_encode_types.h b/media/video/video_encode_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..b449fe4d2d72f2b018bee961b6e87f85fa30d90b
--- /dev/null
+++ b/media/video/video_encode_types.h
@@ -0,0 +1,51 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef MEDIA_VIDEO_VIDEO_ENCODE_TYPES_H_
+#define MEDIA_VIDEO_VIDEO_ENCODE_TYPES_H_
+
+#include <map>
+#include <ostream>
+#include <vector>
+
+#include "base/time.h"
+#include "media/base/video_decoder_config.h"
+#include "ui/gfx/size.h"
+
+namespace media {
+
+// Data to represent limitations for a particular encoder config.
Ami GONE FROM CHROMIUM 2013/06/08 00:18:01 We're talking about shipping the EVS stuff on only
hshi1 2013/06/10 19:12:31 I don't believe it is adding significant complexit
Ami GONE FROM CHROMIUM 2013/06/10 19:29:32 This configurability requires in EVS: Observer Add
+struct VideoEncodingConfig {
+ VideoCodec codec_type;
+ std::string codec_name;
+ gfx::Size max_resolution;
+ int max_frames_per_second;
+ int max_bitrate;
+};
+
+typedef std::vector<VideoEncodingConfig> VideoEncodingCapability;
Ami GONE FROM CHROMIUM 2013/06/08 00:18:01 VideoEncodingCapability is a particularly unintuit
hshi1 2013/06/10 19:12:31 Done.
+
+// Encoding parameters that can be configured during streaming without removing
+// the bitstream first.
+struct RuntimeVideoEncodingParameters {
+ int average_bitrate;
Ami GONE FROM CHROMIUM 2013/06/08 00:18:01 s/average/target/?
hshi1 2013/06/10 19:12:31 Done.
+ int max_bitrate;
+};
+
+// Generic video encoding parameters to be configured during initialization
+// time.
+struct VideoEncodingParameters {
+ std::string codec_name;
+ gfx::Size resolution;
Ami GONE FROM CHROMIUM 2013/06/08 00:18:01 Is there a reason why resolution & frames_per_seco
hshi1 2013/06/10 19:12:31 I have moved the frames_per_second into the runtim
+ int frames_per_second;
+ RuntimeVideoEncodingParameters runtime_params;
+};
+
+struct BufferEncodingMetadata {
+ base::Time timestamp;
+ bool key_frame;
+};
+
+} // namespace media
+
+#endif // MEDIA_VIDEO_VIDEO_ENCODE_TYPES_H_
« media/video/encoded_video_source.h ('K') | « media/video/encoded_video_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698