RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
402
zeroidc/vendor/web-sys/src/features/gen_VideoFrame.rs
vendored
Normal file
402
zeroidc/vendor/web-sys/src/features/gen_VideoFrame.rs
vendored
Normal file
@@ -0,0 +1,402 @@
|
||||
#![allow(unused_imports)]
|
||||
use super::*;
|
||||
use wasm_bindgen::prelude::*;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrame , typescript_type = "VideoFrame")]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[doc = "The `VideoFrame` class."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub type VideoFrame;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoPixelFormat")]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = format)]
|
||||
#[doc = "Getter for the `format` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/format)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoPixelFormat`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn format(this: &VideoFrame) -> Option<VideoPixelFormat>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedWidth)]
|
||||
#[doc = "Getter for the `codedWidth` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedWidth)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn coded_width(this: &VideoFrame) -> u32;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedHeight)]
|
||||
#[doc = "Getter for the `codedHeight` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedHeight)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn coded_height(this: &VideoFrame) -> u32;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "DomRectReadOnly")]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedRect)]
|
||||
#[doc = "Getter for the `codedRect` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedRect)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn coded_rect(this: &VideoFrame) -> Option<DomRectReadOnly>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "DomRectReadOnly")]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = visibleRect)]
|
||||
#[doc = "Getter for the `visibleRect` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/visibleRect)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn visible_rect(this: &VideoFrame) -> Option<DomRectReadOnly>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = displayWidth)]
|
||||
#[doc = "Getter for the `displayWidth` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/displayWidth)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn display_width(this: &VideoFrame) -> u32;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = displayHeight)]
|
||||
#[doc = "Getter for the `displayHeight` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/displayHeight)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn display_height(this: &VideoFrame) -> u32;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = duration)]
|
||||
#[doc = "Getter for the `duration` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/duration)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn duration(this: &VideoFrame) -> Option<f64>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = timestamp)]
|
||||
#[doc = "Getter for the `timestamp` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/timestamp)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn timestamp(this: &VideoFrame) -> Option<f64>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoColorSpace")]
|
||||
# [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = colorSpace)]
|
||||
#[doc = "Getter for the `colorSpace` field of this object."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/colorSpace)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn color_space(this: &VideoFrame) -> VideoColorSpace;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "HtmlImageElement")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_html_image_element(image: &HtmlImageElement) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "SvgImageElement")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_svg_image_element(image: &SvgImageElement) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "HtmlCanvasElement")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_html_canvas_element(image: &HtmlCanvasElement) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "HtmlVideoElement")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_html_video_element(image: &HtmlVideoElement) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "ImageBitmap")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_image_bitmap(image: &ImageBitmap) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(all(feature = "HtmlImageElement", feature = "VideoFrameInit",))]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `VideoFrame`, `VideoFrameInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_html_image_element_and_video_frame_init(
|
||||
image: &HtmlImageElement,
|
||||
init: &VideoFrameInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(all(feature = "SvgImageElement", feature = "VideoFrameInit",))]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `VideoFrame`, `VideoFrameInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_svg_image_element_and_video_frame_init(
|
||||
image: &SvgImageElement,
|
||||
init: &VideoFrameInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(all(feature = "HtmlCanvasElement", feature = "VideoFrameInit",))]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VideoFrame`, `VideoFrameInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_html_canvas_element_and_video_frame_init(
|
||||
image: &HtmlCanvasElement,
|
||||
init: &VideoFrameInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(all(feature = "HtmlVideoElement", feature = "VideoFrameInit",))]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoFrame`, `VideoFrameInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_html_video_element_and_video_frame_init(
|
||||
image: &HtmlVideoElement,
|
||||
init: &VideoFrameInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(all(feature = "ImageBitmap", feature = "VideoFrameInit",))]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`, `VideoFrameInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_image_bitmap_and_video_frame_init(
|
||||
image: &ImageBitmap,
|
||||
init: &VideoFrameInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoFrameBufferInit")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameBufferInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_buffer_source_and_video_frame_buffer_init(
|
||||
data: &::js_sys::Object,
|
||||
init: &VideoFrameBufferInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoFrameBufferInit")]
|
||||
#[wasm_bindgen(catch, constructor, js_class = "VideoFrame")]
|
||||
#[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameBufferInit`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn new_with_u8_array_and_video_frame_buffer_init(
|
||||
data: &mut [u8],
|
||||
init: &VideoFrameBufferInit,
|
||||
) -> Result<VideoFrame, JsValue>;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = allocationSize)]
|
||||
#[doc = "The `allocationSize()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/allocationSize)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn allocation_size(this: &VideoFrame) -> u32;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoFrameCopyToOptions")]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = allocationSize)]
|
||||
#[doc = "The `allocationSize()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/allocationSize)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn allocation_size_with_options(
|
||||
this: &VideoFrame,
|
||||
options: &VideoFrameCopyToOptions,
|
||||
) -> u32;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = clone)]
|
||||
#[doc = "The `clone()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/clone)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn clone(this: &VideoFrame) -> VideoFrame;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = close)]
|
||||
#[doc = "The `close()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/close)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn close(this: &VideoFrame);
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)]
|
||||
#[doc = "The `copyTo()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_to_with_buffer_source(
|
||||
this: &VideoFrame,
|
||||
destination: &::js_sys::Object,
|
||||
) -> ::js_sys::Promise;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)]
|
||||
#[doc = "The `copyTo()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_to_with_u8_array(this: &VideoFrame, destination: &mut [u8]) -> ::js_sys::Promise;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoFrameCopyToOptions")]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)]
|
||||
#[doc = "The `copyTo()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_to_with_buffer_source_and_options(
|
||||
this: &VideoFrame,
|
||||
destination: &::js_sys::Object,
|
||||
options: &VideoFrameCopyToOptions,
|
||||
) -> ::js_sys::Promise;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
#[cfg(feature = "VideoFrameCopyToOptions")]
|
||||
# [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)]
|
||||
#[doc = "The `copyTo()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
|
||||
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
|
||||
pub fn copy_to_with_u8_array_and_options(
|
||||
this: &VideoFrame,
|
||||
destination: &mut [u8],
|
||||
options: &VideoFrameCopyToOptions,
|
||||
) -> ::js_sys::Promise;
|
||||
}
|
||||
Reference in New Issue
Block a user