modify media_profiles.xml

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

modify media_profiles.xml

2,984 Views
ispark
Contributor I

Target:

i.mx6 Android 4.4.2 1.0.0~rc3

Kernel 3.0.35

Board: solid-run cubox-i som i1.

I uses i.mx6 with UVC camera and current configuration is like below.

V/CAM_VideoModule( 3280): mDesiredPreviewWidth=640. mDesiredPreviewHeight=480

I/FslCameraHAL( 2299): Width * Height 640 x 480 format 0x56595559, fps: 30

Now I wanna change resolution to below.

I/FslCameraHAL( 2299): SupportedPictureSizes: 1280 x 720

Android builder echos below process for default configuration.

target Prebuilt: media_profiles.xml (out/target/product/cuboxi/obj/ETC/media_profiles.xml_intermediates/media_profiles.xml)

Install: out/target/product/cuboxi/system/etc/media_profiles.xml

I want to change out/target/product/cuboxi/system/etc/media_profiles.xml

Where should I modify original media_profiles.xml?

Labels (2)
0 Kudos
10 Replies

1,547 Views
weidong_sun
NXP TechSupport
NXP TechSupport

:smileyhappy: , OK!

Weidong

0 Kudos

1,547 Views
ispark
Contributor I

When checking log data, below value is changed.

Initial value:

I/FslCameraHAL( 2299): mMaxWidth:1280, mMaxHeight:720

changed value;

I/FslCameraHAL( 2298): mMaxWidth:960, mMaxHeight:544

But below value are still not changed:

V/CAM_VideoModule( 3445): mDesiredPreviewWidth=640. mDesiredPreviewHeight=480

do you have any idea?

0 Kudos

1,547 Views
ispark
Contributor I

Dear Weidong,

One more thing, when I set below parameter manually, video broken.

width = 960; height =544;

and while finding some information, it should be upgraded to KK4.4.3.

Do you have any idea?

0 Kudos

1,547 Views
ispark
Contributor I

I upload new UvcDevice.cpp and tested.

but resolution is still remains to 640*480 like attached.

Would you please check what should I do?

belowis new log.

V/CameraHolder( 3445): open camera 0

I/AwesomePlayer( 2298): setDataSource_l(URL suppressed)

I/AwesomePlayer( 2298): setDataSource_l(URL suppressed)

I/Camera2ClientBase( 2298): Camerehci_fsl_bus_resume begins, DR

a 0: Opened

I/FslCameraHAL( 2298): camera_device open: 0

I/FslCameraHAL( 2298): DeviceAdapter: Create uvc device

ehci_fsl_bus_resume ends, DR

E/FslCameraHAL( 2298): Error: format 0x47504a4d not supported!

I/FslCameraHAL( 2298): pixel format: 0x56595559

I/FslCameraHAL( 2298): pixel format: 0x56595559

I/FslCameraHAL( 2298): SupportedPictureSizes: 640 x 480

I/FslCameraHAL( 2298): SupportedPreviewSizes: 960 x 544

I/FslCameraHAL( 2298): SupportedPreviewSizes: 640 x 480

I/FslCameraHAL( 2298): FrameDuration is 33331760, 30000000000

I/FslCameraHAL( 2298): mMaxWidth:960, mMaxHeight:544

E/FslCameraHAL( 2298): cpu num 1

W/Camera2-Parameters( 2298): buildFastInfo: Camera 0: activeArraySize is missing xmin/ymin!

I/Camera2-Parameters( 2298): Camera 0: Disabling ZSL mode

V/CAM_VideoModule( 3445): mDesiredPreviewWidth=640. mDesiredPreviewHeight=480

D/dalvikvm( 3445): GC_CONCURRENT freed 343K, 11% free 3527K/3936K, paused 2ms+1ms, total 19ms

V/NFC     ( 3445): this device does not have NFC support

D/        ( 2661): AccelSensor enable 1 , handle 0 ,mEnabled 6

E/SensorService( 2661): Error activating sensor 0 (Operation not permitted)

V/CAM_VideoModule( 3445): mDesiredPreviewWidth=640. mDesiredPreviewHeight=480

V/CAM_VideoModule( 3445): startPreview

D/        ( 2661): AccelSensor enable 1 , handle 0 ,mEnabled 7

E/SensorService( 2661): Error activating sensor 0 (Operation not permitted)

D/libEGL  ( 3445): loaded /system/lib/egl/libEGL_VIVANTE.so

D/libEGL  ( 3445): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so

D/libEGL  ( 3445): loaded /system/lib/egl/libGLESv2_VIVANTE.so

E/BufferQueue( 2295): [com.android.camera2/com.android.camera.VideoCamera] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

D/OpenGLRenderer( 3445): Enabling debug mode 0

V/CAM_VideoModule( 3445): startPreview

V/CAM_VideoModule( 3445): Video snapshot size is 800x600

I/FslCameraHAL( 2298): DEBUG(CreateDefaultRequest): making template (1)

I/FslCameraHAL( 2298): DEBUG(CreateDefaultRequest): making template (3)

I/FslCameraHAL( 2298): RequestManager allocateStream...

I/FslCameraHAL( 2298): allocateStream preview stream, w:640, h:480, fmt:0x22

I/FslCameraHAL( 2298): actual format 0x103

I/FslCameraHAL( 2298): RequestManager allocateStream end...

I/FslCameraHAL( 2298): RequestManager registerStreamBuffers stream id:0

I/FslCameraHAL( 2298): registerBuffers total 5 buffer

I/FslCameraHAL( 2298): RequestManager registerStreamBuffers end...

I/FslCameraHAL( 2298): RequestManager allocateStream...

I/FslCameraHAL( 2298): allocateStream jpeg stream, w:800, h:600, fmt:0x21

I/FslCameraHAL( 2298): actual format 0x103

I/FslCameraHAL( 2298): RequestManager allocateStream end...

I/FslCameraHAL( 2298): RequestManager registerStreamBuffers stream id:3

I/FslCameraHAL( 2298): RequestManager registerStreamBuffers end...

I/FslCameraHAL( 2298): notify_request_queue_not_empty running

I/FslCameraHAL( 2298): dispatchRequest running

I/FslCameraHAL( 2298): handleRequest running

I/FslCameraHAL( 2298): PreviewStream configure running

I/FslCameraHAL( 2298): pixel format: 0x56595559

I/FslCameraHAL( 2298): IS Width * Height 640 x 480 format 0x56595559, fps: 30

I/ActivityManager( 2661): Displayed com.android.camera2/com.android.camera.VideoCamera: +1s327ms

I/FslCameraHAL( 2298): PreviewStream start running

I/FslCameraHAL( 2298): StreamAdapter start running

I/FslCameraHAL( 2298): stream thread received STREAM_START command

I/FslCameraHAL( 2298): Created device thread

0 Kudos

1,547 Views
ispark
Contributor I

I've got source, thanks.

0 Kudos

1,547 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi ,

     You don't need to modify media_profile.xml, but camera HAL of UVC should be adjusted. you can try the attchment. I adjusted the HAL for you !

Regards,

Weidong

0 Kudos

1,547 Views
ispark
Contributor I

Thanks for your response, but i cant find attachment, would you please check again?

0 Kudos

1,547 Views
weidong_sun
NXP TechSupport
NXP TechSupport

UvcDeivice.cpp was attached again, check it please!

0 Kudos

1,547 Views
ispark
Contributor I

Hi Weidong, Does it possible to get by email?

ispark@megacast.co.kr

or any link should be OK.

0 Kudos

1,547 Views
ispark
Contributor I

Sorry but I cant find link or attachment for UvcDeivice.cpp .

would you please let me know where should I download?

Screenshot from 2016-03-15 14_40_05.png

0 Kudos