Transcoder: Add HDR -> SDR unit test using sample plugin.
This commits adds a unit test that force enables loading
sample HDR plugin loading and tries to transcode and HDR10
video. If the codec supports the conversion the test checks
that the transcoded video is SDR. If the codec does not
support the conversion the test checks that transcoding
returns unsupported.
Bug: 180011717
Test: atest HdrTranscodeTests
Change-Id: I9cb26589d320744670b619faa4b35ce5c0541e91
diff --git a/media/libmediatranscoding/transcoder/setloglevel.sh b/media/libmediatranscoding/transcoder/setloglevel.sh
index 5eb7b67..b0f0a2e 100755
--- a/media/libmediatranscoding/transcoder/setloglevel.sh
+++ b/media/libmediatranscoding/transcoder/setloglevel.sh
@@ -2,19 +2,29 @@
if [ $# -ne 1 ]
then
- echo Usage: $0 loglevel
+ echo "Usage 1: $0 <loglevel>"
+ echo " Set all transcoder log tags to <loglevel>"
+ echo "Usage 2: $0 -l"
+ echo " List all transcoder log tags and exit"
exit 1
fi
-level=$1
-echo Setting transcoder log level to $level
-
# List all log tags
declare -a tags=(
MediaTranscoder MediaTrackTranscoder VideoTrackTranscoder PassthroughTrackTranscoder
MediaSampleWriter MediaSampleReader MediaSampleQueue MediaTranscoderTests
MediaTrackTranscoderTests VideoTrackTranscoderTests PassthroughTrackTranscoderTests
- MediaSampleWriterTests MediaSampleReaderNDKTests MediaSampleQueueTests)
+ MediaSampleWriterTests MediaSampleReaderNDKTests MediaSampleQueueTests HdrTranscodeTests)
+
+if [ "$1" == "-l" ]; then
+ echo "Transcoder log tags:"
+ for tag in "${tags[@]}"; do echo -n "$tag "; done
+ echo
+ exit 0
+fi
+
+level=$1
+echo Setting transcoder log level to $level
# Set log level for all tags
for tag in "${tags[@]}"