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

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

Issue 555563003: Cast: Flow hw encoder initialization error to extensions API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed compile Created 6 years, 3 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
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | media/cast/cast_sender_impl.h » ('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_DEFINES_H_ 5 #ifndef MEDIA_CAST_CAST_DEFINES_H_
6 #define MEDIA_CAST_CAST_DEFINES_H_ 6 #define MEDIA_CAST_CAST_DEFINES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 28 matching lines...) Expand all
39 STATUS_AUDIO_UNINITIALIZED, 39 STATUS_AUDIO_UNINITIALIZED,
40 STATUS_VIDEO_UNINITIALIZED, 40 STATUS_VIDEO_UNINITIALIZED,
41 STATUS_AUDIO_INITIALIZED, 41 STATUS_AUDIO_INITIALIZED,
42 STATUS_VIDEO_INITIALIZED, 42 STATUS_VIDEO_INITIALIZED,
43 STATUS_INVALID_CAST_ENVIRONMENT, 43 STATUS_INVALID_CAST_ENVIRONMENT,
44 STATUS_INVALID_CRYPTO_CONFIGURATION, 44 STATUS_INVALID_CRYPTO_CONFIGURATION,
45 STATUS_UNSUPPORTED_AUDIO_CODEC, 45 STATUS_UNSUPPORTED_AUDIO_CODEC,
46 STATUS_UNSUPPORTED_VIDEO_CODEC, 46 STATUS_UNSUPPORTED_VIDEO_CODEC,
47 STATUS_INVALID_AUDIO_CONFIGURATION, 47 STATUS_INVALID_AUDIO_CONFIGURATION,
48 STATUS_INVALID_VIDEO_CONFIGURATION, 48 STATUS_INVALID_VIDEO_CONFIGURATION,
49 STATUS_GPU_ACCELERATION_NOT_SUPPORTED, 49 STATUS_HW_VIDEO_ENCODER_NOT_SUPPORTED,
50 STATUS_GPU_ACCELERATION_ERROR,
51 }; 50 };
52 51
53 enum DefaultSettings { 52 enum DefaultSettings {
54 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR. 53 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR.
55 kDefaultAudioSamplingRate = 48000, 54 kDefaultAudioSamplingRate = 48000,
56 kDefaultMaxQp = 56, 55 kDefaultMaxQp = 56,
57 kDefaultMinQp = 4, 56 kDefaultMinQp = 4,
58 kDefaultMaxFrameRate = 30, 57 kDefaultMaxFrameRate = 30,
59 kDefaultNumberOfVideoBuffers = 1, 58 kDefaultNumberOfVideoBuffers = 1,
60 kDefaultRtcpIntervalMs = 500, 59 kDefaultRtcpIntervalMs = 500,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 195
197 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) { 196 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) {
198 DCHECK_GT(rtp_timebase, 0); 197 DCHECK_GT(rtp_timebase, 0);
199 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1); 198 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1);
200 } 199 }
201 200
202 } // namespace cast 201 } // namespace cast
203 } // namespace media 202 } // namespace media
204 203
205 #endif // MEDIA_CAST_CAST_DEFINES_H_ 204 #endif // MEDIA_CAST_CAST_DEFINES_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698