VideoLimits.h 794 B

12345678910111213141516171819202122
  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. #ifndef VideoLimits_h
  7. #define VideoLimits_h
  8. namespace mozilla {
  9. // The maximum height and width of the video. Used for
  10. // sanitizing the memory allocation of video frame buffers.
  11. // The maximum resolution we anticipate encountering in the
  12. // wild is 2160p (UHD "4K") or 4320p - 7680x4320 pixels for VR.
  13. static const int32_t MAX_VIDEO_WIDTH = 8192;
  14. static const int32_t MAX_VIDEO_HEIGHT = 4608;
  15. } // namespace mozilla
  16. #endif // VideoLimits_h