<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Theora.core.setVideoSurface</id>
	<title>Theora.core.setVideoSurface - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Theora.core.setVideoSurface"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Theora.core.setVideoSurface&amp;action=history"/>
	<updated>2026-11-17T12:06:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Theora.core.setVideoSurface&amp;diff=25509&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;__NOTOC__ &#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2017.10&lt;br/&gt; &#039;&#039;&#039;Class:&#039;&#039;&#039; Ogg&lt;br/&gt;  === Description === Attaches the textures that receive the decoded Y, U and V planes of a vide...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Theora.core.setVideoSurface&amp;diff=25509&amp;oldid=prev"/>
		<updated>2026-11-13T22:18:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2017.10&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/Ogg&quot; title=&quot;Ogg&quot;&gt;Ogg&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === Attaches the textures that receive the decoded Y, U and V planes of a vide...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2017.10&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[Ogg]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Attaches the textures that receive the decoded Y, U and V planes of a video stream. Theora:play() calls this automatically with three textures created for the stream; it only needs to be called when the video is drawn by custom code.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
theora.core.setVideoSurface(streamId,yTexture,uTexture,vTexture)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Y texture may define a _videoSizeUpdated(width, height) method. The plugin calls it whenever the decoded picture size changes, which lets the receiving meshes fix their texture coordinates.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;streamId&amp;#039;&amp;#039;&amp;#039;: (number) the id returned by channel:getStreamId()&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;yTexture&amp;#039;&amp;#039;&amp;#039;: (TextureBase) full size luma surface&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;uTexture&amp;#039;&amp;#039;&amp;#039;: (TextureBase) chroma surface, half width and half height&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;vTexture&amp;#039;&amp;#039;&amp;#039;: (TextureBase) chroma surface, half width and half height&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Ogg}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>