Skip to main content

web_sys/features/
gen_VideoFrameBufferInit.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameBufferInit)]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `VideoFrameBufferInit` dictionary."]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
13    #[doc = ""]
14    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
16    pub type VideoFrameBufferInit;
17    #[cfg(web_sys_unstable_apis)]
18    #[doc = "Get the `codedHeight` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    #[wasm_bindgen(method, getter = "codedHeight")]
25    pub fn get_coded_height(this: &VideoFrameBufferInit) -> u32;
26    #[cfg(web_sys_unstable_apis)]
27    #[doc = "Change the `codedHeight` field of this object."]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    #[wasm_bindgen(method, setter = "codedHeight")]
34    pub fn set_coded_height(this: &VideoFrameBufferInit, val: u32);
35    #[cfg(web_sys_unstable_apis)]
36    #[doc = "Get the `codedWidth` field of this object."]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
39    #[doc = ""]
40    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42    #[wasm_bindgen(method, getter = "codedWidth")]
43    pub fn get_coded_width(this: &VideoFrameBufferInit) -> u32;
44    #[cfg(web_sys_unstable_apis)]
45    #[doc = "Change the `codedWidth` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    #[wasm_bindgen(method, setter = "codedWidth")]
52    pub fn set_coded_width(this: &VideoFrameBufferInit, val: u32);
53    #[cfg(web_sys_unstable_apis)]
54    #[cfg(feature = "VideoColorSpaceInit")]
55    #[doc = "Get the `colorSpace` field of this object."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoFrameBufferInit`*"]
58    #[doc = ""]
59    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
60    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
61    #[wasm_bindgen(method, getter = "colorSpace")]
62    pub fn get_color_space(this: &VideoFrameBufferInit) -> Option<VideoColorSpaceInit>;
63    #[cfg(web_sys_unstable_apis)]
64    #[cfg(feature = "VideoColorSpaceInit")]
65    #[doc = "Change the `colorSpace` field of this object."]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoFrameBufferInit`*"]
68    #[doc = ""]
69    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
71    #[wasm_bindgen(method, setter = "colorSpace")]
72    pub fn set_color_space(this: &VideoFrameBufferInit, val: &VideoColorSpaceInit);
73    #[cfg(web_sys_unstable_apis)]
74    #[doc = "Get the `displayHeight` field of this object."]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
77    #[doc = ""]
78    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
79    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
80    #[wasm_bindgen(method, getter = "displayHeight")]
81    pub fn get_display_height(this: &VideoFrameBufferInit) -> Option<u32>;
82    #[cfg(web_sys_unstable_apis)]
83    #[doc = "Change the `displayHeight` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    #[wasm_bindgen(method, setter = "displayHeight")]
90    pub fn set_display_height(this: &VideoFrameBufferInit, val: u32);
91    #[cfg(web_sys_unstable_apis)]
92    #[doc = "Get the `displayWidth` field of this object."]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
95    #[doc = ""]
96    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
97    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
98    #[wasm_bindgen(method, getter = "displayWidth")]
99    pub fn get_display_width(this: &VideoFrameBufferInit) -> Option<u32>;
100    #[cfg(web_sys_unstable_apis)]
101    #[doc = "Change the `displayWidth` field of this object."]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
104    #[doc = ""]
105    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
106    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
107    #[wasm_bindgen(method, setter = "displayWidth")]
108    pub fn set_display_width(this: &VideoFrameBufferInit, val: u32);
109    #[cfg(web_sys_unstable_apis)]
110    #[doc = "Get the `duration` field of this object."]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
113    #[doc = ""]
114    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
115    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
116    #[wasm_bindgen(method, getter = "duration")]
117    pub fn get_duration(this: &VideoFrameBufferInit) -> Option<f64>;
118    #[cfg(web_sys_unstable_apis)]
119    #[doc = "Change the `duration` field of this object."]
120    #[doc = ""]
121    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
122    #[doc = ""]
123    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125    #[wasm_bindgen(method, setter = "duration")]
126    pub fn set_duration(this: &VideoFrameBufferInit, val: u32);
127    #[cfg(web_sys_unstable_apis)]
128    #[doc = "Change the `duration` field of this object."]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    #[wasm_bindgen(method, setter = "duration")]
135    pub fn set_duration_f64(this: &VideoFrameBufferInit, val: f64);
136    #[cfg(web_sys_unstable_apis)]
137    #[doc = "Get the `flip` field of this object."]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
140    #[doc = ""]
141    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
142    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
143    #[wasm_bindgen(method, getter = "flip")]
144    pub fn get_flip(this: &VideoFrameBufferInit) -> Option<bool>;
145    #[cfg(web_sys_unstable_apis)]
146    #[doc = "Change the `flip` field of this object."]
147    #[doc = ""]
148    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
149    #[doc = ""]
150    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
151    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
152    #[wasm_bindgen(method, setter = "flip")]
153    pub fn set_flip(this: &VideoFrameBufferInit, val: bool);
154    #[cfg(web_sys_unstable_apis)]
155    #[cfg(feature = "VideoPixelFormat")]
156    #[doc = "Get the `format` field of this object."]
157    #[doc = ""]
158    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"]
159    #[doc = ""]
160    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
161    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
162    #[wasm_bindgen(method, getter = "format")]
163    pub fn get_format(this: &VideoFrameBufferInit) -> VideoPixelFormat;
164    #[cfg(web_sys_unstable_apis)]
165    #[cfg(feature = "VideoPixelFormat")]
166    #[doc = "Change the `format` field of this object."]
167    #[doc = ""]
168    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"]
169    #[doc = ""]
170    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
171    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
172    #[wasm_bindgen(method, setter = "format")]
173    pub fn set_format(this: &VideoFrameBufferInit, val: VideoPixelFormat);
174    #[cfg(web_sys_unstable_apis)]
175    #[cfg(feature = "PlaneLayout")]
176    #[doc = "Get the `layout` field of this object."]
177    #[doc = ""]
178    #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`, `VideoFrameBufferInit`*"]
179    #[doc = ""]
180    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
181    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
182    #[wasm_bindgen(method, getter = "layout")]
183    pub fn get_layout(this: &VideoFrameBufferInit) -> Option<::js_sys::Array<PlaneLayout>>;
184    #[cfg(web_sys_unstable_apis)]
185    #[cfg(feature = "PlaneLayout")]
186    #[doc = "Change the `layout` field of this object."]
187    #[doc = ""]
188    #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`, `VideoFrameBufferInit`*"]
189    #[doc = ""]
190    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
191    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
192    #[wasm_bindgen(method, setter = "layout")]
193    pub fn set_layout(this: &VideoFrameBufferInit, val: &[PlaneLayout]);
194    #[cfg(web_sys_unstable_apis)]
195    #[cfg(feature = "VideoFrameMetadata")]
196    #[doc = "Get the `metadata` field of this object."]
197    #[doc = ""]
198    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoFrameMetadata`*"]
199    #[doc = ""]
200    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
201    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
202    #[wasm_bindgen(method, getter = "metadata")]
203    pub fn get_metadata(this: &VideoFrameBufferInit) -> Option<VideoFrameMetadata>;
204    #[cfg(web_sys_unstable_apis)]
205    #[cfg(feature = "VideoFrameMetadata")]
206    #[doc = "Change the `metadata` field of this object."]
207    #[doc = ""]
208    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoFrameMetadata`*"]
209    #[doc = ""]
210    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
211    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
212    #[wasm_bindgen(method, setter = "metadata")]
213    pub fn set_metadata(this: &VideoFrameBufferInit, val: &VideoFrameMetadata);
214    #[cfg(web_sys_unstable_apis)]
215    #[doc = "Get the `rotation` field of this object."]
216    #[doc = ""]
217    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
218    #[doc = ""]
219    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
220    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
221    #[wasm_bindgen(method, getter = "rotation")]
222    pub fn get_rotation(this: &VideoFrameBufferInit) -> Option<f64>;
223    #[cfg(web_sys_unstable_apis)]
224    #[doc = "Change the `rotation` field of this object."]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
227    #[doc = ""]
228    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
229    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
230    #[wasm_bindgen(method, setter = "rotation")]
231    pub fn set_rotation(this: &VideoFrameBufferInit, val: f64);
232    #[cfg(web_sys_unstable_apis)]
233    #[doc = "Get the `timestamp` field of this object."]
234    #[doc = ""]
235    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
236    #[doc = ""]
237    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
238    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
239    #[wasm_bindgen(method, getter = "timestamp")]
240    pub fn get_timestamp(this: &VideoFrameBufferInit) -> f64;
241    #[cfg(web_sys_unstable_apis)]
242    #[doc = "Change the `timestamp` field of this object."]
243    #[doc = ""]
244    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
245    #[doc = ""]
246    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
247    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
248    #[wasm_bindgen(method, setter = "timestamp")]
249    pub fn set_timestamp(this: &VideoFrameBufferInit, val: i32);
250    #[cfg(web_sys_unstable_apis)]
251    #[doc = "Change the `timestamp` field of this object."]
252    #[doc = ""]
253    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
254    #[doc = ""]
255    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
256    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
257    #[wasm_bindgen(method, setter = "timestamp")]
258    pub fn set_timestamp_f64(this: &VideoFrameBufferInit, val: f64);
259    #[cfg(web_sys_unstable_apis)]
260    #[doc = "Get the `transfer` field of this object."]
261    #[doc = ""]
262    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
263    #[doc = ""]
264    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
265    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
266    #[wasm_bindgen(method, getter = "transfer")]
267    pub fn get_transfer(
268        this: &VideoFrameBufferInit,
269    ) -> Option<::js_sys::Array<::js_sys::ArrayBuffer>>;
270    #[cfg(web_sys_unstable_apis)]
271    #[doc = "Change the `transfer` field of this object."]
272    #[doc = ""]
273    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"]
274    #[doc = ""]
275    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
276    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
277    #[wasm_bindgen(method, setter = "transfer")]
278    pub fn set_transfer(this: &VideoFrameBufferInit, val: &[::js_sys::ArrayBuffer]);
279    #[cfg(web_sys_unstable_apis)]
280    #[cfg(feature = "DomRectInit")]
281    #[doc = "Get the `visibleRect` field of this object."]
282    #[doc = ""]
283    #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameBufferInit`*"]
284    #[doc = ""]
285    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
286    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
287    #[wasm_bindgen(method, getter = "visibleRect")]
288    pub fn get_visible_rect(this: &VideoFrameBufferInit) -> Option<DomRectInit>;
289    #[cfg(web_sys_unstable_apis)]
290    #[cfg(feature = "DomRectInit")]
291    #[doc = "Change the `visibleRect` field of this object."]
292    #[doc = ""]
293    #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameBufferInit`*"]
294    #[doc = ""]
295    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
296    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
297    #[wasm_bindgen(method, setter = "visibleRect")]
298    pub fn set_visible_rect(this: &VideoFrameBufferInit, val: &DomRectInit);
299}
300#[cfg(web_sys_unstable_apis)]
301impl VideoFrameBufferInit {
302    #[cfg(feature = "VideoPixelFormat")]
303    #[doc = "Construct a new `VideoFrameBufferInit`."]
304    #[doc = ""]
305    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"]
306    #[doc = ""]
307    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
308    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
309    pub fn new(
310        coded_height: u32,
311        coded_width: u32,
312        format: VideoPixelFormat,
313        timestamp: i32,
314    ) -> Self {
315        #[allow(unused_mut)]
316        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
317        ret.set_coded_height(coded_height);
318        ret.set_coded_width(coded_width);
319        ret.set_format(format);
320        ret.set_timestamp(timestamp);
321        ret
322    }
323    #[cfg(feature = "VideoPixelFormat")]
324    #[doc = "Construct a new `VideoFrameBufferInit`."]
325    #[doc = ""]
326    #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"]
327    #[doc = ""]
328    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
329    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
330    pub fn new_with_f64(
331        coded_height: u32,
332        coded_width: u32,
333        format: VideoPixelFormat,
334        timestamp: f64,
335    ) -> Self {
336        #[allow(unused_mut)]
337        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
338        ret.set_coded_height(coded_height);
339        ret.set_coded_width(coded_width);
340        ret.set_format(format);
341        ret.set_timestamp_f64(timestamp);
342        ret
343    }
344    #[cfg(web_sys_unstable_apis)]
345    #[deprecated = "Use `set_coded_height()` instead."]
346    pub fn coded_height(&mut self, val: u32) -> &mut Self {
347        self.set_coded_height(val);
348        self
349    }
350    #[cfg(web_sys_unstable_apis)]
351    #[deprecated = "Use `set_coded_width()` instead."]
352    pub fn coded_width(&mut self, val: u32) -> &mut Self {
353        self.set_coded_width(val);
354        self
355    }
356    #[cfg(web_sys_unstable_apis)]
357    #[cfg(feature = "VideoColorSpaceInit")]
358    #[deprecated = "Use `set_color_space()` instead."]
359    pub fn color_space(&mut self, val: &VideoColorSpaceInit) -> &mut Self {
360        self.set_color_space(val);
361        self
362    }
363    #[cfg(web_sys_unstable_apis)]
364    #[deprecated = "Use `set_display_height()` instead."]
365    pub fn display_height(&mut self, val: u32) -> &mut Self {
366        self.set_display_height(val);
367        self
368    }
369    #[cfg(web_sys_unstable_apis)]
370    #[deprecated = "Use `set_display_width()` instead."]
371    pub fn display_width(&mut self, val: u32) -> &mut Self {
372        self.set_display_width(val);
373        self
374    }
375    #[cfg(web_sys_unstable_apis)]
376    #[deprecated = "Use `set_duration()` instead."]
377    pub fn duration(&mut self, val: u32) -> &mut Self {
378        self.set_duration(val);
379        self
380    }
381    #[cfg(web_sys_unstable_apis)]
382    #[deprecated = "Use `set_flip()` instead."]
383    pub fn flip(&mut self, val: bool) -> &mut Self {
384        self.set_flip(val);
385        self
386    }
387    #[cfg(web_sys_unstable_apis)]
388    #[cfg(feature = "VideoPixelFormat")]
389    #[deprecated = "Use `set_format()` instead."]
390    pub fn format(&mut self, val: VideoPixelFormat) -> &mut Self {
391        self.set_format(val);
392        self
393    }
394    #[cfg(web_sys_unstable_apis)]
395    #[cfg(feature = "PlaneLayout")]
396    #[deprecated = "Use `set_layout()` instead."]
397    pub fn layout(&mut self, val: &[PlaneLayout]) -> &mut Self {
398        self.set_layout(val);
399        self
400    }
401    #[cfg(web_sys_unstable_apis)]
402    #[cfg(feature = "VideoFrameMetadata")]
403    #[deprecated = "Use `set_metadata()` instead."]
404    pub fn metadata(&mut self, val: &VideoFrameMetadata) -> &mut Self {
405        self.set_metadata(val);
406        self
407    }
408    #[cfg(web_sys_unstable_apis)]
409    #[deprecated = "Use `set_rotation()` instead."]
410    pub fn rotation(&mut self, val: f64) -> &mut Self {
411        self.set_rotation(val);
412        self
413    }
414    #[cfg(web_sys_unstable_apis)]
415    #[deprecated = "Use `set_timestamp()` instead."]
416    pub fn timestamp(&mut self, val: i32) -> &mut Self {
417        self.set_timestamp(val);
418        self
419    }
420    #[cfg(web_sys_unstable_apis)]
421    #[deprecated = "Use `set_transfer()` instead."]
422    pub fn transfer(&mut self, val: &[::js_sys::ArrayBuffer]) -> &mut Self {
423        self.set_transfer(val);
424        self
425    }
426    #[cfg(web_sys_unstable_apis)]
427    #[cfg(feature = "DomRectInit")]
428    #[deprecated = "Use `set_visible_rect()` instead."]
429    pub fn visible_rect(&mut self, val: &DomRectInit) -> &mut Self {
430        self.set_visible_rect(val);
431        self
432    }
433}