| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // Contains limit definition constants for the media subsystem. | 5 // Contains limit definition constants for the media subsystem. |
| 6 | 6 |
| 7 #ifndef MEDIA_BASE_LIMITS_H_ | 7 #ifndef MEDIA_BASE_LIMITS_H_ |
| 8 #define MEDIA_BASE_LIMITS_H_ | 8 #define MEDIA_BASE_LIMITS_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 | 13 |
| 14 struct Limits { | 14 struct Limits { |
| 15 // For video. | 15 // For video. |
| 16 static const size_t kMaxDimension = (1 << 15) - 1; // 32767 | 16 static const size_t kMaxDimension = (1 << 15) - 1; // 32767 |
| 17 static const size_t kMaxCanvas = (1 << (14 * 2)); // 16384 x 16384 | 17 static const size_t kMaxCanvas = (1 << (14 * 2)); // 16384 x 16384 |
| 18 | 18 |
| 19 // For audio. | 19 // For audio. |
| 20 static const size_t kMaxSampleRate = 192000; | 20 static const size_t kMaxSampleRate = 192000; |
| 21 static const size_t kMaxChannels = 32; | 21 static const size_t kMaxChannels = 32; |
| 22 static const size_t kMaxBPS = 64; | 22 static const size_t kMaxBPS = 64; |
| 23 |
| 24 // Maximum possible time. |
| 25 static const int64 kMaxTimeInMicroseconds = kint64max; |
| 23 }; | 26 }; |
| 24 | 27 |
| 25 } // namespace media | 28 } // namespace media |
| 26 | 29 |
| 27 #endif // MEDIA_BASE_LIMITS_H_ | 30 #endif // MEDIA_BASE_LIMITS_H_ |
| 28 | |
| OLD | NEW |