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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef MEDIA_VIDEO_VIDEO_ENCODE_TYPES_H_
5 #define MEDIA_VIDEO_VIDEO_ENCODE_TYPES_H_
6
7 #include <map>
8 #include <ostream>
9 #include <vector>
10
11 #include "base/time.h"
12 #include "media/base/video_decoder_config.h"
13 #include "ui/gfx/size.h"
14
15 namespace media {
16
17 // 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
18 struct VideoEncodingConfig {
19 VideoCodec codec_type;
20 std::string codec_name;
21 gfx::Size max_resolution;
22 int max_frames_per_second;
23 int max_bitrate;
24 };
25
26 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.
27
28 // Encoding parameters that can be configured during streaming without removing
29 // the bitstream first.
30 struct RuntimeVideoEncodingParameters {
31 int average_bitrate;
Ami GONE FROM CHROMIUM 2013/06/08 00:18:01 s/average/target/?
hshi1 2013/06/10 19:12:31 Done.
32 int max_bitrate;
33 };
34
35 // Generic video encoding parameters to be configured during initialization
36 // time.
37 struct VideoEncodingParameters {
38 std::string codec_name;
39 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
40 int frames_per_second;
41 RuntimeVideoEncodingParameters runtime_params;
42 };
43
44 struct BufferEncodingMetadata {
45 base::Time timestamp;
46 bool key_frame;
47 };
48
49 } // namespace media
50
51 #endif // MEDIA_VIDEO_VIDEO_ENCODE_TYPES_H_
OLDNEW
« 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