True Silent Mode for Lollipop – XDA Xposed Tuesday

The post True Silent Mode for Lollipop XDA Xposed Tuesday appeared first on … more

List of Edge Panel Compatible Apps

more

Google Announces Plans for Projects Titan, Loon and Link

The post Google Announces Plans for Projects Titan, Loon and Link appeared first on … more

Here’s What the HTC One M9 Camera Can Do

more
Post Reply

[SM-T31x] Unoffical CyanogenMod 11 front camera

OP lee_w

12th February 2014, 01:02 PM   |  #1  
OP Junior Member
Thanks Meter: 19
 
24 posts
Join Date:Joined: Dec 2013
More
@ketut.kumajaya (this should be in your
[ROM][SM-T31x][JB/KK][4.3.1/4.4.2] CyanogenMod unofficial builds
thread but I don't have enough posts)

I was still having issues with the front camera recording video in my builds of your CM11 port, not that I really use it but I know lots of people were reporting issues with the cameras and saw a fix committed, so I thought I'd have a poke around.

It looks like a discrepency between the HAL and the media_profiles.xml config for the front camera frame rates. Your recent commit to android_device_samsung_lt01-common/camera/exynos_camera.c changes the front camera frame rates to 25,15 but
android_device_samsung_smdk4412-common/config/media_profiles.xml still uses 30 fps as the frameRate for all the EncoderProfiles for the front camera CamcorderProfile.

Changing media_profiles.xml to use 25 fps fixes front camera recording for me; not sure if this is the correct fix though, can't find definitive information on the supported frame rates for the SR130PC20.
The Following User Says Thank You to lee_w For This Useful Post: [ View ]
12th February 2014, 01:17 PM   |  #2  
Recognized Developer
Flag Bekasi
Thanks Meter: 9,432
 
3,544 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Good finding. I just a bit tried working on CM for T31x and lonely Maybe @daavvis have a better idea about this media profile.
12th February 2014, 02:02 PM   |  #3  
OP Junior Member
Thanks Meter: 19
 
24 posts
Join Date:Joined: Dec 2013
More
It's interestings because a strings of /system/lib/hw/camera.smdk4x12.so on the stock rom turns up

10000,30000
(10000,30000)
30,15
1280x720
6500,30000
(6500,30000)
30,20,15,8
640x480

suggesting the stock HAL thinks the rates are 30/15fps for the rear camera and 30/20/15/8fps for the front, and the stock rom media_profiles.xml front camera uses 15fps for low quality profiles and 30fps for high quality. These rates match up with smdk4412-common/camera/exynos_camera.c but the kernel driver for sr130pc20 suggests the rates are auto/7/15/25/30 so I must be missing something somewhere.
Last edited by lee_w; 12th February 2014 at 02:07 PM.
12th February 2014, 03:09 PM   |  #4  
OP Junior Member
Thanks Meter: 19
 
24 posts
Join Date:Joined: Dec 2013
More
Hmm, just tried another build reverting to:
.preview_frame_rate_values = "30,20,15,8"
.preview_frame_rate = 30
in exynos_camera.c and the media_profiles.xml back at 30fps and it does still work but the recorded video is still at 25fps.

I lose the chain of calls from com.android.camera.VideoModule calling android.media.MediaRecorder.setProfile(CamcorderPr ofile) at
frameworks/av/media/libmedia/IMediaRecorder.cpp setVideoFrameRate(int)
14th February 2014, 06:50 PM   |  #5  
OP Junior Member
Thanks Meter: 19
 
24 posts
Join Date:Joined: Dec 2013
More
@daavvis you know anything about the iteraction between the media_profiles.xml and the camera HAL?
17th February 2014, 02:18 PM   |  #6  
Anil Shovo's Avatar
Senior Member
Thanks Meter: 50
 
244 posts
Join Date:Joined: Feb 2014
Info 2 bug?
how many bug on cm11?
22nd February 2014, 04:58 PM   |  #7  
daavvis's Avatar
Senior Member
Thanks Meter: 2,100
 
1,553 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by lee_w

@daavvis you know anything about the iteraction between the media_profiles.xml and the camera HAL?

Sorry buddy just saw this... Best to hit me up on hangouts

Post Reply Subscribe to Thread

Tags
camera, sm-t310
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes