<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Problem in DSA Frame buffer, Flickering during ringing - Comments</title>
 <link>http://www.newlc.com/en/topic-17351</link>
 <description>Comments for &quot;Problem in DSA Frame buffer, Flickering during ringing&quot;</description>
 <language>en</language>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36909</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;br /&gt;Isn&amp;#039;t there anybody there who knows something about why &lt;i&gt; KErrOverFlow &lt;/i&gt; occurs in a RunL(). Any idea ?&lt;/div&gt;</description>
 <pubDate>Wed, 07 Feb 2007 06:47:58 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36909 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36908</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have found why it occurs. The view is not changing because the code to activate the another view is not reachable. I am activating the 1st view when call status changes to dialling or ringing and activating 2nd view when checking the call status is hangingup... &lt;br /&gt;&lt;br /&gt;But there is a &lt;i&gt;KErrOverFlow &lt;/i&gt; in iStatus of the activa object (i found this after a long work) and the code to activate the 2nd view is then not reachable as :-&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;if(iStatus.Int() == KErrNone)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;the above checking fails. &lt;br /&gt;&lt;br /&gt;I searched SDK and webs but i dont find anything why this overflow occurs in my RunL. &lt;br /&gt;&lt;br /&gt;Could anyone let me know why I&amp;#039;m getting this error? &lt;/div&gt;</description>
 <pubDate>Mon, 05 Feb 2007 06:06:20 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36908 at http://www.newlc.com</guid>
</item>
<item>
 <title>Problem using SetOrdinalPriority</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36907</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&lt;br /&gt;The old problem comes at the end of my program !&lt;br /&gt;&lt;br /&gt;I was setting a window on top of everything using CEikonEnv::Static()-&amp;gt;RootWin().SetOrdinalPriority(0, ECoeWinPriorityAlwaysAtFront ) to show one of my two views; &lt;br /&gt;&lt;br /&gt;The code works fine. But then I am not able to send the application at background. I have used CEikonEnv::Static()-&amp;gt;RootWin().SetOrdinalPosition (-1, ECoeWinPriorityNeverAtFront);&amp;nbsp; &amp;nbsp;to send it back with the other view but not worked. My window stays on the front.&lt;br /&gt;&lt;br /&gt;And also if I set the view2 as default with ordinal priority ECoeWinPriorityNeverAtFront,&amp;nbsp; my application never comes at front &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Please help how to use those two methods.... any idea would be helpful for me.&lt;br /&gt;&lt;br /&gt;Thanks in Advance.&lt;br /&gt;Tushar&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 01 Feb 2007 15:34:15 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36907 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36906</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;maybe you should put the phone observer not in any of the views, but in appui maybe, and then it might be easier to see how it can have references to the views it needs.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Hello Alh,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Wooooooow !! Thanks a lot ! I made it working. Now I can activate two views respectively when necessary. I have put the phone observer in Appui and created the views from phone class. And after some work i made it&amp;nbsp; to run. &lt;br /&gt;&lt;br /&gt;Thanks , your suggestions are really fantastic ! &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/shocked.gif&quot; alt=&quot;Shocked&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 26 Jan 2007 15:01:45 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36906 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36905</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Its hard to advice on application design, since it depends so much on the rest of your app.&lt;br /&gt;Much easier to answer the more technical questions &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;It usually helps me to draw some pretty boxes on paper with lines and arrows showing dependencies (also known as UML if you like standards)&lt;br /&gt;&lt;br /&gt;Basicly, you need to arrange your classes in a sensible way, and make sure that every class that needs it get a pointer to any other classes they have dependencies on, during construction.&lt;br /&gt;&lt;br /&gt;I can&amp;#039;t really help you there, you just have to think through different alternatives until you find what is most suitable for you...&lt;br /&gt;&lt;br /&gt;maybe you should put the phone observer not in any of the views, but in appui maybe, and then it might be easier to see how it can have references to the views it needs.&lt;br /&gt;&lt;br /&gt;Just a suggestion to consider, don&amp;#039;t know if it is good for you &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;The appui is a nice place though, because you can easily reach it from anywhere in your app, by casteing the pointer returned by CCoeEnv::Static()-&amp;gt;AppUi() to your appui subclass.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 25 Jan 2007 11:02:30 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36905 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36904</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi Alh,&lt;br /&gt;&lt;br /&gt;I am now able to activate the view2 from phone observer&amp;#039;s runl. So during ringing/dialing my second view comes in the top of everything.&lt;br /&gt;&lt;br /&gt;But..........&lt;br /&gt;&lt;br /&gt;I am not able to activate/show the previous view (view1) when the call state state changes to idle/unknown from RunL of the phone observer, because phone observer is created from view1, so that it is able to call View1::HandleCommandL( ....&lt;br /&gt;activateLocalView ( view2)) . And the activate command for view1 is in class view2, so here is the problem.... I could not able to get the view2 object reference from phoneobserver&amp;#039;s runL. I know i have to change the program design and have to relocate phone observer some where else to access both views reference... but how ?&lt;br /&gt;&lt;br /&gt;Please suggest if you have any idea to share....&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Tushar&lt;/div&gt;</description>
 <pubDate>Thu, 25 Jan 2007 07:10:28 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36904 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36903</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;So to use DSA properly in your case, you have to put a window &amp;quot;on top&amp;quot; of everything else.&lt;br /&gt;Search on this forum for examples on how to create a window and window group with an on top priority.&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;To solve flicker, you have to prevent the window server from drawing to the same area as you do.&lt;br /&gt;The only public way I know of to do that, is to use DSA and connect that to an &amp;quot;on top&amp;quot; window, and then display this window on top of everything, including the dialog.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Thanks a lot Alh,&lt;br /&gt;&lt;br /&gt;I found the required code to set a window on top of any window, by searching in this forum. And in this regards I must again thank you to insist me searching about the window priority. The usefull link is &lt;a href=&quot;http&amp;#58;//forum.newlc.com/index.php/topic,6163.0.html&quot; target=&quot;_blank&quot;&gt;http://forum.newlc.com/index.php/topic,6163.0.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I was trying to display my window when there is a out or in call. Now my window&amp;nbsp; is on top of everything during dialing. Now my target is to show this top window only when line status changes to dialing or ringing, otherwise not. &lt;br /&gt;&lt;br /&gt;To do the above thing I think I can create two views, one which will listen to call and&amp;nbsp; when the call comes it will active the 2nd view. But the problem I am have is : how to use the phone class ( this class&amp;#039;s performance is ok). Because from the phone class&amp;#039;s RunL how to activate the 2nd view?&amp;nbsp; I am confuse how to design the program. You gave me a lot of information already to come here, please help me ...&lt;br /&gt;&lt;br /&gt;Any information is helpful.&lt;br /&gt;&lt;br /&gt;Thanking you ,&lt;br /&gt;Tushar&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 24 Jan 2007 13:50:14 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36903 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36902</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: tusharbhatta&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;Could you let me know why am i getting this bad color ? one thing I understand that&amp;nbsp; if i use graphics context ( for drawing or blitting bitmap) then it is doing the color conversion itself but not when Mem::Copy because the raw data is send directly to frame buffer without any color conversion.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Yes, this is exactly why you get bad colors. The pixel format of your bitmap did not match the pixel format of your screen.&lt;br /&gt;The DrawBitmap function does the color conversion in my example code.&lt;br /&gt;&lt;br /&gt;My thought was that you would use my code snippet to convert your bitmap into the right format.&lt;br /&gt;&lt;br /&gt;Then use this new bitmap and display it with DSA as you did with your old.&lt;br /&gt;&lt;br /&gt;This will not solve flicker though, but the color problem.&lt;br /&gt;&lt;br /&gt;To solve flicker, you have to prevent the window server from drawing to the same area as you do.&lt;br /&gt;The only public way I know of to do that, is to use DSA and connect that to an &amp;quot;on top&amp;quot; window, and then display this window on top of everything, including the dialog.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 23 Jan 2007 10:31:33 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36902 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36901</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hello Alh,&lt;br /&gt;&lt;br /&gt;I have tried on your following code :-&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;Something like this: (note.. Not tested code, just wrote it here quickly, not sure it even compiles, but something like this:)&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;CFbsBitmap* Create16bitVersionL(CFbsBitmap* aOrigBmp)&lt;br /&gt;{&lt;br /&gt;//construction&lt;br /&gt;CFbsBitmap *bmp16bit = new (ELeave) CFbsBitmap();&lt;br /&gt;CleanupStack::PushL(bmp16bit);&lt;br /&gt;User::LeaveIfError(bmp16bit.Create(aOrigBmp-&amp;gt;SizeInPixels(),EColor64K)); //specifying 16 bit color format&lt;br /&gt;CFbsBitmapDevice* bmpdev = CFbsBitmapDevice::NewL(bmp16bit);&lt;br /&gt;CleanupStack::PushL(bmpdev);&lt;br /&gt;CFbsBitGc* bmpgc = new (ELeave) CFbsBitGc();&lt;br /&gt;CleanupStack::PushL(bmpgc);&lt;br /&gt;&lt;br /&gt;//drawing&lt;br /&gt;bmpgc-&amp;gt;Activate(bmpdev);&lt;br /&gt;bmpgc-&amp;gt;DrawBitmap(TPoint(0,0),aOrigBmp);&lt;br /&gt;&lt;br /&gt;//cleanup&lt;br /&gt;CleanupStack::PopAndDestroy(2); //pop and destroy bmpgc and bmpdev&lt;br /&gt;CleanupStack::Pop() //just pop the bmp (remove this line to make the function LC instead of L)&lt;br /&gt;&lt;br /&gt;return bmp16bit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;............ Thanks a lot for your code. &lt;br /&gt;&lt;br /&gt;And it&amp;#039;s displaying perfectly (Color is OK) when it run as a stand-alone. But the bitmap window is not displaying during call dialing (when calling.. dialog appeared)and looks it is running in the background. &lt;br /&gt;&lt;br /&gt;The problem may be because of using of drawing method through bitmap graphics context. So now the problem is - &lt;br /&gt;1. I am not able to use Graphics context to draw bitmap ( as it is not appearing during phone dialing), though is it giving me the right color. &lt;br /&gt;2. I am not getting the right color though I am still able to see the bitmap display with flickers.&lt;br /&gt;&lt;br /&gt;Could you let me know why am i getting this bad color ? one thing I understand that&amp;nbsp; if i use graphics context ( for drawing or blitting bitmap) then it is doing the color conversion itself but not when Mem::Copy because the raw data is send directly to frame buffer without any color conversion.&lt;br /&gt;&lt;br /&gt;My question is, I am using 24 bit bitmap. How to convert it to show it&amp;#039;s original color to my 16 bit phone. I have found one DSA example through frame buffer on SDK example called &amp;quot;DrcScrAcc&amp;quot; . I stopped it&amp;#039;s rendering to show the fixed bitmap. And after i done it I faced the problem --- color is distorted.&lt;br /&gt;&lt;br /&gt;Thank you for your time. Please help...&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Tushar&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 22 Jan 2007 17:05:29 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36901 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36900</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;symbianpower:&lt;br /&gt;&lt;br /&gt;Maybe you only start and stop your session on the events.&lt;br /&gt;The first Start you have to call yourself.&lt;br /&gt;&lt;br /&gt;But hard to say without the code. There is a ton of ways to mess up your DSA handling.&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;General on DSA:&lt;br /&gt;&lt;br /&gt;Yes, you can always draw to the framebuffer. DSA doesn&amp;#039;t really give you this, since it is always available.&lt;br /&gt;What DSA is for, is for _access_control_ to the framebuffer.&lt;br /&gt;That is, its used to be able to peacefully share the framebuffer with the window server.&lt;br /&gt;&lt;br /&gt;Without DSA you can still draw to the framebuffer, but you will draw over stuff the wserv draws and the other way around, producing among other things flicker.&lt;br /&gt;&lt;br /&gt;What DSA does, is you tell the wserv &amp;quot;I want to be responsible for filling this window&amp;quot; and the wserv will then never draw any visible area of this window, but assume you did it.&lt;br /&gt;It will also, through the DSA api, tell you what region of the screen this window is visible in.&lt;br /&gt;&lt;br /&gt;So to use DSA properly in your case, you have to put a window &amp;quot;on top&amp;quot; of everything else.&lt;br /&gt;Search on this forum for examples on how to create a window and window group with an on top priority.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 22 Jan 2007 12:58:21 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36900 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36899</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi ,&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;I m trying to play the bitmap using directScreenAccess captured through CCamera::StartViewFinderBitmapL.&lt;br /&gt;&lt;br /&gt;But i m facing the problem that it is playing the frame only when &lt;br /&gt;some window appears in front of it like menu.&lt;br /&gt;&lt;br /&gt;If anyone know the issue then pls. let&lt;br /&gt;me know.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advance!!!!!!!!!!!&lt;/div&gt;</description>
 <pubDate>Mon, 22 Jan 2007 10:51:04 +0100</pubDate>
 <dc:creator>symbianpower</dc:creator>
 <guid isPermaLink="false">comment 36899 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36898</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi Alh,&lt;br /&gt;&lt;br /&gt;Thank you so much for your quick reply. I will make it a try.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Tushar&lt;/div&gt;</description>
 <pubDate>Fri, 19 Jan 2007 14:17:51 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36898 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36897</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;You could also do the conversion useing symbian drawing, if you don&amp;#039;t want to fiddle with color formats.&lt;br /&gt;Its slower, but compatible and fewer lines of code.&lt;br /&gt;&lt;br /&gt;Something like this: (note.. Not tested code, just wrote it here quickly, not sure it even compiles, but something like this:)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;CFbsBitmap* Create16bitVersionL(CFbsBitmap* aOrigBmp)&lt;br /&gt;{&lt;br /&gt;//construction&lt;br /&gt;CFbsBitmap *bmp16bit = new (ELeave) CFbsBitmap();&lt;br /&gt;CleanupStack::PushL(bmp16bit);&lt;br /&gt;User::LeaveIfError(bmp16bit.Create(aOrigBmp-&amp;gt;SizeInPixels(),EColor64K)); //specifying 16 bit color format&lt;br /&gt;CFbsBitmapDevice* bmpdev = CFbsBitmapDevice::NewL(bmp16bit);&lt;br /&gt;CleanupStack::PushL(bmpdev);&lt;br /&gt;CFbsBitGc* bmpgc = new (ELeave) CFbsBitGc();&lt;br /&gt;CleanupStack::PushL(bmpgc);&lt;br /&gt;&lt;br /&gt;//drawing&lt;br /&gt;bmpgc-&amp;gt;Activate(bmpdev);&lt;br /&gt;bmpgc-&amp;gt;DrawBitmap(TPoint(0,0),aOrigBmp);&lt;br /&gt;&lt;br /&gt;//cleanup&lt;br /&gt;CleanupStack::PopAndDestroy(2); //pop and destroy bmpgc and bmpdev&lt;br /&gt;CleanupStack::Pop() //just pop the bmp (remove this line to make the function LC instead of L)&lt;br /&gt;&lt;br /&gt;return bmp16bit;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I can write some more about DSA later&lt;/div&gt;</description>
 <pubDate>Fri, 19 Jan 2007 13:52:37 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36897 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36896</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi Alh,&lt;br /&gt;&lt;br /&gt;I would first thank you for your helpful reply. But again I am facing problem in accessing the bits per channel. Could you help me how to shift and retrieve the most significant bit and load in my offscreen bitmap buffer?&lt;br /&gt;&lt;br /&gt;And for the 2nd problem you catch me right that I am redrawing the screen using a timer. My timer has a time interval of exactly 1/64 sec i.e. 15625 microsec ( I am trying to&amp;nbsp; match the screen refresh rate). &lt;br /&gt;&lt;br /&gt;I am using DSA to draw the bitmap on top of any window application. And it is doing so with some flickers. So I am now sure that my program can bypass ( ? or may be not bypassing but drawing direct to screen frame) the window server. Please advice how can I proceed.&lt;br /&gt;&lt;br /&gt;Thanking you,&lt;br /&gt;Tushar&lt;/div&gt;</description>
 <pubDate>Fri, 19 Jan 2007 13:09:30 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 36896 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351#comment-36895</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;1.&lt;br /&gt;&lt;br /&gt;The 16 bit color is on the standard format often called &amp;quot;565&amp;quot;. This means of the 16 bits, the 5 most significant bits is red, the next 6 is green, and the last 5 is blue.&lt;br /&gt;&lt;br /&gt;You need to convert each of your 24bit pixels (that have 8 bits per color channel) to this 16 bit pixel format.&lt;br /&gt;&lt;br /&gt;Just take the most significant bits from each color channel and put it together should be good enough.&lt;br /&gt;&lt;br /&gt;Best would be to do this once, to a new buffer, and throw away the old. Then use Mem::Copy for displaying this new buffer.&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;&lt;br /&gt;The flickering is because you and the window server tries to draw to the screen at the same time.&lt;br /&gt;My guess is the call dialog has some animation or such, therefore redrawing itself a few times.&lt;br /&gt;And I assume you have some kind of loop displaying your image over and over...&lt;br /&gt;&lt;br /&gt;As far as I understand, you are trying to draw this fullscreen image &amp;quot;on top&amp;quot; of the dialog, and you want it to &amp;quot;hide&amp;quot; the dialog.&lt;br /&gt;&lt;br /&gt;This could be tricky to achive... &lt;br /&gt;&lt;br /&gt;One way to hide a window is to put a window over it. Preferably the same window you connect to DSA.&lt;br /&gt;The window needs to be part of a window group with a lower (or was it higher? &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/tongue.gif&quot; alt=&quot;Tongue&quot; border=&quot;0&quot; /&gt;) ordinal priority then the dialogs window group.&lt;br /&gt;I&amp;#039;m not sure this is possible though, the call dialog is displayed by a system service that puts its window group at a very high priority.&lt;br /&gt;Don&amp;#039;t know if it is possible to specify your window to be &amp;quot;on top&amp;quot; of this.&lt;br /&gt;Wouldn&amp;#039;t supprice me if they had stopped it, since hideing the call dialog could be used for malicious intent.&lt;br /&gt;&lt;br /&gt;Another sollution might be to use DirectScreenBitmap, but this is also tricky, and I can&amp;#039;t guarantee it will work either in practice...&lt;br /&gt;&lt;br /&gt;Sorry to be bearer of bad news, but this is a very hard problem to solve with the public API.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 16 Jan 2007 18:26:11 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36895 at http://www.newlc.com</guid>
</item>
<item>
 <title>Problem in DSA Frame buffer, Flickering during ringing</title>
 <link>http://www.newlc.com/en/topic-17351</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-17351&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-17351#comments</comments>
 <category domain="http://www.newlc.com/en/forums/2d-3d-graphics">Bitmaps and Graphics</category>
 <pubDate>Tue, 16 Jan 2007 17:15:03 +0100</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">16889 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
