Hi Chris,
     I also had the same thought as you. Because at first, I tried to write about 10 - 30 JPEG files per second, so I thought that problem was due to the buffer was being written when the new encoded data written into it in IMGENC1_process(). But then, when I tried to write 1 file each 2 seconds, and try to fflush(), ... the same problem still occurred. Perhaps this is due to the JPEG codec. I am still working on this.
     Thanks for your reply.
Viet Hoang.

--- On Tue, 22/4/08, Chris Stillson <[EMAIL PROTECTED]> wrote:
From: Chris Stillson <[EMAIL PROTECTED]>
Subject: Re: (no subject)
To: "Viet Hoang" <[EMAIL PROTECTED]>
Date: Tuesday, 22 April, 2008, 8:41 PM

I thought you meant they were all bad. I've seen the same thing you
have. I assumed it had to do with using a buffer in the jpeg codec
while it is being rewritten somewhere else. I haven't figured this one
out yet. Sorry.

C

On Mon, Apr 21, 2008 at 9:46 PM, Viet Hoang <[EMAIL PROTECTED]>
wrote:
>
> Hi Chris,
> Thanks for your quick reply.
> I'll recheck my code. But the other jpeg files were still good.
Also,
> did you try to encode
> sequence of files, or just one file as jpegenc example?
> Thanks again,
> Viet Hoang.
>
> --- On Tue, 22/4/08, Chris Stillson <[EMAIL PROTECTED]> wrote:
>
> > From: Chris Stillson <[EMAIL PROTECTED]>
> > Subject: Re: (no subject)
> > To: [EMAIL PROTECTED]
> > Cc: "davinci-linux-open-source"
> <[email protected]>
> > Date: Tuesday, 22 April, 2008, 11:38 AM
>
>
> > I have used the jpegenc demo with no problems.
> >
> > Two things to be sure of are:
> > 1. the input is in YUV422 format. I'm pretty sure
> > that's the only
> > format that codec can convert.
> > 2. that you are feeding it it right size.
> >
> > I have successfully used to coded to encode images coming
> > off of a ccdc.
> >
> > C
> >
> >
> > 2008/4/21 Viet Hoang <[EMAIL PROTECTED]>:
> > > Hi all,
> > > Did anyone try to use the JPEG codec on
> > >
> > DM355?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > I modified the encode demo that
> > > came with dvsdk_1_30_00_23 on DM355 to use JPEGenc
> > instead of MPEG4enc and
> > > write out the JPEG result files to the NFS file
> > system. There are very much
> > > bad files (these files did not come in any order /
> > rule) (I attached one of
> > > those bad
> > files).<br>&nbsp;&nbsp;&nbsp; BTW, I
> > found the thread posted by
> > > Pierre
> > >
> >
>
(http://linux.omap.com/pipermail/davinci-linux-open-source/2008-April/006163.html).
> > > Pierre, the JPEG codec you tried is on DM6446 or
> > DM355? In my case, the bad
> > > files written are all in full size, not only the first
> > 14 bytes. I also
> > > tried to reload the dynamic params each time I call
> > IMGENC1_process() but
> > > the result was the same. (Also, I only tried to encode
> > and write 2 files per
> > >
> > second).<br>&nbsp;&nbsp;&nbsp;&nbsp;
> > So,
> > > do you have any idea what can cause this problem?
> > Please
> > > help.<br>Thanks,<br>Viet Hoang
> > > Send instant messages to your online friends
> > http://uk.messenger.yahoo.com
> > > _______________________________________________
> > > Davinci-linux-open-source mailing list
> > > [email protected]
> > >
> >
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> > >
> > >
> >
> >
> >
> > --
> > Chris
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com



--
Chris

Send instant messages to your online friends http://uk.messenger.yahoo.com
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to