Hi,

Thanks, i will try to write the YUV image to the framebuffer to see I fit is
correctly decoded.

The boe.yuv file is created by decoding the default frida image. So the
resolution should be right.

Is it necessary to load the cmemk.ko file with special pool sizes?
And is this the only module I need to run the code/decode examples?


Regards,
Ramkoemar

-----Oorspronkelijk bericht-----
Van: Diego Dompe [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 23 mei 2008 1:06
Aan: [EMAIL PROTECTED]
CC: [email protected]
Onderwerp: Re: MJCP encode/decode example

Hi,

The YUV image decoded by the jpegdec can be written to the framebuffer  
device for visualization, if I recall correctly is /dev/fb0 on the MV  
environment.

This boe.yuv example that you are using, how to you generate that yuv  
file? On my board I can feed the frida image provided on the latest  
codec release into the encoder and decoder without problems.

Keep in mind that these examples had hardwired resolutions in the  
code, so if you feed anything unexpected, they crash.

Regards,

Diego Dompe
RidgeRun Engineering.

On May 22, 2008, at 9:09 AM, Ramkoemar Bhoera wrote:

>
> hi,
>
> when running the example 'jpegdec' with the example jpg file it  
> creates a
> yuv file of 691200 bytes... because i wanted to test if this file is
> correct and i could not open this file, i tried to encode it again  
> using
> the 'jpegenc' example...
>
> but when running the encode example, it outputs a file of between  
> 600 and
> 900 bytes and sometimes it is only 65 bytes....
>
> decoding:
> [EMAIL PROTECTED]:/opt# ./jpegdec frida_720x480_orig.jpg blaat.yuv
> @0x00091a7c:[T:0x400176d8] jpegdec - main> jpegdec
> @0x00095785:[T:0x400176d8] jpegdec - Processing buffer 222546 bytes...
> @0x00098897:[T:0x400176d8] jpegdec - image decoded: 480 x 720
> @0x000f543a:[T:0x400176d8] jpegdec - app done.
> [EMAIL PROTECTED]:/opt#
>
>
> encoding:
> [EMAIL PROTECTED]:/opt# ./jpegenc boe.yuv boe.jpg
> @0x0003908f:[T:0x400176d8] jpegenc - main> jpegenc
> @0x000395b4:[T:0x400176d8] jpegenc - Application started.
> @0x00040533:[T:0x400176d8] jpegenc - Encoder process returned - 0x0,  
> 607
> bytes)
>
>
> i loaded the cmemk.ko module with the following command:
> insmod cmemk.ko phys_start=0x87500000 phys_end=0x88000000
> pools 
> =1x2097152,1x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096
>
>
> i used the example yuv file to, but didnt work either :(
>
>
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to