#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/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
int32_t ToInt31(double value,
const char* object_name,
const char* property_name,
ExceptionState& exception_state) { … }
}
gfx::Rect ToGfxRect(const DOMRectInit* rect,
const char* rect_name,
const gfx::Size& coded_size,
ExceptionState& exception_state) { … }
bool ValidateOffsetAlignment(media::VideoPixelFormat format,
const gfx::Rect& rect,
const char* rect_name,
ExceptionState& exception_state) { … }
int PlaneSize(int frame_size, int sample_size) { … }
gfx::Rect PlaneRect(gfx::Rect frame_rect, gfx::Size sample_size) { … }
}