blob: 583d6dd5a2c6baea97bf4e06e9a7a3e5bfe93c53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Contains limit definition constants for the media subsystem.
#ifndef MEDIA_BASE_LIMITS_H_
#define MEDIA_BASE_LIMITS_H_
#include "base/basictypes.h"
namespace media {
struct Limits {
// For video.
static const size_t kMaxDimension = (1 << 15) - 1; // 32767
static const size_t kMaxCanvas = (1 << (14 * 2)); // 16384 x 16384
// For audio.
static const size_t kMaxSampleRate = 192000;
static const size_t kMaxChannels = 32;
static const size_t kMaxBPS = 64;
};
} // namespace media
#endif // MEDIA_BASE_LIMITS_H_
|