[XviD-devel] Xvid-devel Digest, Vol 74, Issue 2

Michael Militzer michael at xvid.org
Fri Mar 27 10:48:37 CET 2009


Hi,

seems a bit slow indeed. Have you used the '-asm' option with xvid_decraw
to enable assembly optimizations?

If you want to render the video to the screen with maximum speed you should
try to offset the RGB colorspace conversion to the graphics card. Almost
all graphics adapters on PC support this. So create a YUV overlay (e.g. with
DirectDraw or SDL), use XVID_CSP_I420 in xvid and let the graphics card do
the rest...

Regards,
Michael


Quoting 李冰 <bing.li at autosoft.com.cn>:

> Hello  Everyone:
>
>         I am using  xvid decore, and I am runing the  xvid_decraw.c   
> in the downloaded xvid source package.
>
>         My raw mpeg4 file is a 720x576 image sequence. My computer   
> is Intel Core Duo CPU T2600 2.16G.
>
>         I changed the CSP and BPP to different values.
>
>
>         I i set CSP = XVID_CSP_I420 ; BPP=1,  the decode speed is   
> about  80fps.
>         I i set CSP = XVID_CSP_BGR ;  BPP=3,  the decode speed is   
> about  40fps. It seems that the decoder slow down heavily.
>         I i set CSP = XVID_CSP_RGB565 ; BPP=2,  the decode speed is   
> about  25fps. I can do nothing except decode!
>
>
>         Since my VGA is only in 16bit color depth, if i can decode   
> fast using the  XVID_CSP_RGB565 output format, I will make
>
> least changes with xvid.   But the speed is too slow!
>
>         I wanna to know:
>         1)  Is my decode speed normal?? why is the  decode process so slow?
>         2)  If i wanna to display the mp4 streams on 16-bit vga, how  
>  to satisfy the need  of speed?
>         3)  If i use  I420 output mode, how to convert it to RGB565 format??
>
>          Thanks to all!
>
>                                                Ice
>
>
>
> 发件人: xvid-devel-request at xvid.org
> 发送时间: 2009-03-25  19:00:10
> 收件人: xvid-devel at xvid.org
> 抄送:
> 主题: Xvid-devel Digest, Vol 74, Issue 2
>
> Send Xvid-devel mailing list submissions to
> xvid-devel at xvid.org
> To subscribe or unsubscribe via the World Wide Web, visit
> http://list.xvid.org/mailman/listinfo/xvid-devel
> or, via email, send a message with subject or body 'help' to
> xvid-devel-request at xvid.org
> You can reach the person managing the list at
> xvid-devel-owner at xvid.org
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xvid-devel digest..."
> Today's Topics:
>    1. Using the MMX and SSE functions on linux platform (???)
>    2. Re: Using the MMX and SSE functions on linux platform
>       (Michael Militzer)
> ----------------------------------------------------------------------
> Message: 1
> Date: Wed, 25 Mar 2009 09:37:01 +0800
> From: ??? <konsunwin at gmail.com>
> Subject: [XviD-devel] Using the MMX and SSE functions on linux
> platform
> To: Xvid-devel at xvid.org
> Message-ID:
> <7d07f8b0903241837t50808077q5f96dfb9bfcfd9bf at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> Dear frineds:      I want to use the MMX and SSE functions of Xvid to
> optimize the program,but I find them not be used using the default Xvid
> configure file.
>    What could I do ? My CPU can run MMX and SSE codes.
> thank you!
> Kongxw
> ------------------------------
> Message: 2
> Date: Wed, 25 Mar 2009 08:23:17 +0100
> From: Michael Militzer <michael at xvid.org>
> Subject: Re: [XviD-devel] Using the MMX and SSE functions on linux
> platform
> To: xvid-devel at xvid.org
> Message-ID: <20090325082317.r176rbch4ok0g8cw at www.lansco.de>
> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
> format="flowed"
> Hi,
> make sure you have nasm (>= 2.0) installed on your build machine.
> Otherwise, configure will exclude the MMX/SSE asm code.
> http://www.nasm.us/
> Regards,
> Michael
> Quoting ??? <konsunwin at gmail.com>:
>> Dear frineds:      I want to use the MMX and SSE functions of Xvid to
>> optimize the program,but I find them not be used using the default Xvid
>> configure file.
>>    What could I do ? My CPU can run MMX and SSE codes.
>>
>> thank you!
>>
>> Kongxw
>> _______________________________________________
>> Xvid-devel mailing list
>> Xvid-devel at xvid.org
>> http://list.xvid.org/mailman/listinfo/xvid-devel
>>
>>
> ------------------------------
> _______________________________________________
> Xvid-devel mailing list
> Xvid-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
> End of Xvid-devel Digest, Vol 74, Issue 2
> *****************************************
> .
> _______________________________________________
> Xvid-devel mailing list
> Xvid-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>








More information about the Xvid-devel mailing list