Bug 1850460 - Removed file build/build-clang/revert-llvmorg-18-init-3787-gb6a1473f97d...
[gecko.git] / dom / media / VideoLimits.h
blobaaa8753d4b4b457bd48dfc8d467fb89b37368edb
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef VideoLimits_h
8 #define VideoLimits_h
10 namespace mozilla {
12 // The maximum height and width of the video. Used for
13 // sanitizing the memory allocation of video frame buffers.
14 // The maximum resolution we anticipate encountering in the
15 // wild is 2160p (UHD "4K") or 4320p - 7680x4320 pixels for VR.
16 static const int32_t MAX_VIDEO_WIDTH = 8192;
17 static const int32_t MAX_VIDEO_HEIGHT = 4608;
19 } // namespace mozilla
21 #endif // VideoLimits_h