[CTS] Test Package: android.media Class-android.media.cts.EncodeDecodeTest

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

[CTS] Test Package: android.media Class-android.media.cts.EncodeDecodeTest

1,645 Views
mahammedsuhelsh
Contributor II

Hi

Below Test cases are failing while running EncodeDecodeTest

Failed Test Cases:
– testEncodeDecodeVideoFromBufferToBufferQCIF
junit.framework.AssertionFailedError: Found 30 bad frames at junit.framework.Assert.fail(Assert.java:50)

– testEncodeDecodeVideoFromBufferToBufferQVGA
junit.framework.AssertionFailedError: Found 30 bad frames at junit.framework.Assert.fail(Assert.java:50)

– testVP8EncodeDecodeVideoFromBufferToBufferQCIF
junit.framework.AssertionFailedError: Found 30 bad frames at junit.framework.Assert.fail(Assert.java:50)

– testVP8EncodeDecodeVideoFromBufferToBufferQVGA

This might be happening due to 32 bit frame alignment in VPU codecs.

format used

testEncodeDecodeVideoFromBufferToBufferQCIF

176*144 AVC codec

– testEncodeDecodeVideoFromBufferToBufferQVGA

320*240 AVC

testVP8EncodeDecodeVideoFromBufferToBufferQCIF

176*144 VP8 codec

testVP8EncodeDecodeVideoFromBufferToBufferQVGA

320*240 VP8 codec

Labels (1)
Tags (2)
0 Kudos
7 Replies

961 Views
mahammedsuhelsh
Contributor II

Hi SergioSolis,


We are using quad core board,

one observation

After removing below changes in

File :Acodec.cpp

Function name : status_t ACodec::getPortFormat(OMX_U32 portIndex, sp<AMessage> &notify)

Code changes:

if(rect.nHeight > 0

&& rect.nHeight < videoDef->nFrameHeight

&& !strncmp(mComponentName.c_str(), "OMX.Freescale.std.video_decoder", 31)

&& strstr(mComponentName.c_str(),"hw-based")){

  ALOGW("ACodec map vpu crop info: output crop: %d, frameH %d", rect.nHeight, videoDef->nFrameHeight);

notify->setInt32("slice-height", videoDef->nFrameHeight);

videoDef->nFrameHeight = rect.nHeight;

}

its working but android.media.cts.Vp8EncoderTest testEncoderQuality is failing

0 Kudos

961 Views
SergioSolis
NXP Employee
NXP Employee

Hello Mahammed,

can you please tell me which Android version you are using and which evaluation board?

961 Views
mahammedsuhelsh
Contributor II

Hi SergioSolis,

Thanks for the reply.

We are using android version:5.1.1

Evaluation board: Freescale I.MX 6 SABRESD

0 Kudos

961 Views
SergioSolis
NXP Employee
NXP Employee

Are you using the Quad core board?, can you give me the complete part number?

0 Kudos

961 Views
SergioSolis
NXP Employee
NXP Employee

Can you please tell me how you created the environment and the steps to reproduce your test?. Did you change anything from it?

961 Views
mahammedsuhelsh
Contributor II

I have flashed freescale sabersd images.and then run below command for CTS

run cts -c android.media.cts.EncodeDecodeTest

0 Kudos

961 Views
SergioSolis
NXP Employee
NXP Employee

Can I ask you to do the CTS test following the next link:

Running CTS tests | Android Open Source Project

also, can you include the log of the failures?.. but most importantly, can you follow the guidelines in the link I posted?

0 Kudos