blob: dd244687f17ba8484493fde4ff9df68079d40b0d [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package arc
import (
"context"
"time"
"chromiumos/tast/common/media/caps"
"chromiumos/tast/local/bundles/cros/arc/libvda"
"chromiumos/tast/testing"
)
func init() {
testing.AddTest(&testing.Test{
Func: LibvdaDecode,
LacrosStatus: testing.LacrosVariantUnknown,
Desc: "Checks that video decoding using libvda's Mojo connection to GAVDA is working",
Contacts: []string{"alexlau@chromium.org", "chromeos-video-eng@google.com"},
Attr: []string{"group:mainline", "informational"},
SoftwareDeps: []string{"android_vm", "chrome"},
Timeout: 4 * time.Minute,
Params: []testing.Param{{
Name: "h264",
Val: "h264",
ExtraSoftwareDeps: []string{caps.HWDecodeH264, "proprietary_codecs"},
ExtraData: []string{"test-25fps.h264"},
}, {
Name: "vp8",
Val: "vp8",
ExtraSoftwareDeps: []string{caps.HWDecodeVP8},
ExtraData: []string{"test-25fps.vp8"},
}, {
Name: "vp9",
Val: "vp9",
ExtraSoftwareDeps: []string{caps.HWDecodeVP9},
ExtraData: []string{"test-25fps.vp9"},
}},
})
}
func LibvdaDecode(ctx context.Context, s *testing.State) {
logFileName := "output_libvda_" + s.Param().(string) + ".txt"
videoFile := "test-25fps." + s.Param().(string)
libvda.RunGPUFileDecodeTest(ctx, s, logFileName, videoFile)
}