blob: 8dd0d4ef36020f215997dd9a2bae050cf8b5d795 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "media/gpu/test/video_frame_mapper.h"
namespace media {
namespace test {
// A factory function for VideoFrameMapper.
// The appropriate VideoFrameMapper is a platform-dependent.
class VideoFrameMapperFactory {
// Create an instance of the frame mapper.
static std::unique_ptr<VideoFrameMapper> CreateMapper();
// |linear_buffer_mapper| stands for a created mapper type. If true, the
// mapper will expect frames passed to it to be in linear format.
static std::unique_ptr<VideoFrameMapper> CreateMapper(
bool force_linear_buffer_mapper);
} // namespace test
} // namespace media