blob: 991a0bbd5708609998e7a5cdc9a9513075c9ec7a [file] [log] [blame]
// Copyright 2018 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 video
import (
"context"
"chromiumos/tast/local/bundles/cros/video/encode"
"chromiumos/tast/local/bundles/cros/video/lib/caps"
"chromiumos/tast/local/bundles/cros/video/lib/videotype"
"chromiumos/tast/testing"
)
func init() {
testing.AddTest(&testing.Test{
Func: EncodeAccelH264I420,
Desc: "Run Chrome video_encode_accelerator_unittest from I420 raw frames to H264 stream",
Attr: []string{"informational"},
SoftwareDeps: []string{caps.HWEncodeH264},
Data: []string{encode.Bear192P.Name},
})
}
// EncodeAccelH264I420 runs video_encode_accelerator_unittest to encode H264 encoding with I420 raw data, bear_320x192_40frames.yuv.
func EncodeAccelH264I420(ctx context.Context, s *testing.State) {
encode.RunAccelVideoTest(ctx, s, encode.TestOptions{Profile: videotype.H264Prof, Params: encode.Bear192P, PixelFormat: videotype.I420})
}