DirectFB - Home of the pragmatist Roadmap


[directfb-users] Re: How to make the DirectFB on top CLE266 work
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-users] Re: How to make the DirectFB on top CLE266 work



Selwyn Tang wrote:

>On 11/15/2003 03:07 AM, Yidan(Edward) Zhou wrote:
>  
>
>>Following the hints you gave, I found the problem.
>>When I built the kernel, I chose the option -- Do not mount devfs at the
>>    
>>
>
>You may check out the cvs. The cle266 driver was updated. It now
>provides the option of using devfs or not.
>
>  
>
>>(*) DirectFB/GraphicsDevice: VIA/S3G UniChrome 0.3 (-)
>>
>>(01) VIA CLE266 Overlay
>>Type: graphics picture video
>>Caps: opacity screen_location surface
>>
>>However I still cannot run 'df_layer' properly, so how can I check the
>>DirectFB graphics driver module is loaded?
>>    
>>
>
>As shown by dfbinfo ("VIA/S3G UniChrome 0.3"), the driver should be
>okay. But I don't know why your df_layer fails. Can you show its output?
>  
>
This is the output of df_layer:

+++++++++++++++++++++++++++++

viapvr:~# df_layer ./tdmpeg120.mpv

---------------------- DirectFB v0.9.20 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2003 convergence GmbH
-----------------------------------------------------------

(*) Single Application Core. (with MMX support) (2003-11-17 20:16)
(*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
(*) DirectFB/InputDevice: Keyboard 0.9 (convergence integrated media GmbH)
(*) MMX detected and enabled
(*) DirectFB/GraphicsDevice: VIA/S3G UniChrome 0.3 (-)
(*) DirectFB/Layer: Enabled 'FBDev Primary Layer'.
(#) DirectFBError [dfb->CreateVideoProvider failed]: Interface
implementation not available!
+++++++++++++++++++++++++++++

but I tried one of the examples of DirectFB -- df_paritcle and this
example can run without any problem.

>BTW, although I am not building a pvr, I would like to know why you need
>the overlay layer. Is it for showing video?
>  
>
Exactly, my goal to use the overlay layer is to reduce cpu consumption
of MPEG2 decoding, since CLE266 has a built-in MPEG2 decoder.
BTW, I have tried mplayer to play back the video. Mplayer only can work
with the primary layer smoothly, and if mplayer selects the overlay
layer what is shown on the screen is a white screen.

The following is the printed out message of mplayer
+++++++++++++++++++++++++++++
viapvr:~# mplayer -vo directfb -dr ./tdmpeg120.mpv
MPlayer 1.0pre2-2.95.4 (C) 2000-2003 MPlayer Team

CPU: IDT/Centaur/VIA C3 Nehemiah (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open
'/root/.mplayer/codecs.conf': No
such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: No such file or
directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or
directory
Falling back on default (hardcoded) input config

Playing ./tdmpeg120.mpv
MPEG-ES file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 9500.0 kbps (1187.5 kbyte/s)
DirectFB: Preinit entered

---------------------- DirectFB v0.9.20 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2003 convergence GmbH
-----------------------------------------------------------

(*) Single Application Core. (with MMX support) (2003-11-17 20:16)
(*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
(*) DirectFB/InputDevice: Keyboard 0.9 (convergence integrated media GmbH)
(*) MMX detected and enabled
(*) DirectFB/GraphicsDevice: VIA/S3G UniChrome 0.3 (-)
(*) DirectFB/Layer: Enabled 'FBDev Primary Layer'.
DirectFB: Keyboard init OK
DirectFB: Preinit OK
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
DirectFB: Format query: Planar YV12
DirectFB: Test format - layer 0 scale/pos 0
(*) DirectFB/Layer: Enabled 'VIA CLE266 Overlay'.
DirectFB: Test format - layer 1 scale/pos 8
DirectFB: Test format - added layer 1 scale/pos 8
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [directfb] 720x576 => 768x576 Planar YV12
DirectFB: Format query: Planar YV12
DirectFB: Test format - layer 0 scale/pos 0
DirectFB: Test format - layer 1 scale/pos 8
DirectFB: Test format - added layer 1 scale/pos 8
DirectFB: Config entered [720x576]
DirectFB: With requested format: Planar YV12
(!!!) *** CAUTION [letting unprivileged
IDirectFBDisplayLayer::GetSurface() call pass until cooperative level
handling is finished] *** idirectfbdisplaylayer.c (147)
DirectFB: Config - looking for suitable layer
DirectFB: Test format - layer 0 scale/pos 0
DirectFB: Test format - layer 1 scale/pos 8
DirectFB: Test format - added layer 1 scale/pos 8
DirectFB: Config - layer 1
DirectFB: Config - changing layer configuration (size)
DirectFB: Layer reports format:201007
DirectFB: Desired pixelformat: 8100c0b
DirectFB: Config - changing layer configuration (format)
DirectFB: Config - flipping = 0
DirectFB: Config - surface size = 720x576
DirectFB: Frame is active.
DirectFB: Config finished [10000x10000] - [720x576]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V: 4.7 117 62% 1367% 0.0% 0 0 0 % %

+++++++++++++++++++++++++++++

>Selwyn
>



/edward




-- 
Info: To unsubscribe send a mail to ecartis@directfb.org with 
"unsubscribe directfb-users" as subject.



Home | Main Index | Thread Index


directfb.org / Development / Old Archives