blob: 23a4f411e8630fa06c5705eab5bcc0bc19c81ce7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: 2025 Renesas Electronics Corporation
#
# Test RGB to YUV conversion in RPF and WPF.
#
. ./vsp-lib.sh
features="rpf.0 wpf.0"
formats="RGB24-YUV444M YUV444M-RGB24"
test_rwpf_csc() {
local rwpf=$1
local format=$2
local infmt=${format%-*}
local outfmt=${format#*-}
local midfmt
test_start "$rwpf CSC $infmt -> $outfmt"
if [ $rwpf = 'RPF' ] ; then
midfmt=$outfmt
else
midfmt=$infmt
fi
pipe_configure rpf-wpf 0 0
format_configure rpf-wpf 0 0 $infmt 1024x768 $outfmt --midfmt=$midfmt
vsp_runner rpf.0 &
vsp_runner wpf.0
local result=$(compare_frames)
test_complete $result
}
test_main() {
local format
for rwpf in RPF WPF ; do
for format in $formats ; do
test_rwpf_csc $rwpf $format
done
done
}
test_init $0 "$features"
test_run
|