Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Is there any frame buffer concept in QNX Display Driver ? : (9 Items)
   
Is there any frame buffer concept in QNX Display Driver ?  
Hi Experts,

Is there any frame buffer concept in QNX for display driver. I am working on porting display driver on omap2430. I 
couldn't find any omap2430 bsp on the website. I looked at the IMX21 bsp. It has the display driver reference in devg 
folder. I kind of got the idea how display driver is populating function pointer in DISP_ADD_FUNCTION and some of them 
are implemented in them, but I couldn't see any code where it is mapping a memory from SRAM/SDRAM as part of frame 
buffer. I saw the config file imx21.conf as well but could not the see the reference of memory as frame buffer.

Do we have framebuffer concept in QNX? How is the display driver rendering the image on the LCD panel?

I would appreciate the reply. I am using QNX6.5. 

Regards
Re: Is there any frame buffer concept in QNX Display Driver ?  
Takshi Pandey wrote:
> Hi Experts,
>
> Is there any frame buffer concept in QNX for display driver. I am working on porting display driver on omap2430. I 
couldn't find any omap2430 bsp on the website. I looked at the IMX21 bsp. It has the display driver reference in devg 
folder. I kind of got the idea how display driver is populating function pointer in DISP_ADD_FUNCTION and some of them 
are implemented in them, but I couldn't see any code where it is mapping a memory from SRAM/SDRAM as part of frame 
buffer. I saw the config file imx21.conf as well but could not the see the reference of memory as frame buffer.
>
> Do we have framebuffer concept in QNX?

http://community.qnx.com/sf/projects/qnx_community_sdl_project/

--Armin

http://www.steinhoff-automation.com

> How is the display driver rendering the image on the LCD panel?
>
> I would appreciate the reply. I am using QNX6.5.
>
> Regards
>
>
>
>
> _______________________________________________
>
> Advanced Graphics
> http://community.qnx.com/sf/go/post83127
>
>
Re: Is there any frame buffer concept in QNX Display Driver ?  
Thanks Armin for the reply. The link that you shared seems that SDL takes care of everything as far as playing Audio/
Video is concern. But I somehow could not relate this to the devg-xxx.so display driver. I could not see any references 
to SDL libraries in the display driver.
The surprising this is that I could see something on the OMAP2430 LCD panel (running a simple demo app) despite not 
seeing any references to SDL in my display driver.
My question are :
1) From where the display driver is rendering the image?
2) What part of the display driver code is responsible for this?
3) How should we link to SDL library in order to get the Framebuffer for the image rendering?
4) Where is the code which is mapping the physical memory for the frame buffer in devg-driver?

regards,

> Takshi Pandey wrote:
> > Hi Experts,
> >
> > Is there any frame buffer concept in QNX for display driver. I am working on
>  porting display driver on omap2430. I couldn't find any omap2430 bsp on the 
> website. I looked at the IMX21 bsp. It has the display driver reference in 
> devg folder. I kind of got the idea how display driver is populating function 
> pointer in DISP_ADD_FUNCTION and some of them are implemented in them, but I 
> couldn't see any code where it is mapping a memory from SRAM/SDRAM as part of 
> frame buffer. I saw the config file imx21.conf as well but could not the see 
> the reference of memory as frame buffer.
> >
> > Do we have framebuffer concept in QNX?
> 
> http://community.qnx.com/sf/projects/qnx_community_sdl_project/
> 
> --Armin
> 
> http://www.steinhoff-automation.com
> 
> > How is the display driver rendering the image on the LCD panel?
> >
> > I would appreciate the reply. I am using QNX6.5.
> >
> > Regards
> >
> >
> >
> >
> > _______________________________________________
> >
> > Advanced Graphics
> > http://community.qnx.com/sf/go/post83127
> >
> >


Re: Is there any frame buffer concept in QNX Display Driver ?  
Takshi Pandey wrote:
> Thanks Armin for the reply. The link that you shared seems that SDL takes care of everything as far as playing Audio/
Video is concern. But I somehow could not relate this to the devg-xxx.so display driver. I could not see any references 
to SDL libraries in the display driver.
> The surprising this is that I could see something on the OMAP2430 LCD panel (running a simple demo app) despite not 
seeing any references to SDL in my display driver.
> My question are :
> 1) From where the display driver is rendering the image?

SDL is using low level calls of the Photon API in order to create 
something like a frame buffer interface. 
(~/src/video/photon/SDL_ph_video.c )

Doesn't the BSP of the OMAP2430 support Photon ?

--Armin

Re: Is there any frame buffer concept in QNX Display Driver ?  
I could run the 2D demo app VSYNC and it is running fine. Although, I need to slay the Photon app for this VSYNC to run 
coz it goes and attach to the same layer that Photon runs on otherwise fails saying layer attach failed.
I could not see (~/src/video/photon/SDL_ph_video.c ) in my entire project and thats what is surprising me how the 
display is working.
I am working with OS QNX6.5.

Regards,

> Takshi Pandey wrote:
> > Thanks Armin for the reply. The link that you shared seems that SDL takes 
> care of everything as far as playing Audio/Video is concern. But I somehow 
> could not relate this to the devg-xxx.so display driver. I could not see any 
> references to SDL libraries in the display driver.
> > The surprising this is that I could see something on the OMAP2430 LCD panel 
> (running a simple demo app) despite not seeing any references to SDL in my 
> display driver.
> > My question are :
> > 1) From where the display driver is rendering the image?
> 
> SDL is using low level calls of the Photon API in order to create 
> something like a frame buffer interface. 
> (~/src/video/photon/SDL_ph_video.c )
> 
> Doesn't the BSP of the OMAP2430 support Photon ?
> 
> --Armin
> 


Re: Is there any frame buffer concept in QNX Display Driver ?  
Takshi Pandey wrote:
> I could run the 2D demo app VSYNC and it is running fine. Although, I need to slay the Photon app for this VSYNC to 
run coz it goes and attach to the same layer that Photon runs on otherwise fails saying layer attach failed.
> I could not see (~/src/video/photon/SDL_ph_video.c ) in my entire project and thats what is surprising me how the 
display is working.

OK ... Photon is available.  So download the sources of SDL 1.3 and 
recompile it and you will get a "frame buffer"

--Armin

> I am working with OS QNX6.5.
>
> Regards,
>
>> Takshi Pandey wrote:
>>> Thanks Armin for the reply. The link that you shared seems that SDL takes
>> care of everything as far as playing Audio/Video is concern. But I somehow
>> could not relate this to the devg-xxx.so display driver. I could not see any
>> references to SDL libraries in the display driver.
>>> The surprising this is that I could see something on the OMAP2430 LCD panel
>> (running a simple demo app) despite not seeing any references to SDL in my
>> display driver.
>>> My question are :
>>> 1) From where the display driver is rendering the image?
>> SDL is using low level calls of the Photon API in order to create
>> something like a frame buffer interface.
>> (~/src/video/photon/SDL_ph_video.c )
>>
>> Doesn't the BSP of the OMAP2430 support Photon ?
>>
>> --Armin
>>
>
>
>
>
>
> _______________________________________________
>
> Advanced Graphics
> http://community.qnx.com/sf/go/post83135
>
>
Re: Is there any frame buffer concept in QNX Display Driver ?  
Thanks Armin and sorry for the late response.
Can you point me to any bsp which has the reference of SDL? 
How do I add this SDL into my bsp? How am I going to link my bsp with this SDL?

And the last question. If I don't have SDL how am I seeing the images or able to play the demo apps presently?

Regards,

> Takshi Pandey wrote:
> > I could run the 2D demo app VSYNC and it is running fine. Although, I need 
> to slay the Photon app for this VSYNC to run coz it goes and attach to the 
> same layer that Photon runs on otherwise fails saying layer attach failed.
> > I could not see (~/src/video/photon/SDL_ph_video.c ) in my entire project 
> and thats what is surprising me how the display is working.
> 
> OK ... Photon is available.  So download the sources of SDL 1.3 and 
> recompile it and you will get a "frame buffer"
> 
> --Armin
> 
> > I am working with OS QNX6.5.
> >
> > Regards,
> >
> >> Takshi Pandey wrote:
> >>> Thanks Armin for the reply. The link that you shared seems that SDL takes
> >> care of everything as far as playing Audio/Video is concern. But I somehow
> >> could not relate this to the devg-xxx.so display driver. I could not see 
> any
> >> references to SDL libraries in the display driver.
> >>> The surprising this is that I could see something on the OMAP2430 LCD 
> panel
> >> (running a simple demo app) despite not seeing any references to SDL in my
> >> display driver.
> >>> My question are :
> >>> 1) From where the display driver is rendering the image?
> >> SDL is using low level calls of the Photon API in order to create
> >> something like a frame buffer interface.
> >> (~/src/video/photon/SDL_ph_video.c )
> >>
> >> Doesn't the BSP of the OMAP2430 support Photon ?
> >>
> >> --Armin
> >>
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Advanced Graphics
> > http://community.qnx.com/sf/go/post83135
> >
> >


Re: Is there any frame buffer concept in QNX Display Driver ?  
Takshi Pandey wrote:
> Thanks Armin and sorry for the late response.
> Can you point me to any bsp which has the reference of SDL?
> How do I add this SDL into my bsp? How am I going to link my bsp with this SDL?

The SDL project (http://www.libsdl.org ) isn't part of any BSP ... but 
it is applicable with a QNX BSP if Photon is available.
Since version 0.8 exists support for Linux and ARM ... so it's not 
rocket science to bring it down to QNX 6.x. and ARM.

> And the last question. If I don't have SDL how am I seeing the images or able to play the demo apps presently?

There are a lot of demos at http://www.libsdl.org ...

--Armin



> Regards,
>
>> Takshi Pandey wrote:
>>> I could run the 2D demo app VSYNC and it is running fine. Although, I need
>> to slay the Photon app for this VSYNC to run coz it goes and attach to the
>> same layer that Photon runs on otherwise fails saying layer attach failed.
>>> I could not see (~/src/video/photon/SDL_ph_video.c ) in my entire project
>> and thats what is surprising me how the display is working.
>>
>> OK ... Photon is available.  So download the sources of SDL 1.3 and
>> recompile it and you will get a "frame buffer"
>>
>> --Armin
>>
>>> I am working with OS QNX6.5.
>>>
>>> Regards,
>>>
>>>> Takshi Pandey wrote:
>>>>> Thanks Armin for the reply. The link that you shared seems that SDL takes
>>>> care of everything as far as playing Audio/Video is concern. But I somehow
>>>> could not relate this to the devg-xxx.so display driver. I could not see
>> any
>>>> references to SDL libraries in the display driver.
>>>>> The surprising this is that I could see something on the OMAP2430 LCD
>> panel
>>>> (running a simple demo app) despite not seeing any references to SDL in my
>>>> display driver.
>>>>> My question are :
>>>>> 1) From where the display driver is rendering the image?
>>>> SDL is using low level calls of the Photon API in order to create
>>>> something like a frame buffer interface.
>>>> (~/src/video/photon/SDL_ph_video.c )
>>>>
>>>> Doesn't the BSP of the OMAP2430 support Photon ?
>>>>
>>>> --Armin
>>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> Advanced Graphics
>>> http://community.qnx.com/sf/go/post83135
>>>
>>>
>
>
>
>
>
> _______________________________________________
>
> Advanced Graphics
> http://community.qnx.com/sf/go/post83153
>
>
RE: Is there any frame buffer concept in QNX Display Driver ?  
Hi Takshi,

I am just hijacking this thread for a minute ... :)

>> Takshi Pandey wrote:
>>> I could run the 2D demo app VSYNC and it is running fine. Although,
I need
>> to slay the Photon app for this VSYNC to run coz it goes and attach
to the
>> same layer that Photon runs on otherwise fails saying layer attach
failed.
>>> I could not see (~/src/video/photon/SDL_ph_video.c ) in my entire
project
>> and thats what is surprising me how the display is working.


You can run vsync on another layer if your devg supports multi-layers:

vsync 0   <- layer 0
vsync 1   <- layer 1
vsync 2   <- layer 2

OR like I mentioned to Raj, you can create a hybrid GF/Photon
application as well,
which means you can run all those GF applications on the same layer as
Photon, in
a Photon window.

Takshi and Raj, I still do not have a clear understanding about what you
want with "video".

Do you just want to play a video file, like a .mpg ... or do you want to
stream it
from a video capture device on your hardware, or do you want to stream a
MPEG stream
from a network connection?

Armin's SDL is great ... I am just trying what to understand what you
are asking for.

-Derek

>>
>> OK ... Photon is available.  So download the sources of SDL 1.3 and
>> recompile it and you will get a "frame buffer"
>>
>> --Armin
>>
>>> I am working with OS QNX6.5.
>>>
>>> Regards,
>>>
>>>> Takshi Pandey wrote:
>>>>> Thanks Armin for the reply. The link that you shared seems that
SDL takes
>>>> care of everything as far as playing Audio/Video is concern. But I
somehow
>>>> could not relate this to the devg-xxx.so display driver. I could
not see
>> any
>>>> references to SDL libraries in the display driver.
>>>>> The surprising this is that I could see something on the OMAP2430
LCD
>> panel
>>>> (running a simple demo app) despite not seeing any references to
SDL in my
>>>> display driver.
>>>>> My question are :
>>>>> 1) From where the display driver is rendering the image?
>>>> SDL is using low level calls of the Photon API in order to create
>>>> something like a frame buffer interface.
>>>> (~/src/video/photon/SDL_ph_video.c )
>>>>
>>>> Doesn't the BSP of the OMAP2430 support Photon ?
>>>>
>>>> --Armin
>>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> Advanced Graphics
>>> http://community.qnx.com/sf/go/post83135
>>>
>>>
>
>
>
>
>
> _______________________________________________
>
> Advanced Graphics
> http://community.qnx.com/sf/go/post83153
>
>




_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post83157