#include "third_party/blink/renderer/modules/webcodecs/video_frame_init_util.h"
#include <stdint.h>
#include <cmath>
#include <limits>
#include "media/base/limits.h"
#include "media/base/video_frame.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_dom_rect_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_video_frame_buffer_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_video_frame_init.h"
#include "third_party/blink/renderer/modules/webcodecs/video_frame_rect_util.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
template <typename T>
gfx::Size ParseAndValidateDisplaySizeImpl(T* init,
ExceptionState& exception_state) { … }
gfx::Size ParseAndValidateDisplaySize(const VideoFrameInit* init,
ExceptionState& exception_state) { … }
gfx::Size ParseAndValidateDisplaySize(const VideoFrameBufferInit* init,
ExceptionState& exception_state) { … }
ParsedVideoFrameInit::ParsedVideoFrameInit(
const VideoFrameInit* init,
media::VideoPixelFormat format,
const gfx::Size& coded_size,
const gfx::Rect& default_visible_rect,
const gfx::Size& default_display_size,
ExceptionState& exception_state) { … }
}