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

Side by Side Diff: media/cast/cast_config.h

Issue 2462863002: Fix direct dependencies in //media/cast/BUILD.gn. (Closed)
Patch Set: Depend on //media rather than //media/base, etc Created 4 years, 1 month 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
« no previous file with comments | « media/cast/BUILD.gn ('k') | media/cast/common/transport_encryption_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_CAST_CONFIG_H_ 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_
6 #define MEDIA_CAST_CAST_CONFIG_H_ 6 #define MEDIA_CAST_CAST_CONFIG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/shared_memory.h" 15 #include "base/memory/shared_memory.h"
16 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "media/cast/net/cast_transport_config.h"
19 18
20 namespace media { 19 namespace media {
21 class VideoEncodeAccelerator; 20 class VideoEncodeAccelerator;
22 21
23 namespace cast { 22 namespace cast {
24 23
24 enum Codec {
25 CODEC_UNKNOWN,
26 CODEC_AUDIO_OPUS,
27 CODEC_AUDIO_PCM16,
28 CODEC_AUDIO_AAC,
29 CODEC_AUDIO_REMOTE,
30 CODEC_VIDEO_FAKE,
31 CODEC_VIDEO_VP8,
32 CODEC_VIDEO_H264,
33 CODEC_VIDEO_REMOTE,
34 CODEC_LAST = CODEC_VIDEO_REMOTE
35 };
36
37 // Describes the content being transported over RTP streams.
38 enum class RtpPayloadType {
39 UNKNOWN = -1,
40
41 // Cast Streaming will encode raw audio frames using one of its available
42 // codec implementations, and transport encoded data in the RTP stream.
43 FIRST = 96,
44 AUDIO_OPUS = 96,
45 AUDIO_AAC = 97,
46 AUDIO_PCM16 = 98,
47
48 // Audio frame data is not modified, and should be transported reliably and
49 // in-sequence. No assumptions about the data can be made.
50 REMOTE_AUDIO = 99,
51
52 AUDIO_LAST = REMOTE_AUDIO,
53
54 // Cast Streaming will encode raw video frames using one of its available
55 // codec implementations, and transport encoded data in the RTP stream.
56 VIDEO_VP8 = 100,
57 VIDEO_H264 = 101,
58
59 // Video frame data is not modified, and should be transported reliably and
60 // in-sequence. No assumptions about the data can be made.
61 REMOTE_VIDEO = 102,
62
63 LAST = REMOTE_VIDEO
64 };
65
25 // TODO(miu): Eliminate these after moving "default config" into the top-level 66 // TODO(miu): Eliminate these after moving "default config" into the top-level
26 // media/cast directory. http://crbug.com/530839 67 // media/cast directory. http://crbug.com/530839
27 enum SuggestedDefaults { 68 enum SuggestedDefaults {
28 // Audio encoder bitrate. Zero means "auto," which asks the encoder to select 69 // Audio encoder bitrate. Zero means "auto," which asks the encoder to select
29 // a bitrate that dynamically adjusts to the content. Otherwise, a constant 70 // a bitrate that dynamically adjusts to the content. Otherwise, a constant
30 // bitrate is used. 71 // bitrate is used.
31 kDefaultAudioEncoderBitrate = 0, 72 kDefaultAudioEncoderBitrate = 0,
32 73
33 // Suggested default audio sampling rate. 74 // Suggested default audio sampling rate.
34 kDefaultAudioSamplingRate = 48000, 75 kDefaultAudioSamplingRate = 48000,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 typedef base::Callback<void(std::unique_ptr<base::SharedMemory>)> 254 typedef base::Callback<void(std::unique_ptr<base::SharedMemory>)>
214 ReceiveVideoEncodeMemoryCallback; 255 ReceiveVideoEncodeMemoryCallback;
215 typedef base::Callback<void(size_t size, 256 typedef base::Callback<void(size_t size,
216 const ReceiveVideoEncodeMemoryCallback&)> 257 const ReceiveVideoEncodeMemoryCallback&)>
217 CreateVideoEncodeMemoryCallback; 258 CreateVideoEncodeMemoryCallback;
218 259
219 } // namespace cast 260 } // namespace cast
220 } // namespace media 261 } // namespace media
221 262
222 #endif // MEDIA_CAST_CAST_CONFIG_H_ 263 #endif // MEDIA_CAST_CAST_CONFIG_H_
OLDNEW
« no previous file with comments | « media/cast/BUILD.gn ('k') | media/cast/common/transport_encryption_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698