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

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 comments and missing patch" 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
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 29 matching lines...) Expand all
40 STATUS_AUDIO_UNINITIALIZED, 40 STATUS_AUDIO_UNINITIALIZED,
41 STATUS_VIDEO_UNINITIALIZED, 41 STATUS_VIDEO_UNINITIALIZED,
42 STATUS_AUDIO_INITIALIZED, 42 STATUS_AUDIO_INITIALIZED,
43 STATUS_VIDEO_INITIALIZED, 43 STATUS_VIDEO_INITIALIZED,
44 STATUS_INVALID_CAST_ENVIRONMENT, 44 STATUS_INVALID_CAST_ENVIRONMENT,
45 STATUS_INVALID_CRYPTO_CONFIGURATION, 45 STATUS_INVALID_CRYPTO_CONFIGURATION,
46 STATUS_UNSUPPORTED_AUDIO_CODEC, 46 STATUS_UNSUPPORTED_AUDIO_CODEC,
47 STATUS_UNSUPPORTED_VIDEO_CODEC, 47 STATUS_UNSUPPORTED_VIDEO_CODEC,
48 STATUS_INVALID_AUDIO_CONFIGURATION, 48 STATUS_INVALID_AUDIO_CONFIGURATION,
49 STATUS_INVALID_VIDEO_CONFIGURATION, 49 STATUS_INVALID_VIDEO_CONFIGURATION,
50 STATUS_GPU_ACCELERATION_NOT_SUPPORTED, 50 STATUS_HW_VIDEO_ENCODER_NOT_SUPPORTED,
51 STATUS_GPU_ACCELERATION_ERROR,
52 }; 51 };
53 52
54 enum DefaultSettings { 53 enum DefaultSettings {
55 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR. 54 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR.
56 kDefaultAudioSamplingRate = 48000, 55 kDefaultAudioSamplingRate = 48000,
57 kDefaultMaxQp = 56, 56 kDefaultMaxQp = 56,
58 kDefaultMinQp = 4, 57 kDefaultMinQp = 4,
59 kDefaultMaxFrameRate = 30, 58 kDefaultMaxFrameRate = 30,
60 kDefaultNumberOfVideoBuffers = 1, 59 kDefaultNumberOfVideoBuffers = 1,
61 kDefaultRtcpIntervalMs = 500, 60 kDefaultRtcpIntervalMs = 500,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 196
198 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) { 197 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) {
199 DCHECK_GT(rtp_timebase, 0); 198 DCHECK_GT(rtp_timebase, 0);
200 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1); 199 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1);
201 } 200 }
202 201
203 } // namespace cast 202 } // namespace cast
204 } // namespace media 203 } // namespace media
205 204
206 #endif // MEDIA_CAST_CAST_DEFINES_H_ 205 #endif // MEDIA_CAST_CAST_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698