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/. */ 6 7 #ifndef VideoLimits_h 8 #define VideoLimits_h 9 10 namespace mozilla { 11 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; 18 19 } // namespace mozilla 20 21 #endif // VideoLimits_h 22