[REQUEST] 2.3.7 Video Fix - Samsung Galaxy SL i9003

Hi everybody. I am trying to fix video recording in 2.3.7 ROMS like MIUI (Gb) or CM7. Since I am not very familiar with github I can't compile from source. I would like to edit some files and build them and see if it works but I have some problems. Here is the idea
We have to add this to the camera HAL (libcamera.so) in a 2.3.7 ROM:
LINE 133: we must replace
Code:
p.set(CameraParameters::KEY_VIDEO_FRAME_FORMAT, CameraParameters::PIXEL_FORMAT_YUV420SP);
with
Code:
p.set(CameraParameters::KEY_VIDEO_FRAME_FORMAT, CameraParameters::PIXEL_FORMAT_YUV422I);
(see that here)
then we must add some libs to lib folder, which are:
Code:
vendor/samsung/galaxysl/proprietary/omx/lib/libbridge.so:system/lib/libbridge.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libarcplatform.so:system/lib/libarcplatform.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libdivxdrm.so:system/lib/libdivxdrm.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libLCML.so:system/lib/libLCML.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.720P.Decoder.so:system/lib/libOMX.TI.720P.Decoder.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.720P.Encoder.so:system/lib/libOMX.TI.720P.Encoder.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.AAC.decode.so:system/lib/libOMX.TI.AAC.decode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.AAC.encode.so:system/lib/libOMX.TI.AAC.encode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.AMR.decode.so:system/lib/libOMX.TI.AMR.decode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.AMR.encode.so:system/lib/libOMX.TI.AMR.encode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.MP3.decode.so:system/lib/libOMX.TI.MP3.decode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.Video.Decoder.so:system/lib/libOMX.TI.Video.Decoder.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.Video.encoder.so:system/lib/libOMX.TI.Video.encoder.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.WBAMR.decode.so:system/lib/libOMX.TI.WBAMR.decode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.WBAMR.encode.so:system/lib/libOMX.TI.WBAMR.encode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.WMA.decode.so:system/lib/libOMX.TI.WMA.decode.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.h264.splt.Encoder.so:system/lib/libOMX.TI.h264.splt.Encoder.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libOMX.TI.mp4.splt.Encoder.so:system/lib/libOMX.TI.mp4.splt.Encoder.so \
vendor/samsung/galaxysl/proprietary/omx/lib/libPERF.so:system/lib/libPERF.so
(see it here)
But obviously there is no problem.
Hope u can help me with this.
Thank u!

Okay, now I am in the correct repo, but I cannot find CameraHardware.opp under libcamera so I cannot modify the line...
Can somebody help me please?

luiseteyo said:
Okay, now I am in the correct repo, but I cannot find CameraHardware.opp under libcamera so I cannot modify the line...
Can somebody help me please?
Click to expand...
Click to collapse
Wait for dhiru, i don't think many people except him can help.

luis u should hav posted this in the dev area ! ill inform dhiru

shriomman said:
luis u should hav posted this in the dev area ! ill inform dhiru
Click to expand...
Click to collapse
Yes, it is true that this is a dev question, but was dhiru who told me what I had to do... And since I am not an experienced developer, If i dont succeed I wouldn't like to be in DEV forum

luiseteyo said:
Okay, now I am in the correct repo, but I cannot find CameraHardware.opp under libcamera so I cannot modify the line...
Can somebody help me please?
Click to expand...
Click to collapse
Make changes to CameraHal.cpp
https://github.com/waleedq/android_device_samsung_galaxysl/blob/gingerbread/libcamera/CameraHal.cpp

ganeshbiyer said:
Make changes to CameraHal.cpp
https://github.com/waleedq/android_device_samsung_galaxysl/blob/gingerbread/libcamera/CameraHal.cpp
Click to expand...
Click to collapse
In CameraHal.cpp I should find
Code:
p.set(CameraParameters::KEY_VIDEO_FRAME_FORMAT, CameraParameters::PIXEL_FORMAT_YUV420SP);
but I don't.... so I can't make modifications

Add it?
Sent from my GT-I9003

samisax said:
Add it?
Sent from my GT-I9003
Click to expand...
Click to collapse
Are u sure?

luiseteyo said:
Are u sure?
Click to expand...
Click to collapse
No. I'm sorry if I wasted your time. It was a bad attempt at a joke that doesn't carry over the internet via text.
But thinking about it, it wouldn't hurt trying, would it?
Sorry if I wasted your time more.

Try searching for:
p.set(CameraParameters
or parts of the code, you will either find it eventually or find something similar.
I don't think trying will hurt like sam said, but why not try?

Hope u can fix the video good luck!
Sent from my GT-I9003 using xda app-developers app

Skander1998 said:
Try searching for:
p.set(CameraParameters
or parts of the code, you will either find it eventually or find something similar.
I don't think trying will hurt like sam said, but why not try?
Click to expand...
Click to collapse
Yah, I already searched everything in almost every .so file... but nothing. CameraHardware.opp is necessary and is missing

luiseteyo said:
Yah, I already searched everything in almost every .so file... but nothing. CameraHardware.opp is necessary and is missing
Click to expand...
Click to collapse
You need to change CameraHal.cpp, but you cant copy word to word. The coding style is different in
CameraHardware.cpp and CameraHal.cpp.
So adjust accordingly.
Edit:
Also you can see that the in CameraHal.cpp the if block if for Main Camera and in CameraHardware.cpp it is for Front Camera.
In CameraHal.cpp
p.set(p.KEY_SUPPORTED_PREVIEW_FORMATS,"yuv420sp"); on Line 552
add the below line after the above line
p.set(p.KEY_VIDEO_FRAME_FORMAT,"yuv422i");
Hope I am right:fingers-crossed:

ganeshbiyer said:
You need to change CameraHal.cpp, but you cant copy word to word. The coding style is different in
CameraHardware.cpp and CameraHal.cpp.
So adjust accordingly.
Edit:
Also you can see that the in CameraHal.cpp the if block if for Main Camera and in CameraHardware.cpp it is for Front Camera.
In CameraHal.cpp
p.set(p.KEY_SUPPORTED_PREVIEW_FORMATS,"yuv420sp"); on Line 552
add the below line after the above line
p.set(p.KEY_VIDEO_FRAME_FORMAT,"yuv422i");
Hope I am right:fingers-crossed:
Click to expand...
Click to collapse
Yes. U seem to be absolutely true.. thank u!!
I am not very used to github so I will try to compile changes when I understand everything

Related

Source Code of Galaxy 3

This morning I received a mail message from Samsung containing the following :
"We're pleased to provide the source code from the site below :
http://opensource.samsung.com/reception/reception_main.do?method=reception_modal "
ALTERNATIVE DOWNLOAD LINK:
http://www.multiupload.com/LOWCT9PHBJ
I think the time has come to develop some awesome roms for this little device ;-)
http://opensource.samsung.com/reception/reception_main.do?method=reception_modal
thats the exact place
jazux said:
http://opensource.samsung.com/reception/reception_main.do?method=reception_modal
thats the exact place
Click to expand...
Click to collapse
will edit it in the first post ;-) thanks for the link!
i've uploaded the code to multiupload.
http://www.multiupload.com/LOWCT9PHBJ
This is great news, perhaps all may not be lost after all and we may look forward to some exciting mods.
Sent from my GT-I5801 using XDA Premium App
Is this the official update? If yes, can anyone test it and report it?
wesjeex3 said:
Is this the official update? If yes, can anyone test it and report it?
Click to expand...
Click to collapse
It's only source code upload, not official Samsung Froyo update (JPF isn't official)
So now someone with expirience in kernels download sztupy's kernel building vm and get started...
http://forum.xda-developers.com/showthread.php?t=817387
EdisDee said:
i've uploaded the code to multiupload.
http://www.multiupload.com/LOWCT9PHBJ
Click to expand...
Click to collapse
If you don't mind I'll add the link to the first post as well
of cource i don't mind that's why i registered here. to help and get help, to share and get stuff, to ask and answer questions
Someone should give gsam101 this info...so that he could do kernel compiling...
I got it via twitter .. I'm downloading it boys, except something coming... ^^.
And no, i don't need a VM, I use Linux every day.
Gsam are what you knew "play" with the source code? And if so what are you know if you could put a support for the ext4 partition? or overclock? I saw the performance of your core Jpb which was not bad, so I think you're going to make a beautiful ring =)
As far as I can see, there's the .config file missing. Looks somewhat like a text adventure to me: The one who guesses Samsung's configuration the best, is the one who wins.
I already wrote Samsung about the missing file. I tried with the old .config from Eclair, guessed the new options, and so far had no success.
mizch said:
As far as I can see, there's the .config file missing. Looks somewhat like a text adventure to me: The one who guesses Samsung's configuration the best, is the one who wins.
I already wrote Samsung about the missing file. I tried with the old .config from Eclair, guessed the new options, and so far had no success.
Click to expand...
Click to collapse
It's as for the 2.1 kernel source, you just have to copy the source file from arch/arm/config
Thanks for the tip. Looks like there's a matching file in the configs/ directory. Compiling again and hoping for a better result ...
It seems that i finally got a working kernel build by myself. I do some tweaks, and i upload it here.
Gsam101 said:
It seems that i finally got a working kernel build by myself. I do some tweaks, and i upload it here.
Click to expand...
Click to collapse
what tweaks you've done?
kyrillos13 said:
what tweaks you've done?
Click to expand...
Click to collapse
Yet, nothing. I'm looking at installing some bench stuff, to see what I can do. ext[2,3,4] support built in of course .
Gsam101 said:
Yet, nothing. I'm looking at installing some bench stuff, to see what I can do. ext[2,3,4] support built in of course .
Click to expand...
Click to collapse
ok thanks

Phoneless-testers needed to test rom/kernel

Hullo folks,i would like to make rom and kernel for galaxy r
Since i personally dont own this phone,i wud like to have some testers.
Regards!
thanks very much, but my English is poor,what a pity
Thanks
I am will try..
jason11 said:
Thanks
I am will try..
Click to expand...
Click to collapse
good
I am sure u know basic ADB commands?
tell me more about the phone-boot partitions ,etc.
EDIT-Someone kindly upload their /system folder here!(deodexed ,if possible)
sakindia123 said:
good
I am sure u know basic ADB commands?
tell me more about the phone-boot partitions ,etc.
EDIT-Someone kindly upload their /system folder here!(deodexed ,if possible)
Click to expand...
Click to collapse
OK. this is my first android phone.
now i know little about adb commands.
I reset the phone & pulled system folder to computer. is that you wanted? i can upload to a server & give links here
I didn't know about deodexed. Guide me how to do that
(there are some other devs here. i hope they will help you.)
I WANT TO TEST IT IF IT IS different from other
m here for you welcome to galaxy r world
here's what i want-
1)/system from folder(deodexed,if possible)
2)config from the only kernel u have.To fetch it,do this in adb/terminal emulator
Code:
adb pull /proc/config.gz
upload it for me to download!
sakindia123 said:
here's what i want-
1)/system from folder(deodexed,if possible)
2)config from the only kernel u have.To fetch it,do this in adb/terminal emulator
Code:
adb pull /proc/config.gz
upload it for me to download!
Click to expand...
Click to collapse
Hay friend we want 1st full tut adb download link for galaxy r
SbXLivE said:
Hay friend we want 1st full tut adb download link for galaxy r
Click to expand...
Click to collapse
c'mon i thought u knew this?
its the friggin' same for every device lol
ok ok dude don't nude me k i will try m new here i till dont have ADB where i download this ****
i uploaded config
(adb pull /proc/config.gz)
SbXLivE said:
Hay friend we want 1st full tut adb download link for galaxy r
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=502010
http://forum.xda-developers.com/showthread.php?t=517874
sakindia123 said:
c'mon i thought u knew this?
its the friggin' same for every device lol
Click to expand...
Click to collapse
You come here and want something and then you offend non-devs that want to help you. Are you sure this is the way to get someone to help you?
You write "Phoneless-testers needed"
Why do the testers have to be "phoneless"?
I was thrown somewhat by the thread title too, I think he means he doesn't have a galaxy R, and although he's willing to make/fiddle with the ROM, he needs someone with a phone to test it.
I would be interested, but I'm not sure if it's a great idea - I'm not willing to bork my phone tbh
sakindia123 said:
Hullo folks,i would like to make rom and kernel for galaxy r
Since i personally dont own this phone,i wud like to have some testers.
Regards!
Click to expand...
Click to collapse
the dev who made YEMU ROM will will in your back
@mys199156-umm sorry,"in your back"?
@legion-There's a reason i put a hyphen there
sakindia123 said:
@mys199156-umm sorry,"in your back"?
Click to expand...
Click to collapse
he means YEMU will be glad to exchange experience with you
Chinese-English
sakindia123 said:
Hullo folks,i would like to make rom and kernel for galaxy r
Since i personally dont own this phone,i wud like to have some testers.
Regards!
Click to expand...
Click to collapse
Well. As long as there's no risk of bricking. I'll be glad to help.
Sent from my GT-I9103 using XDA App
Ok am in. I have used SGS1, currently have SGS2 and SGR. Happy to help. Have ADB and can play a bit with it.

Needing O3D Boot tools.

Hey guys could someone please upload or link me to a working set of boot-tools for our o3d as i cannot find them or links to them in this forum that are working as most of them are dead because of copyright.
Cheers DeejayCrazy
deejaycrazy said:
Hey guys could someone please upload or link me to a working set of boot-tools for our o3d as i cannot find them or links to them in this forum that are working as most of them are dead because of copyright.
Cheers DeejayCrazy
Click to expand...
Click to collapse
Are the ones from the thrill 4g forum down as well mate?
Sent from my LG-P920 using xda premium
What do you mean by boot-tools?
ThiaiZ said:
Are the ones from the thrill 4g forum down as well mate?
Sent from my LG-P920 using xda premium
Click to expand...
Click to collapse
I may not be looking at the right one if they working could you find the link for me Thiaiz?
I need the perl scripts and all the files needed to un-pack and repack Boot.img as i couldnt find them.
deejaycrazy said:
I may not be looking at the right one if they working could you find the link for me Thiaiz?
I need the perl scripts and all the files needed to un-pack and repack Boot.img as i couldnt find them.
Click to expand...
Click to collapse
Thats what you need mate. Good luck.
http://forum.xda-developers.com/showthread.php?t=1354950
ThiaiZ said:
Thats what you need mate. Good luck.
http://forum.xda-developers.com/showthread.php?t=1354950
Click to expand...
Click to collapse
Thanks ThiaiZ but the boot-tools.zip link is dead and thats what i need so i can get working hard
This is what it says
This file does not exist, the access to the following file is limited or it has been removed due to infringement of copyright.
Present!
The perl script is the only thing you need from the zip. Here you go http://forum.xda-developers.com/attachment.php?attachmentid=1215193&d=1342992085 from my thread.
samno said:
The perl script is the only thing you need from the zip. Here you go http://forum.xda-developers.com/attachment.php?attachmentid=1215193&d=1342992085 from my thread.
Click to expand...
Click to collapse
Thanks Samno much appreciated

[Q] Jb. Camera hal for 2.6 kernel

Hello friends,
While surfing xda, I found this thread and I felt it may be useful for our device.
I don't know what exactly this is but it may be a fix for our
camera in ics or jb.
So, devs kindly look into this link and let us know if it is useful.
Here is the link.......
http://forum.xda-developers.com/showthread.php?t=1849969
Thanks.
This is HAL module for Qualcomm cameras ...
marcellusbe said:
This is HAL module for Qualcomm cameras ...
Click to expand...
Click to collapse
will this help http://forum.xda-developers.com/showthread.php?t=1818188
ilievski.ace said:
will this help http://forum.xda-developers.com/showthread.php?t=1818188
Click to expand...
Click to collapse
same thing : BOARD_USES_QCOM_HARDWARE := true
marcellusbe said:
same thing : BOARD_USES_QCOM_HARDWARE := true
Click to expand...
Click to collapse
What We neeD to search ????
ilievski.ace said:
What We neeD to search ????
Click to expand...
Click to collapse
Nothing really
I already have good preview in RGB565. Now, I need to know how to capture and record with our old s5k4ca, fimc and jpeg drivers in kernel 2.6.32.
For that, I use debug printk in the fimc driver to see what is called (using cm7).
marcellusbe said:
Nothing really
I already have good preview in RGB565. Now, I need to know how to capture and record with our old s5k4ca, fimc and jpeg drivers in kernel 2.6.32.
For that, I use debug printk in the fimc driver to see what is called (using cm7).
Click to expand...
Click to collapse
This one .... Sory for bodering You ....
http://omnia2droid.googlecode.com/svn-history/r48/trunk/modules/camera/samsung/ce131.c
Marcell r u able to fix camera with the link provided?
Sent from my GT-I5800 using xda app-developers app

[Q]

Need help, i decopmiled systemui.apk and made a modification in drawble-ldpi folder.
Then i recompiled it and replaced it in system/app, but status bar wont show up.
Am i forgettting any thing here while recompiling?
And after recompiling the apk size decreased a bit than original??
Can anybody tell whats wrong??
Chirtagh said:
Need help, i decopmiled systemui.apk and made a modification in drawble-ldpi folder.
Then i recompiled it and replaced it in system/app, but status bar wont show up.
Am i forgettting any thing here while recompiling?
And after recompiling the apk size decreased a bit than original??
Can anybody tell whats wrong??
Click to expand...
Click to collapse
Please read http://forum.xda-developers.com/showthread.php?t=1707689
A good and useful thread title will help make sure the right people see and help you
hi
zacthespack said:
Please read http://forum.xda-developers.com/showthread.php?t=1707689
A good and useful thread title will help make sure the right people see and help you
Click to expand...
Click to collapse
can i post this same text in related threads??
Chirtagh said:
can i post this same text in related threads??
Click to expand...
Click to collapse
If there is a thread for issues that are pretty much the same maybe, but I would also think you should use the sites search to check if anyone has come up with an answer (unless you already have done this)
zacthespack said:
If there is a thread for issues that are pretty much the same maybe, but I would also think you should use the sites search to check if anyone has come up with an answer (unless you already have done this)
Click to expand...
Click to collapse
Found an anwser
Thanks bro.

Categories

Resources