OSDN Git Service

Omx VTS tests
authorRam Mohan M <ram.mohan@ittiam.com>
Wed, 26 Apr 2017 06:40:01 +0000 (12:10 +0530)
committerZhuoyao Zhang <zhuoyao@google.com>
Wed, 3 May 2017 06:44:26 +0000 (23:44 -0700)
commit23c658f118fe66c84a2812830d0ae7bc7afb90e9
tree7a222497739be3a43a05da165015e47a8c80f878
parent76061d7881328a94f3eb0a87520dfc71d9fc5e55
Omx VTS tests

Bug: 32023356
Test: make vts.

preload elementary stream information during decoding

instead of using extractor to get the frame boundaries, frame
flags and timestamp information, they are read from a metadata
file in the resources directory on demand. Instead of doing it
on demand, we load the entire file information and use it. This
modification comes in handy for future test fixtures

Change-Id: I3a434018111eb66008f17c24b4c2c16d0db22ed1

bug fix: wait on input consumption

after queuing all the frames that need to be processed by
the component, the application continues its job of deinitializing
the component before ensuring all the inputs were decoded.
This is corrected.

Change-Id: I09a11fd5badabe2889ba243383145be07be51953

add end of stream test for audio decoder

component is provided an input with nFlags field set OMX_BUFFERFLAG_EOS.
the application expects this flag to be returned via one of its output
buffers. this flag is passed to the component at different timings to test
the robustness.

Change-Id: I00e3fdd5ef50d93f2620d8b0e9fc3c358de428d7

add timestamp deviation test for decoder components

the list of timestamps received from the component is
compared with the list provided to the component for any
differences

Change-Id: Ifcc16b7a00f58e1c1dfdba9f538d307ddcbfcc71

add option to configure resource files path

default location of resource files is /sdcard/media/. client can provide
choice of this location via the option -P.

example: VtsHalMediaOmxV1_0TargetVideoDecTest -C <component> -R <role> -P /sdcard/res/

Change-Id: Ib8d3af03c19a171e3bbb9839f7e331cbe576b24b

add flush test for audio & video dec components

while decoding a group of frames, flush call is made and it is
checked if all the i/o buffers are sent back to client. we then
seek to the next keyframe and test for decoding. monotonous
increase of timestamps is ensured.

Change-Id: Id48c76c157ebdfdefd3003e57519da3bd9715973
26 files changed:
media/omx/1.0/vts/functional/README.md
media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp
media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioEncTest.cpp
media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.cpp
media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.h
media/omx/1.0/vts/functional/common/media_hidl_test_common.h
media/omx/1.0/vts/functional/component/VtsHalMediaOmxV1_0TargetComponentTest.cpp
media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp
media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoEncTest.cpp
media/omx/1.0/vts/functional/video/media_video_hidl_test_common.cpp
media/omx/1.0/vts/functional/video/media_video_hidl_test_common.h
media/res/bbb_avc_1920x1080_5000kbps_30fps.info
media/res/bbb_h263_352x288_300kbps_12fps.h263 [new file with mode: 0644]
media/res/bbb_h263_352x288_300kbps_12fps.info [new file with mode: 0644]
media/res/bbb_hevc_640x360_1600kbps_30fps.hevc [new file with mode: 0644]
media/res/bbb_hevc_640x360_1600kbps_30fps.info [new file with mode: 0644]
media/res/bbb_mp3_stereo_192kbps_48000hz.info
media/res/bbb_mpeg2_176x144_105kbps_25fps.info [new file with mode: 0644]
media/res/bbb_mpeg2_176x144_105kbps_25fps.m2v [new file with mode: 0644]
media/res/bbb_mpeg4_1280x720_1000kbps_25fps.info [new file with mode: 0644]
media/res/bbb_mpeg4_1280x720_1000kbps_25fps.m4v [new file with mode: 0644]
media/res/bbb_vp8_640x360_2mbps_30fps.info [new file with mode: 0644]
media/res/bbb_vp8_640x360_2mbps_30fps.vp8 [new file with mode: 0644]
media/res/bbb_vp9_640x360_1600kbps_30fps.info [new file with mode: 0644]
media/res/bbb_vp9_640x360_1600kbps_30fps.vp9 [new file with mode: 0644]
media/res/sine_amrnb_1ch_12kbps_8000hz.info