Re: DDGPE driver for CE 6.0




> works. But when the updateOverlay is called to move the mosquito
> overlay, it shows a rectangle with some color,when it reaches some
> points on the screen. This is not the background of mosquito image
> which is black and is always visible.What would be the cause of such a
> behavior.

Sounds like display driver configures incorrectly h/w
or doesn't filter overlay alignment/position/size etc
not supported by h/w.

> I have one more doubt regarding allocation of frame buffer in system
> memory. How can i map the buffer to user mode process?. I went through
> the sample drivers in CE 6.0, but couldnt find anything useful.

You don't have to worry about that one, ddraw will do it for you.


--
Oleg


gomas wrote:
On Nov 19, 4:11 pm, voidcoder <voidco...@xxxxxxxxx> wrote:
Make sure:

1. GUID_GetDriverInfo_VidMemBase is handled properly.
2. Video memory size (DDCAPS.dwVidMemTotal) is reported
correctly.
3. The whole video memory (including overlays) is mapped
to a single contiguous region. DDraw in 6.0 can not
handle discontinuous video memory ...

--
Oleg



gomaswrote:
Hi,
I am currently porting a DDGPE baseddisplaydriver from CE 5 to CE
6.0. I came across a problem with accessing frame buffer from user
mode. I was trying to run the mosquito sample with UYVY Overlay
surface,and the application crashed with "Access vioaltion" while
accessing the frame buffer,
case MAKEFOURCC('U','Y','V','Y'):
*(pSurf++) = U;
Can anybody please tell me, what would be the issue. I have read that
the frame buffer mapping is performed by the DDraw module; not by
displaydriver. Is it necessary to map the frame buffer indisplay
driver ? If so, how can we do it.
I tried to solve the issue by adding
GUID_GetDriverInfo_VidMemBase...but not worked....
TIA,
Gomas- Hide quoted text -
- Show quoted text -

Hello,

Thankyou for the response. I modified the value of lpddhi-
ddCaps.dwVidMemTotal to the size of my video memory (5MB) and now it
works. But when the updateOverlay is called to move the mosquito
overlay, it shows a rectangle with some color,when it reaches some
points on the screen. This is not the background of mosquito image
which is black and is always visible.What would be the cause of such a
behavior.

I have one more doubt regarding allocation of frame buffer in system
memory. How can i map the buffer to user mode process?. I went through
the sample drivers in CE 6.0, but couldnt find anything useful.

regards,
Gomas
.



Relevant Pages

  • Re: DDGPE driver for CE 6.0
    ... The whole video memory is mapped ... I came across a problem with accessing frame buffer from user ... I was trying to run the mosquito sample with UYVY Overlay ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DDGPE driver for CE 6.0
    ... > overlay, it shows a rectangle with some color,when it reaches some ... This is not the background of mosquito image ... Video memory size is reported ... I came across a problem with accessing frame buffer from user ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DirectDraw YUV display
    ... DirectShow does not use the same type of color key as Mosquito. ... uses Source Color Keys (which use colors in the overlay to determine overlay ... whereas the video renderer in DirectShow uses Destination ... The overlay surface must support the appropriate ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Mosquito App is failing...
    ... coming of overlay area which can be maximum 240*320.. ... so i crop the image by LoadImage to 178*144.. ... creating by mosquito app. ... is moving on the screen. ...
    (microsoft.public.windowsce.platbuilder)