<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
	<title>Comments for All My Brain</title>
	
	<link>http://allmybrain.com</link>
	<description>Where stuff from my brain lands</description>
	<lastBuildDate>Sat, 05 May 2012 12:28:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForAllMyBrain" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="commentsforallmybrain" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Quick convert raw g711 uLaw audio to a .au file by toanhoi</title>
		<link>http://allmybrain.com/2012/03/16/quick-convert-raw-g711-ulaw-audio-to-a-au-file/comment-page-1/#comment-1265</link>
		<dc:creator>toanhoi</dc:creator>
		<pubDate>Sat, 05 May 2012 12:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=478#comment-1265</guid>
		<description>Good idea. I want to convert this code to Java. Can you help me. 
			byte  []  header*= {  (byte*) 0x2e736e64}; //24, 0xffffffff, 1, (byte) 8000, 1 };
			FileOutputStream out = new FileOutputStream(file);
			out.write(header);</description>
		<content:encoded><![CDATA[<p>Good idea. I want to convert this code to Java. Can you help me.<br />
			byte  []  header*= {  (byte*) 0x2e736e64}; //24, 0xffffffff, 1, (byte) 8000, 1 };<br />
			FileOutputStream out = new FileOutputStream(file);<br />
			out.write(header);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Similarity of texts: The Vector Space Model with Python by Dennis</title>
		<link>http://allmybrain.com/2007/10/19/similarity-of-texts-the-vector-space-model-with-python/comment-page-1/#comment-1264</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sun, 15 Apr 2012 19:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/19/similarity-of-texts-the-vector-space-model-with-python/#comment-1264</guid>
		<description>Updated, thanks for letting me know.</description>
		<content:encoded><![CDATA[<p>Updated, thanks for letting me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Similarity of texts: The Vector Space Model with Python by Tyler</title>
		<link>http://allmybrain.com/2007/10/19/similarity-of-texts-the-vector-space-model-with-python/comment-page-1/#comment-1263</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Fri, 13 Apr 2012 06:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/10/19/similarity-of-texts-the-vector-space-model-with-python/#comment-1263</guid>
		<description>Hey Dennis,

Thanks again for linking to my online cosine similarity calculator.  I have moved it (hopefully for the last time) over to:

http://www.appliedsoftwaredesign.com/archives/cosine-similarity-calculator

(Feel free to delete this comment.  Just wanted to give ya a heads up).

Thanks again!</description>
		<content:encoded><![CDATA[<p>Hey Dennis,</p>
<p>Thanks again for linking to my online cosine similarity calculator.  I have moved it (hopefully for the last time) over to:</p>
<p><a href="http://www.appliedsoftwaredesign.com/archives/cosine-similarity-calculator" rel="nofollow">http://www.appliedsoftwaredesign.com/archives/cosine-similarity-calculator</a></p>
<p>(Feel free to delete this comment.  Just wanted to give ya a heads up).</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Kevin</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1262</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 28 Feb 2012 23:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1262</guid>
		<description>Yeah I got it working also, pretty cool stuff. This blog post and the comments have been very helpful, thanks!</description>
		<content:encoded><![CDATA[<p>Yeah I got it working also, pretty cool stuff. This blog post and the comments have been very helpful, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Dennis</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1261</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Mon, 27 Feb 2012 16:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1261</guid>
		<description>I think by "empty" you meant that it's uninitialized memory right?  You do have to create the pixel buffer but that buffer does not have to be initially filled and it doesn't have to be passed to you from the camera api or something.  But yes, you fill the texture in opengl that is backed by your pixel buffer in the texture cache and that in turn can be read out and handled how you want.</description>
		<content:encoded><![CDATA[<p>I think by &#8220;empty&#8221; you meant that it&#8217;s uninitialized memory right?  You do have to create the pixel buffer but that buffer does not have to be initially filled and it doesn&#8217;t have to be passed to you from the camera api or something.  But yes, you fill the texture in opengl that is backed by your pixel buffer in the texture cache and that in turn can be read out and handled how you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Kevin</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1260</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 25 Feb 2012 01:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1260</guid>
		<description>Great, thanks Dennis.

Just to be clear, is it possible to use this to render OpenGL data to an empty CVPixelBuffer, and then read that CVPixelBuffer from the CPU? In other words, is it fine if the CVPixelBufferRef doesn't actually hold any texture?</description>
		<content:encoded><![CDATA[<p>Great, thanks Dennis.</p>
<p>Just to be clear, is it possible to use this to render OpenGL data to an empty CVPixelBuffer, and then read that CVPixelBuffer from the CPU? In other words, is it fine if the CVPixelBufferRef doesn&#8217;t actually hold any texture?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by supadenz</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1259</link>
		<dc:creator>supadenz</dc:creator>
		<pubDate>Wed, 22 Feb 2012 17:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1259</guid>
		<description>I got all of this working, thank you so much. The examples and discussion here were much more helpful than even the apple sample code.

Does anyone have any information on how this works under the hood? I'm assuming there is some unique hardware being leveraged here. I haven't been able to find any information on this at all.</description>
		<content:encoded><![CDATA[<p>I got all of this working, thank you so much. The examples and discussion here were much more helpful than even the apple sample code.</p>
<p>Does anyone have any information on how this works under the hood? I&#8217;m assuming there is some unique hardware being leveraged here. I haven&#8217;t been able to find any information on this at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Dennis</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1258</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 21 Feb 2012 22:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1258</guid>
		<description>I could easily do 30 fps unless I needed to do a color conversion from the rendered BGRA texture to something else.  I don't think you can get anything out of the OpenGL texture besides the BGRA so if you can't use BGRA and you need to convert it that will add much more time to the process than it takes to render the texture.</description>
		<content:encoded><![CDATA[<p>I could easily do 30 fps unless I needed to do a color conversion from the rendered BGRA texture to something else.  I don&#8217;t think you can get anything out of the OpenGL texture besides the BGRA so if you can&#8217;t use BGRA and you need to convert it that will add much more time to the process than it takes to render the texture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Kevin</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1257</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 21 Feb 2012 22:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1257</guid>
		<description>What kind of recording FPS are you guys getting with this? I hear with glReadPixels, you get around ~10-15 FPS.</description>
		<content:encoded><![CDATA[<p>What kind of recording FPS are you guys getting with this? I hear with glReadPixels, you get around ~10-15 FPS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Dennis</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1256</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 17 Feb 2012 20:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1256</guid>
		<description>Look back a number of posts where Jaris posted some code.  You might need to change either the orientation of the texture vertices or square vertices.  One thing I think is that iOS renders from bottom to top instead of top to bottom like some opengl implementations I've heard, so a lot of times you get an upside down image at the start.  I rendered my image like Jaris did.  Notice the texture Vertices are shaped like a Z, starting at the bottom and going toward the top.</description>
		<content:encoded><![CDATA[<p>Look back a number of posts where Jaris posted some code.  You might need to change either the orientation of the texture vertices or square vertices.  One thing I think is that iOS renders from bottom to top instead of top to bottom like some opengl implementations I&#8217;ve heard, so a lot of times you get an upside down image at the start.  I rendered my image like Jaris did.  Notice the texture Vertices are shaped like a Z, starting at the bottom and going toward the top.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by supadenz</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1255</link>
		<dc:creator>supadenz</dc:creator>
		<pubDate>Fri, 17 Feb 2012 20:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1255</guid>
		<description>I got this working for the most part in both directions. Pretty incredible stuff.

One issue I'm having, though, is that the pixelbuffer that mirrors the framebuffer seems to be flipped in both axes. I can clearly transform that after the fact, but there must be a way to make this happen more directly in the rendering pipeline.

This is ringing some opengl bell in the recesses of my brain, any advice?</description>
		<content:encoded><![CDATA[<p>I got this working for the most part in both directions. Pretty incredible stuff.</p>
<p>One issue I&#8217;m having, though, is that the pixelbuffer that mirrors the framebuffer seems to be flipped in both axes. I can clearly transform that after the fact, but there must be a way to make this happen more directly in the rendering pipeline.</p>
<p>This is ringing some opengl bell in the recesses of my brain, any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handbrake can convert MTS files for Mac by skin</title>
		<link>http://allmybrain.com/2010/01/05/handbrake-can-convert-mts-files-for-mac/comment-page-1/#comment-1254</link>
		<dc:creator>skin</dc:creator>
		<pubDate>Fri, 17 Feb 2012 02:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=336#comment-1254</guid>
		<description>this answer is exactly what i'm looking for of all other google search result. thanks for sharing! good job.</description>
		<content:encoded><![CDATA[<p>this answer is exactly what i&#8217;m looking for of all other google search result. thanks for sharing! good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Dennis</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1253</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Thu, 16 Feb 2012 16:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1253</guid>
		<description>Good question.  All the documentation I ever read always used NULL there when creating the texture from the CVImage.  I've never had any reason to try and use something else.  Do you have something specific you need to accomplish?</description>
		<content:encoded><![CDATA[<p>Good question.  All the documentation I ever read always used NULL there when creating the texture from the CVImage.  I&#8217;ve never had any reason to try and use something else.  Do you have something specific you need to accomplish?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Teamster</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1252</link>
		<dc:creator>Teamster</dc:creator>
		<pubDate>Thu, 16 Feb 2012 09:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1252</guid>
		<description>Have you gotten anything working using anything other than NULL for  "// texture attributes"
I can't find a documented case of how to use them anywhere.</description>
		<content:encoded><![CDATA[<p>Have you gotten anything working using anything other than NULL for  &#8220;// texture attributes&#8221;<br />
I can&#8217;t find a documented case of how to use them anywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handbrake can convert MTS files for Mac by Apple frustrations with .MTS video files « RickMcCharles.com</title>
		<link>http://allmybrain.com/2010/01/05/handbrake-can-convert-mts-files-for-mac/comment-page-1/#comment-1251</link>
		<dc:creator>Apple frustrations with .MTS video files « RickMcCharles.com</dc:creator>
		<pubDate>Sun, 12 Feb 2012 04:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=336#comment-1251</guid>
		<description>[...] details – Handbrake can convert MTS files for Mac [...]</description>
		<content:encoded><![CDATA[<p>[...] details &#8211; Handbrake can convert MTS files for Mac [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by jaras</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1250</link>
		<dc:creator>jaras</dc:creator>
		<pubDate>Tue, 07 Feb 2012 16:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1250</guid>
		<description>@Duncan - Duncan if you can mail me ChromaKey example I will greatly appreciate it. My email is siska10@me.com.
Thank you. jaras</description>
		<content:encoded><![CDATA[<p>@Duncan &#8211; Duncan if you can mail me ChromaKey example I will greatly appreciate it. My email is <a href="mailto:siska10@me.com">siska10@me.com</a>.<br />
Thank you. jaras</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Example Image Upload with YUI Rich Text Editor 2.7.0 by Ozan</title>
		<link>http://allmybrain.com/2009/07/01/example-image-upload-with-yui-rich-text-editor-270/comment-page-1/#comment-1249</link>
		<dc:creator>Ozan</dc:creator>
		<pubDate>Sun, 05 Feb 2012 23:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=296#comment-1249</guid>
		<description>Hello thanks for this document, love your articles :) see u later.</description>
		<content:encoded><![CDATA[<p>Hello thanks for this document, love your articles <img src='http://allmybrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  see u later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Duncan C</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1248</link>
		<dc:creator>Duncan C</dc:creator>
		<pubDate>Thu, 02 Feb 2012 20:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1248</guid>
		<description>Folks,

Session 419 from the 2011 WWDC covers this in some detail. There is a fully functioning sample app, ChromaKey, that shows an end-to-end solution. It takes 1024x768 video from an iPad 2, renders it in OpenGL, uses a shader to "knock out" the background color, and then displays the result to the screen, with an option to save it to a video file in your photo library. The video file is also at 1024x768, at 30 fps.

The app isn't publicly available, but I emailed Eryk Vershen  and asked him, and he sent it to me. He specifically asked me not to post it online, but if you PM me I can send it to you. I haven't posted to this blog before, so I'm not sure how to get replies. I'll try to check in, or do a search for WareTo do com and send me an email there. (I'm not going to post my email because I don't want the spam bots to find me.)

Duncan C</description>
		<content:encoded><![CDATA[<p>Folks,</p>
<p>Session 419 from the 2011 WWDC covers this in some detail. There is a fully functioning sample app, ChromaKey, that shows an end-to-end solution. It takes 1024&#215;768 video from an iPad 2, renders it in OpenGL, uses a shader to &#8220;knock out&#8221; the background color, and then displays the result to the screen, with an option to save it to a video file in your photo library. The video file is also at 1024&#215;768, at 30 fps.</p>
<p>The app isn&#8217;t publicly available, but I emailed Eryk Vershen  and asked him, and he sent it to me. He specifically asked me not to post it online, but if you PM me I can send it to you. I haven&#8217;t posted to this blog before, so I&#8217;m not sure how to get replies. I&#8217;ll try to check in, or do a search for WareTo do com and send me an email there. (I&#8217;m not going to post my email because I don&#8217;t want the spam bots to find me.)</p>
<p>Duncan C</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by jaras</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1247</link>
		<dc:creator>jaras</dc:creator>
		<pubDate>Thu, 02 Feb 2012 07:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1247</guid>
		<description>Poopi is right. On the device it really works, on simulator it does not. Should try sooner - I know that  CIContext method render:toCVPixelBuffer: works only with device.</description>
		<content:encoded><![CDATA[<p>Poopi is right. On the device it really works, on simulator it does not. Should try sooner &#8211; I know that  CIContext method render:toCVPixelBuffer: works only with device.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rendering to a texture with iOS 5 texture cache api. by Dennis</title>
		<link>http://allmybrain.com/2011/12/08/rendering-to-a-texture-with-ios-5-texture-cache-api/comment-page-1/#comment-1246</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Wed, 01 Feb 2012 22:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/?p=443#comment-1246</guid>
		<description>Glad to hear it's working for you.  Perhaps I should mention that it only works on a device in the article.  Think I knew that actually but hadn't called it out.</description>
		<content:encoded><![CDATA[<p>Glad to hear it&#8217;s working for you.  Perhaps I should mention that it only works on a device in the article.  Think I knew that actually but hadn&#8217;t called it out.</p>
]]></content:encoded>
	</item>
</channel>
</rss><!-- Dynamic page generated in 0.641 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-05 06:40:05 --><!-- Compression = gzip -->

