Commit 1cec8032 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Commit Bot

media/gpu/VDTest: Don't save frames in ALLOCATE mode

VideoFrameFileWriter cannot save frames in ALLOCATE mode because the video frame
cannot be mapped. This CL fixes the failure in FlushAtEndOfStream_Allocate with
--output_frames option.

Bug: None
Test: video_decode_accelerator_tests with --output_frames
Change-Id: I9ea023c182d010fa65621c428c6291912ffd6db2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777844
Auto-Submit: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarDavid Staessens <dstaessens@chromium.org>
Commit-Queue: David Staessens <dstaessens@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692026}
parent 39eca077
...@@ -74,8 +74,10 @@ class VideoDecoderTest : public ::testing::Test { ...@@ -74,8 +74,10 @@ class VideoDecoderTest : public ::testing::Test {
media::test::VideoFrameValidator::Create(video->FrameChecksums())); media::test::VideoFrameValidator::Create(video->FrameChecksums()));
} }
// Write decoded video frames to the '<testname>' folder. // Write decoded video frames to the '<testname>' folder if import mode is
if (g_env->IsFramesOutputEnabled()) { // supported and enabled.
if (g_env->IsFramesOutputEnabled() &&
config.allocation_mode == AllocationMode::kImport) {
base::FilePath output_folder = base::FilePath output_folder =
base::FilePath(g_env->OutputFolder()) base::FilePath(g_env->OutputFolder())
.Append(base::FilePath(g_env->GetTestName())); .Append(base::FilePath(g_env->GetTestName()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment