﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-小糊涂的移动技术BLOG(Mobile Excite World)-最新评论</title><link>http://www.cnblogs.com/cnsoft/CommentsRSS.aspx</link><description>Mobile Dev Symbian/JavaMe/
Web Dev php/web 2.0/ 
Now Iphone.Opengles  android is planning.

</description><language>zh-cn</language><pubDate>Sat, 08 May 2010 11:31:15 GMT</pubDate><lastBuildDate>Sat, 08 May 2010 11:31:15 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:Hi guys, 48 MB of mixed Appz  maybe they will be usefull...</title><link>http://www.cnblogs.com/cnsoft/archive/2009/12/11/323503.html#1721780</link><dc:creator>于蛋蛋</dc:creator><author>于蛋蛋</author><pubDate>Fri, 11 Dec 2009 09:38:30 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/12/11/323503.html#1721780</guid><description><![CDATA[ thanks<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">于蛋蛋</a> 2009-12-11 17:38 <a href="http://www.cnblogs.com/cnsoft/archive/2009/12/11/323503.html#1721780#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re: Download TinyLine 2D </title><link>http://www.cnblogs.com/cnsoft/archive/2009/12/07/278420.html#1716783</link><dc:creator>cougar4309</dc:creator><author>cougar4309</author><pubDate>Mon, 07 Dec 2009 09:21:41 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/12/07/278420.html#1716783</guid><description><![CDATA[chenjianhong1984@126.com
Please send these files to me! Thx!<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">cougar4309</a> 2009-12-07 17:21 <a href="http://www.cnblogs.com/cnsoft/archive/2009/12/07/278420.html#1716783#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:Hi guys, 48 MB of mixed Appz  maybe they will be usefull...</title><link>http://www.cnblogs.com/cnsoft/archive/2009/09/12/323503.html#1644191</link><dc:creator>sri</dc:creator><author>sri</author><pubDate>Sat, 12 Sep 2009 01:28:06 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/09/12/323503.html#1644191</guid><description><![CDATA[send me sms planner cracked. chin.sriv@gmail.com<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">sri</a> 2009-09-12 09:28 <a href="http://www.cnblogs.com/cnsoft/archive/2009/09/12/323503.html#1644191#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re: Download TinyLine 2D </title><link>http://www.cnblogs.com/cnsoft/archive/2009/08/02/278420.html#1603069</link><dc:creator>celia</dc:creator><author>celia</author><pubDate>Sun, 02 Aug 2009 04:07:33 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/08/02/278420.html#1603069</guid><description><![CDATA[21575831@qq.com
I can't download these files,though i have registed.
Would you like to send me these files,please?I need them very much.
Thanks a million.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">celia</a> 2009-08-02 12:07 <a href="http://www.cnblogs.com/cnsoft/archive/2009/08/02/278420.html#1603069#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re:  Download TinyLine 2D </title><link>http://www.cnblogs.com/cnsoft/archive/2009/04/29/278420.html#1515421</link><dc:creator>juan</dc:creator><author>juan</author><pubDate>Wed, 29 Apr 2009 06:55:12 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/04/29/278420.html#1515421</guid><description><![CDATA[susan.zhou.cn@hotmail.com<br/>Please send these files to me! Thx!<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">juan</a> 2009-04-29 14:55 <a href="http://www.cnblogs.com/cnsoft/archive/2009/04/29/278420.html#1515421#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re:  Download TinyLine 2D </title><link>http://www.cnblogs.com/cnsoft/archive/2009/04/03/278420.html#1495176</link><dc:creator>bwlee</dc:creator><author>bwlee</author><pubDate>Fri, 03 Apr 2009 09:14:14 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/04/03/278420.html#1495176</guid><description><![CDATA[Hi, I am interested in tinyline too, but I need some alternative for better performance, any advice? <br/><br/>Thanks!<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">bwlee</a> 2009-04-03 17:14 <a href="http://www.cnblogs.com/cnsoft/archive/2009/04/03/278420.html#1495176#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re:  Download TinyLine 2D </title><link>http://www.cnblogs.com/cnsoft/archive/2009/03/18/278420.html#1480614</link><dc:creator>小糊涂的超级blog</dc:creator><author>小糊涂的超级blog</author><pubDate>Wed, 18 Mar 2009 14:50:13 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/03/18/278420.html#1480614</guid><description><![CDATA[@fragileheart2<br/>In fact, you can find my mail address. you can send mail to me.<br/>at least, you should leave your mail? nothing... how can i find you!<br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">小糊涂的超级blog</a> 2009-03-18 22:50 <a href="http://www.cnblogs.com/cnsoft/archive/2009/03/18/278420.html#1480614#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re:  Download TinyLine 2D </title><link>http://www.cnblogs.com/cnsoft/archive/2009/03/17/278420.html#1478785</link><dc:creator>kingble</dc:creator><author>kingble</author><pubDate>Tue, 17 Mar 2009 02:45:40 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2009/03/17/278420.html#1478785</guid><description><![CDATA[I can't download these files despite my successfully registering too. <br/>Please send these file to me by kingble__w@163.com, <br/>Thanks a million.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">kingble</a> 2009-03-17 10:45 <a href="http://www.cnblogs.com/cnsoft/archive/2009/03/17/278420.html#1478785#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: imageNamed vs imageWithContentsOfFile</title><link>http://www.cnblogs.com/cnsoft/archive/2008/12/26/1363032.html#1414692</link><dc:creator>lipeng219901</dc:creator><author>lipeng219901</author><pubDate>Fri, 26 Dec 2008 10:45:08 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2008/12/26/1363032.html#1414692</guid><description><![CDATA[刚才流言的时候，太长了有段代码没有加上去，补充如下：<br/>- (void)layoutSubviews<br/>{<br/>		<br/>	[EAGLContext setCurrentContext:context];<br/>	[self destroyFramebuffer];<br/>	[self createFramebuffer];<br/>	<br/>	set_view(self);/* initialize the object */<br/>	printf(&quot;layoutSubviews: contextwidth = %d, contextheight = %d \n&quot;, contextwidth , contextheight);<br/><br/>	spriteData = (GLubyte *) malloc(contextwidth * contextheight * 2);// Allocated memory needed for the bitmap context<br/>	if(!spriteData) return ;<br/>		<br/>	pp.should_buffer_time = 6000;<br/>	strcpy(pp.host_addr, &quot;218.204.255.133&quot;);<br/>	pp.hostport = 9901;<br/>	strcpy(pp.play_url,&quot;tmss://tmes_123&quot;);<br/>	<br/>	pp.av_flag = 3;/* it is important */<br/>	<br/>	pp.render_user_data = (void *)spriteData;/* it is not used */<br/>	pp.UI_render_image_func = (void *)render_callback;	<br/>	pp.framebuffer = (void *)spriteData;<br/>	<br/>	player = tmpc_init(call_back_invoke, nil, nil);<br/>	tmpc_start(player, &amp;pp);<br/>	<br/>	NSLog(@&quot;enter layoutSubviews self = 0x%x \n&quot;, self);<br/>}<br/><br/><br/><br/><br/>/* generate frame and render buffer for opengl  */<br/>- (BOOL)createFramebuffer<br/>{<br/>	glGenFramebuffersOES(1, &amp;viewFramebuffer);/*0x01*/<br/>	glGenRenderbuffersOES(1, &amp;viewRenderbuffer);/*0x01*/<br/>	<br/>	glBindFramebufferOES(GL_FRAMEBUFFER_OES, viewFramebuffer);<br/>	glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);<br/>	<br/>	[context renderbufferStorage:GL_RENDERBUFFER_OES fromDrawable:(id&lt;EAGLDrawable&gt;)self.layer];<br/>	glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_OES, GL_RENDERBUFFER_OES, viewRenderbuffer);<br/>	<br/>	glGetRenderbufferParameterivOES(GL_RENDERBUFFER_OES, GL_RENDERBUFFER_WIDTH_OES, &amp;backingWidth);/* output : 320 */<br/>	glGetRenderbufferParameterivOES(GL_RENDERBUFFER_OES, GL_RENDERBUFFER_HEIGHT_OES, &amp;backingHeight);/* output: 480 */<br/>	<br/>	if(glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES) != GL_FRAMEBUFFER_COMPLETE_OES) <br/>	{<br/>		NSLog(@&quot;failed to make complete framebuffer object %x&quot;, glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES));<br/>		return NO;<br/>	}<br/>	<br/>	return YES;<br/>}<br/><br/><br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">lipeng219901</a> 2008-12-26 18:45 <a href="http://www.cnblogs.com/cnsoft/archive/2008/12/26/1363032.html#1414692#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: imageNamed vs imageWithContentsOfFile</title><link>http://www.cnblogs.com/cnsoft/archive/2008/12/26/1363032.html#1414690</link><dc:creator>lipeng219901</dc:creator><author>lipeng219901</author><pubDate>Fri, 26 Dec 2008 10:41:14 GMT</pubDate><guid>http://www.cnblogs.com/cnsoft/archive/2008/12/26/1363032.html#1414690</guid><description><![CDATA[楼主，你好： 请教一个关于 apple iphone 的问题，如何使用 opengles方式回显流媒体video 。 <br/><br/>通常在类似wince/linux等等平台上，均使用 framebuffer的方式进行video的回显。但是在iphone官方sdk2.2 上，使用opengles 时 ，无法得到buffer的首地址. <br/><br/>使用opengles的代码如下： 其中spriteData内存指针，在播放器中，用来填写video frame的rgb565数据。 glTexSubImage2D 函数消耗较大，严重 影响系统性能 。 <br/><br/>请楼主多多指点，opengles 应该如何使用啊 ？ msn :lipeng9901@hotmail. com 大家是知音啊，现在主要是做iphone2.2官方版本的流媒体开发，一直做手机开发，期待有机会多多交流，呵呵，少走弯路。<br/><br/>static int  set_view(void *this)<br/>{<br/>	myview = (EAGLView  *) this;/* initialize object */<br/>	NSLog(@&quot;set_view:myview is 0x%x \n&quot;, myview);<br/>}<br/><br/><br/>int  render_callback(void *use_data, void *framebuffer, unsigned int *nextbuffer)<br/>{	<br/>	[myview drawView]; /* render texture */<br/>}<br/><br/><br/>static void call_back_invoke(void *user, int notify_id, unsigned int param)<br/>{<br/>	return;<br/>}<br/><br/>@interface EAGLView (EAGLViewPrivate)<br/><br/>- (BOOL)createFramebuffer;<br/>- (void)destroyFramebuffer;<br/><br/>@end<br/><br/>@interface EAGLView (EAGLViewSprite)<br/><br/>- (void)setupView;<br/><br/>@end<br/><br/><br/>@implementation EAGLView<br/><br/>/* vetext data : full screen display , (0, 0) is the center of the screen */<br/>const GLfloat spriteVertices[] = <br/>{<br/>-1.5f, 1.5f,<br/>1.5f, 1.5f,<br/>-1.5f, -1.5f,<br/>1.5f, -1.5f,<br/>};<br/><br/>// Sets up an array of values for the texture coordinates.<br/>const GLshort spriteTexcoords[] = <br/>{<br/>0, 0,<br/>1, 0,<br/>0, 1,<br/>1, 1,<br/>};<br/><br/>// You must implement this<br/>+ (Class) layerClass<br/>{<br/>	return [CAEAGLLayer class];<br/>}<br/><br/><br/>//The GL view is stored in the nib file. When it's unarchived it's sent -initWithCoder:<br/>- (id)initWithCoder:(NSCoder*)coder<br/>{<br/>	if((self = [super initWithCoder:coder])) {<br/>		<br/>		// Get the layer<br/>		CAEAGLLayer *eaglLayer = (CAEAGLLayer*) self.layer;<br/>		<br/>		eaglLayer.opaque = YES;<br/>		eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys:<br/>										[NSNumber numberWithBool:FALSE], kEAGLDrawablePropertyRetainedBacking, kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];<br/>		<br/>		/* create opengl context and frame buffer */<br/>		context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];<br/>		<br/>		/* error */<br/>		if(!context || ![EAGLContext setCurrentContext:context] || ![self createFramebuffer]) {<br/>			[self release];<br/>			return nil;<br/>		}<br/>		<br/>		printf(&quot;initWithCoder ok!!!!! &quot;);<br/>		<br/>		[self setupView];		<br/>		<br/>		NSLog(@&quot;3333&quot;);<br/>	}<br/>	<br/>	return self;<br/>}<br/><br/><br/>player_parameter pp;<br/><br/><br/><br/><br/><br/><br/><br/>// set up opengl contetxt and view<br/>- (void)setupView<br/>{<br/>	printf(&quot;setupView enter !!!! \n&quot;);<br/>	<br/>	contextwidth = contextheight = 512;<br/>	// Sets up matrices and transforms for OpenGL ES<br/>	glViewport(0, 0, backingWidth, backingHeight);/* view port :(320 ,480) */<br/>	glMatrixMode(GL_PROJECTION);<br/>	glLoadIdentity();<br/>	glOrthof(-1.0f, 1.0f, -1.5f, 1.5f, -1.0f, 1.0f);	<br/>	glMatrixMode(GL_MODELVIEW);	<br/>	<br/>	// Clears the view with black<br/>	glClearColor(0.0f, 0.0f, 0.0f, 1.0f);<br/>	<br/>	// Sets up pointers and enables states needed for using vertex arrays and textures<br/>	glVertexPointer(2, GL_FLOAT, 0, spriteVertices);<br/>	glEnableClientState(GL_VERTEX_ARRAY);<br/>	<br/>	glTexCoordPointer(2, GL_SHORT, 0, spriteTexcoords);<br/>	glEnableClientState(GL_TEXTURE_COORD_ARRAY);<br/>	<br/>	// generate a texture<br/>	glGenTextures(1, &amp;spriteTexture);/* spriteTexture is texture id number : 0x01 */<br/>	<br/>	// Bind the texture<br/>	glBindTexture(GL_TEXTURE_2D, spriteTexture);<br/>	<br/>	// Set the texture parameters to use a minifying filter and a linear filer (weighted average)<br/>	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);<br/>	<br/>	// Enable use of the texture<br/>	glEnable(GL_TEXTURE_2D);<br/>	<br/>	// Set a blending function to use<br/>	glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);<br/>	<br/>	// Enable blending<br/>	glEnable(GL_BLEND);		<br/>	<br/>	glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, contextwidth, contextheight, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, spriteData);	<br/>	printf(&quot;contextwidth = %d, contextheight = %d \n&quot;, contextwidth , contextheight);<br/>}<br/><br/><br/><br/>// draw video in opengles<br/>- (void)drawView<br/>{<br/>	//NSLog(@&quot;draw View&quot;);<br/>	static int times = 0;<br/>	<br/>	[EAGLContext setCurrentContext:context];<br/>	<br/>	/* refine a continous subregion of an existing-dimensional texture image <br/>	   x_offset = (512 - 320)/2 = 96<br/>	   y_offset = (512 - 240)/2	 <br/>	 */	<br/>	glEnable( GL_TEXTURE_2D );<br/>	<br/>	glGetBufferPointervOES(0,0,0);<br/>	<br/>	glTexSubImage2D(GL_TEXTURE_2D, 0, 96, 80, 320, 240, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, spriteData);	<br/>	<br/>	/* following as display */	<br/>	glVertexPointer(2, GL_FLOAT, 0, spriteVertices);/* spriteVertices : draw region , array element is float type */<br/>	glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);/* render primitives from array data */<br/>	<br/>	glBindFramebufferOES(GL_FRAMEBUFFER_OES, viewFramebuffer);<br/>	glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);<br/>	glDisable( GL_TEXTURE_2D );<br/>		<br/>	[context presentRenderbuffer:GL_RENDERBUFFER_OES];<br/><br/>}<br/><br/><br/>@end<br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/cnsoft/" target="_blank">lipeng219901</a> 2008-12-26 18:41 <a href="http://www.cnblogs.com/cnsoft/archive/2008/12/26/1363032.html#1414690#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
