blob: 88ef9c89daacf216cab7dcfae050c85ec2509c5e [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 camera
import (
func init() {
Func: DecodeAccelUsedJPEG,
Desc: "Checks HW decoding is used for MJPEG in GetUserMedia()",
Contacts: []string{
"", // Test author.
Attr: []string{"group:mainline", "informational", "group:camera-libcamera"},
SoftwareDeps: []string{"chrome", "camera_legacy", caps.HWDecodeJPEG},
Data: []string{"get_user_media.html", "crowd720_25frames.mjpeg"},
func DecodeAccelUsedJPEG(ctx context.Context, s *testing.State) {
getusermedia.RunDecodeAccelUsedJPEG(ctx, s, "get_user_media.html", "crowd720_25frames.mjpeg", constants.RTCJPEGInitStatus, constants.RTCJPEGInitSuccess)