This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gamedev:canvassystem:video [2015/06/17 23:31] – created dragonlord | gamedev:canvassystem:video [2024/03/14 16:50] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | gamedev: | + | {{tag> |
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
====== Canvas Video Player ====== | ====== Canvas Video Player ====== | ||
- | Video player canvas display a [[http:// | + | Video player canvas display a # |
The video is scaled to fill the entire canvas. This requires the canvas size to be set to the video size for proper 1-on-1 pixel matching. A transformation matrix can be used to apply effects like stretching if required. Canvas video players have a **repeat-x** and **repeat-y** parameter. The default value for both repeat parameters is 1 displaying the stretched video frame exactly once. Using repetition values larger than 1 duplicates the video frame along the respective axis. The repeated video frames are stretched to fill the entire canvas. Thus increasing the repetition does not enlarge the canvas but simply tiles the video frame in the respective direction fitting into the same canvas content area as with no repetition used. | The video is scaled to fill the entire canvas. This requires the canvas size to be set to the video size for proper 1-on-1 pixel matching. A transformation matrix can be used to apply effects like stretching if required. Canvas video players have a **repeat-x** and **repeat-y** parameter. The default value for both repeat parameters is 1 displaying the stretched video frame exactly once. Using repetition values larger than 1 duplicates the video frame along the respective axis. The repeated video frames are stretched to fill the entire canvas. Thus increasing the repetition does not enlarge the canvas but simply tiles the video frame in the respective direction fitting into the same canvas content area as with no repetition used. |