I'm trying to write my own JPEG encoder program leveraging the JPEGencoder dsp codec provided in the 'Motion JPEG' demo.
I've built my application and ported it across onto the DVEVM but when the program reaches the command: 'outbufs.bufs[0] = Memory_contigAlloc(outBufs.bufSizes[0], Memory_DEFAULTALIGNMENT)' it causes a segmentation fault and the program exits. outBufs.bufSizes[0] = 414720 * 3 // 720*576*3 I'm guessing that this is due to the program being unable to allocate that amount of memory. I'm using the cmem.ko & dsplinkk.ko modules that came with the motion jpeg demo and the same loadmodules script which allocates the pools: Pools = 1x3145728, 3x829440, 1x61440, 1x10240 I built the program using the original dvevm tools (dvevm_1_10) as I couldn't make the 1.2 version work (compiling would cause it to give the error message '/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-lin uxeabi/bin/arm_v5t_le-gcc cannot be found'). Does anyone know how I stop my program giving me a 'segmentation fault'?? Thanks, Alex Alex Tarter KTP Associate Ultra Electronics Sonar & Communication Systems Tel: +44 (0)20 8813 4527 Mobile: +44 (0)772 018 2267 www.ultra-electronics.com This e-mail from Ultra Electronics Limited and any attachments to it are confidential to the intended recipient and may also be privileged. If you have received it in error please notify the sender and delete it from your system. If you are not the intended recipient you must not copy it or use it for any purpose nor disclose or distribute its contents to any other person. All communications may be subject to interception or monitoring for operational and/or security purposes. Please rely on your own virus checking as the sender cannot accept any liability for any damage arising from any bug or virus infection. Ultra Electronics Limited is a company registered in England and Wales, registration number 2830644. The address of its registered office is 417 Bridport Road, Greenford, Middlesex, UB6 8UA.
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
