Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -3654,7 +3654,7 @@
1. If |init| is not a [=valid VideoFrameBufferInit=], throw a {{TypeError}}.
2. Let |defaultRect| be «[ "x:" → `0`, "y" → `0`,
"width" → |init|.{{VideoFrameBufferInit/codedWidth}}, "height" →
|init|.{{VideoFrameBufferInit/codedWidth}} ]».
|init|.{{VideoFrameBufferInit/codedHeight}} ]».
3. Let |overrideRect| be `undefined`.
4. If |init|.{{VideoFrameBufferInit/visibleRect}} [=map/exists=], assign its
value to |overrideRect|.
Expand Down Expand Up @@ -4017,19 +4017,22 @@
increase |displayWidth| or |displayHeight| until the ratio of
|displayWidth| to |displayHeight| matches the ratio of
|displayAspectWidth| to |displayAspectHeight|.
9. Assign |codedWidth|, |codedHeight|, |visibleLeft|, |visibleTop|,
9. If |rotation| is `90` or `270`, swap |displayWidth| and
|displayHeight|.
10. Assign |codedWidth|, |codedHeight|, |visibleLeft|, |visibleTop|,
|visibleWidth|, |visibleHeight|, |displayWidth|, and
|displayHeight| to {{VideoFrame/[[coded width]]}},
{{VideoFrame/[[coded height]]}}, {{VideoFrame/[[visible left]]}},
{{VideoFrame/[[visible top]]}}, {{VideoFrame/[[visible width]]}},
and {{VideoFrame/[[visible height]]}} respectively.
10. Assign |duration| and |timestamp| to {{VideoFrame/[[duration]]}} and
{{VideoFrame/[[visible height]]}}, {{VideoFrame/[[display width]]}},
and {{VideoFrame/[[display height]]}} respectively.
11. Assign |duration| and |timestamp| to {{VideoFrame/[[duration]]}} and
{{VideoFrame/[[timestamp]]}} respectively.
11. Assign {{VideoFrame/[[color space]]}} with the result of running the
12. Assign {{VideoFrame/[[color space]]}} with the result of running the
[=VideoFrame/Pick Color Space=] algorithm, with |colorSpace| and
{{VideoFrame/[[format]]}}.
12. Assign {{VideoFrame/rotation}} and {{VideoFrame/flip}} to |rotation|
and |flip| respectively.
13. Assign |rotation| and |flip| to {{VideoFrame/[[rotation]]}} and
{{VideoFrame/[[flip]]}} respectively.
2. Return |frame|.


Expand Down Expand Up @@ -4134,7 +4137,7 @@
2. If |resource| uses a recognized {{VideoPixelFormat}}, assign the
{{VideoPixelFormat}} of |resource| to |format|.
3. Let |validInit| be the result of running the [=Validate VideoFrameInit=]
algorithm with |format|, |width| and |height|.
algorithm with |format|, |codedWidth| and |codedHeight|.
4. If |validInit| is `false`, throw a {{TypeError}}.
5. Assign a new reference for |resource| to |frame|'s
{{VideoFrame/[[resource reference]]}}.
Expand All @@ -4147,8 +4150,8 @@
9. Let |defaultVisibleRect| be a new {{DOMRect}} constructed with
«[ "x:" → `0`, "y" → `0`, "width" → |codedWidth|, "height" → |codedHeight| ]»
10. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=]
algorithm with |init|, |frame|, |defaultVisibleRect|,
|defaultDisplayWidth|, and |defaultDisplayHeight|.
algorithm with |init|, |frame|, |defaultVisibleRect|, |baseRotation|,
|baseFlip|, |defaultDisplayWidth|, and |defaultDisplayHeight|.
11. Assign `init`.{{VideoFrameInit/duration}} to
|frame|'s {{VideoFrame/[[duration]]}}.
12. Assign `init`.{{VideoFrameInit/timestamp}} to
Expand Down
Loading