Re: Overlay support for CE 6.0 Display driver



On Nov 23, 3:46 pm, "GraemeW" <gwin...@xxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Have you ran the CETK DDraw tests, maybe it will point in the right
direction to what you are missing?

--
GraemeW
Blog -http://ce4all.blogspot.com

"gomas" <gomas_vi...@xxxxxxxxx> wrote in message

news:f29071a2-2f94-4acf-b85a-3d3a1a04b251@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hello,

I am porting a DDGPE based display driver for CE 6.0 which can render
overlay surfaces with UYVY color format. The hardware does not support
the Color-keying for YUV overlay surfaces

While we execute the CEPlayer application to playback the WMV file, it
is not using the YUV overlay surface to render the video. It uses the
color format same as the primary surface. The HalCreateSurface
callback is invoked for YUV overlay surface and it successfully
creates the overlay surface. But it doesnt call Filp or Overlay
callbacks.

The driver works fine with the mosquito sample- without colorkeying.

Anybody please tell me what would be wrong with the driver.

regards,
Gomas- Hide quoted text -

- Show quoted text -

Hello,

Thankyou for your response.I tried with Ddraw test cases using CETK.
But i couldnt locate the exact issue with the YUV surfaces....

I am attaching some parts of the log generated by CETK which are
relevant to YUV.Also, it was found that, the ceplayer creates UYVY
overlay surface successfully; but not calling any of the overlay or
flip callbacks.

Meanwhile, the RGB bitmasks returned by EnumDisplayMode are all
0x0000000.Is this an expected behavior ?

--------------
224714 PID:365001e TID:595000a BEGIN TEST: "Get Caps"
.................................
224728 PID:365001e TID:5a0000a Using NORMAL Cooperative Level
224731 PID:365001e TID:5a0000a Creating Global DirectDraw
Singleton
226016 PID:365001e TID:5a0000a Getting Caps for HAL only
226017 PID:365001e TID:5a0000a Getting Caps for HAL again
226019 PID:365001e TID:5a0000a Comparing results from different
calls
226020 PID:365001e TID:5a0000a HAL Caps:
226022 PID:365001e TID:5a0000a {
226023 PID:365001e TID:5a0000a dwBltCaps (0x00000008) :
226025 PID:365001e TID:5a0000a DDBLTCAPS_COPYFOURCC
226026 PID:365001e TID:5a0000a dwCKeyCaps
(0x00000200) :
226027 PID:365001e TID:5a0000a DDCKEYCAPS_SRCBLT
226028 PID:365001e TID:5a0000a dwPalCaps (0x00000010) :
226030 PID:365001e TID:5a0000a
DDPCAPS_PRIMARYSURFACE
226031 PID:365001e TID:5a0000a dwAlphaCaps
(0x00000000) :
226032 PID:365001e TID:5a0000a dwMiscCaps
(0x00000000) :
226033 PID:365001e TID:5a0000a dwVidMemTotal = 5242880
226034 PID:365001e TID:5a0000a dwVidMemFree = 5242880
226036 PID:365001e TID:5a0000a dwVidMemStride = 0
226037 PID:365001e TID:5a0000a dwMaxVisibleOverlays = 2
226038 PID:365001e TID:5a0000a dwCurrVisibleOverlays =
0
226039 PID:365001e TID:5a0000a dwNumFourCCCodes = 1
226040 PID:365001e TID:5a0000a dwAlignBoundarySrc = 0
226042 PID:365001e TID:5a0000a dwAlignSizeSrc = 0
226043 PID:365001e TID:5a0000a dwAlignBoundaryDest = 0
226044 PID:365001e TID:5a0000a dwAlignSizeDest = 0
226046 PID:365001e TID:5a0000a dwRops = BLACKNESS
PATCOPY SRCCOPY WHITENESS
226048 PID:365001e TID:5a0000a dwMinOverlayStretch =
1000
226049 PID:365001e TID:5a0000a dwMaxOverlayStretch =
4000
226050 PID:365001e TID:5a0000a dwMinVideoStretch = 0
226051 PID:365001e TID:5a0000a dwMaxVideoStretch = 0
226052 PID:365001e TID:5a0000a dwMaxVideoPorts = 0
226054 PID:365001e TID:5a0000a dwCurrVideoPorts = 0
226055 PID:365001e TID:5a0000a ddsCaps =
226057 PID:365001e TID:5a0000a {
226058 PID:365001e TID:5a0000a dwCaps
(0x000001FE) :
226059 PID:365001e TID:5a0000a
DDSCAPS_BACKBUFFER
226060 PID:365001e TID:5a0000a DDSCAPS_FLIP
226061 PID:365001e TID:5a0000a
DDSCAPS_FRONTBUFFER
226062 PID:365001e TID:5a0000a DDSCAPS_OVERLAY
226064 PID:365001e TID:5a0000a DDSCAPS_PALETTE
226065 PID:365001e TID:5a0000a
DDSCAPS_PRIMARYSURFACE
226066 PID:365001e TID:5a0000a
DDSCAPS_SYSTEMMEMORY
226067 PID:365001e TID:5a0000a
DDSCAPS_VIDEOMEMORY
226068 PID:365001e TID:5a0000a }

................................

PID:365001e TID:595000a ***
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
226104 PID:365001e TID:595000a BEGIN TEST: "Enumerate Display
Modes"
...............................
226108 PID:365001e TID:5a4000a Using NORMAL Cooperative Level
226110 PID:365001e TID:5a4000a Calling EnumDisplayModes with
DDEDM_REFRESHRATES and NULL SurfaceDesc
226111 PID:365001e TID:5a4000a Surface Description #0:
226112 PID:365001e TID:5a4000a {
226113 PID:365001e TID:5a4000a dwFlags (0x00041006) :
226115 PID:365001e TID:5a4000a DDSD_HEIGHT
226116 PID:365001e TID:5a4000a DDSD_WIDTH
226117 PID:365001e TID:5a4000a DDSD_PIXELFORMAT
226118 PID:365001e TID:5a4000a DDSD_REFRESHRATE
226119 PID:365001e TID:5a4000a dwHeight = 480
226120 PID:365001e TID:5a4000a dwWidth = 736
226121 PID:365001e TID:5a4000a dwRefreshRate = 60
226122 PID:365001e TID:5a4000a ddpfPixelFormat =
226124 PID:365001e TID:5a4000a {
226125 PID:365001e TID:5a4000a dwFlags (0x00000040) :
226126 PID:365001e TID:5a4000a DDPF_RGB
226127 PID:365001e TID:5a4000a dwRGBBitCount = 24
226128 PID:365001e TID:5a4000a dwRBitMask = 0x00000000
226129 PID:365001e TID:5a4000a dwGBitMask = 0x00000000
226131 PID:365001e TID:5a4000a dwBBitMask = 0x00000000
226132 PID:365001e TID:5a4000a }
226133 PID:365001e TID:5a4000a }
226134 PID:365001e TID:5a4000a Enumerated 1 modes(s)
226136 PID:365001e TID:595000a END TEST: "Enumerate Display Modes"



Test Name: Verify Surface Creation
*** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

226755 PID:365001e TID:5a5000a Verifying Surface Creation
Behavior of surface: Overlay surface in video memory - (YUV UYVY)
226757 PID:365001e TID:5a5000a Surface Created! Verifying
proper Blt behavior
226759 PID:365001e TID:5a5000a Cannot convert to test
color, skipping this surface

................................
................................

Test Name: Overlay Blt
*** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

243717 PID:365001e TID:5ce000a Testing Destination
Surface : Overlay surface in video memory with 1 backbuffer - (YUV
UYVY)
243720 PID:365001e TID:5ce000a Blting not supported
with this surface, using Lock
243721 PID:365001e TID:5ce000a Bytes per pixel: 2
243723 PID:365001e TID:5ce000a Fill colors:
0xDB91DB12 and 0x236E23ED
243892 PID:365001e TID:5ce000a Test with overlay
flip chain is redundant

................................
................................

Test Name: Interlaced Overlay Flip
*** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
247360 PID:365001e TID:5d1000a Testing Destination
Surface : Overlay surface in video memory - (YUV UYVY)
247363 PID:365001e TID:5d1000a Blting not supported
with this surface, using Lock
247364 PID:365001e TID:5d1000a Bytes per pixel: 2
247365 PID:365001e TID:5d1000a Fill colors:
0xDB91DB12 and 0x236E23ED
247536 PID:365001e TID:5d1000a Test only applies to
interlaced flipping surfaces
................................
................................
Test Name: Overlay Blt
*** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

250777 PID:365001e TID:5d5000a Testing Destination
Surface : Overlay surface in video memory with 1 backbuffer - (YUV
UYVY)
250780 PID:365001e TID:5d5000a Blting not supported
with this surface, using Lock
250781 PID:365001e TID:5d5000a Bytes per pixel: 2
250783 PID:365001e TID:5d5000a Fill colors:
0xDB91DB12 and 0x236E23ED
250952 PID:365001e TID:5d5000a Test with overlay
flip chain is redundant
................................
................................

Test Name: Interlaced Overlay Flip
*** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

255526 PID:365001e TID:5d8000a Testing Destination
Surface : Overlay surface in video memory - (YUV UYVY)
255529 PID:365001e TID:5d8000a Blting not supported
with this surface, using Lock
255530 PID:365001e TID:5d8000a Bytes per pixel: 2
255531 PID:365001e TID:5d8000a Fill colors:
0xDB91DB12 and 0x236E23ED
255700 PID:365001e TID:5d8000a Test only applies to
interlaced flipping surfaces
.


Loading