1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
media / gpu / video_frame_mapper_factory.h [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_VIDEO_FRAME_MAPPER_FACTORY_H_
#define MEDIA_GPU_VIDEO_FRAME_MAPPER_FACTORY_H_
#include <memory>
#include "media/base/video_types.h"
#include "media/gpu/media_gpu_export.h"
#include "media/gpu/video_frame_mapper.h"
namespace media {
// A factory function for VideoFrameMapper.
// The appropriate VideoFrameMapper is a platform-dependent.
class MEDIA_GPU_EXPORT VideoFrameMapperFactory {
public:
// Tries to create a VideoFrameMapper suitable for mapping VideoFrames
// described by |format| and |storage_type|.
static std::unique_ptr<VideoFrameMapper> CreateMapper(
VideoPixelFormat format,
VideoFrame::StorageType storage_type);
// Tries to create a VideoFrameMapper suitable for mapping VideoFrames
// described by |format| and |storage_type|.
static std::unique_ptr<VideoFrameMapper> CreateMapper(
VideoPixelFormat format,
VideoFrame::StorageType storage_type,
bool force_linear_buffer_mapper);
};
} // namespace media
#endif // MEDIA_GPU_VIDEO_FRAME_MAPPER_FACTORY_H_