luuvanluc1992 / ffmpeg4iphone

Automatically exported from code.google.com/p/ffmpeg4iphone
0 stars 0 forks source link

Optimizations disabled #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Yonas,

First off all, thanks for your great work.

I tried it with ffmpeg rel#16238, it's compiled and worked fine on iphone.

When I check the config.h file after running ./configure-iphone I see that
all arm optimization flags are disabled i.e.
#define ENABLE_ARMV5TE 0
#define ENABLE_ARMV6 0
#define ENABLE_ARMVFP 0

I need to use --arch=arm to enable them. However, I've got following
compile error:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4
.0.1
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I.
-I"/Users/mahmutakcay/projects/svnhome/ffmpeg_headmms2" -arch armv6 -pipe
-miphoneos-version-min=2.0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk
-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/incl
ude/gcc/darwin/4.0
-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -arch armv6 -pipe
-miphoneos-version-min=2.0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk
-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/incl
ude/gcc/darwin/4.0
-std=c99 -fomit-frame-pointer -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno         
-c -o libavcodec/mpegvideo.o libavcodec/mpegvideo.c
{standard input}:3453:bad instruction `lsrle r5,ip,#1'
make: *** [libavcodec/mpegvideo.o] Error 1

Have you tried to enable optimizations?

Cheers,
diyab

Original issue reported on code.google.com by mahak...@gmail.com on 14 Jan 2009 at 12:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi Diyab,

Thanks for trying ffmpeg4iphone :) I've tried to enable optimizations, but I 
got a
lot of "bad instruction" errors and I don't know how to fix these assembly code 
errors. 

I found some posts of people trying to fix these errors
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2008-November/017782.html

but they don't seem to progress that much. Hopefully someone with armv6 assembly
knowledge will help out.

Original comment by yonas.ya...@gmail.com on 15 Jan 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Thanks for your reply.
I've seen some assembly diffs in your patch. Is that for future use?

Original comment by mahak...@gmail.com on 15 Jan 2009 at 10:09

GoogleCodeExporter commented 8 years ago
The assembly diffs come from http://svn.telesphoreo.org/trunk/data/ffmpeg_. 
iPhone's
assembler calls functions a little differently, so a few naming changes are 
needed. 

Original comment by yonas.ya...@gmail.com on 16 Jan 2009 at 9:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Good news, patch v0.0.3 enables optimizations!

Original comment by yonas.ya...@gmail.com on 20 Jan 2009 at 2:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That's great! I'll try it as soon as possible.

Original comment by mahak...@gmail.com on 21 Jan 2009 at 8:30