TI E2E Community (Beta)
Welcome to the TI E2E (Engineer-to-Engineer) Community! We invite you to freely and openly interact with your peer Engineers, TI Engineers, and other experts in order to ask questions, share knowledge, explore ideas, and help solve problems.
More Search Options

DM6446 JPEG Encoder problem about multiple frames

rated by 0 users
Answered (Verified) This post has 1 verified answer | 7 Replies | 2 Followers

Top 500 Contributor
30 Posts
Community Member
kickgame posted on 6 Nov 2009 3:42 AM

I need to encode video frames into JPEG on DM6446. I downloaded JPEG Baseline Encoder from Ti. 

The codec is called by DMAI 1.16.

After successfully encoding the first frame by calling Ienc1_process(the outArgs.bytesGenerated=24Kbytes, the second call Ienc1_process

give bad result. The return value of Ienc1_process is ok, but the outArgs.bytesGenerated=573 bytes and outArgs.currentAU = 0.

It seems that only the first call of Ienc1_process can give correct result. I've verified this by calling Ienc1_delete to destroy the codec and Ienc1_create to create a new codec before each  Ienc1_process,

create-process-delete for each frame is not a good solution. How can I encode multiple frames by create-process-process-...-delete? Thanks

Answered (Verified) Verified Answer

Top 10 Contributor
2,559 Posts
Texas Instruments Employee
Verified by kickgame

ok, doing a little more digging, it appears you do not have to delete and create all the time, you can simply follow the Motion JPEG processing loop example on the wiki below to process several frames...

http://wiki.davincidsp.com/index.php/XDM_1.x_Semantics#Motion_JPEG_.28MJPEG.29_Processing

All Replies

Top 10 Contributor
2,559 Posts
Texas Instruments Employee

This is a known issue with the codec; I am afraid that delete and create will be necessary at this point...

Top 500 Contributor
30 Posts
Community Member

That's a bad news. Anyway, I can stop wasting time on JPEG encoder.

many thanks ,   Juan

Top 10 Contributor
2,559 Posts
Texas Instruments Employee

what version of the codec are you using?  and with which DVSDK version...?  I want to check and see if there is a newer codec version that just has not made it to a DVSDK release yet.

Top 500 Contributor
30 Posts
Community Member

The JPEG encoder is version 2.00.002.  DVSDK is version 1.3

Top 10 Contributor
2,559 Posts
Texas Instruments Employee

unfortunately, that is the latest version I see appearing on our codes data-base.  I will try to investigate where we are with this bug...

Top 10 Contributor
2,559 Posts
Texas Instruments Employee
Verified by kickgame

ok, doing a little more digging, it appears you do not have to delete and create all the time, you can simply follow the Motion JPEG processing loop example on the wiki below to process several frames...

http://wiki.davincidsp.com/index.php/XDM_1.x_Semantics#Motion_JPEG_.28MJPEG.29_Processing

Top 500 Contributor
30 Posts
Community Member

It really works!  Many thanks, Juan

Page 1 of 1 (8 items) |

ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.