blob: 401c8136ae50eaf256a5450b951df493eaafd1ab [file]
/*
* Copyright 2025 The WebRTC project authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef API_VIDEO_CORRUPTION_DETECTION_FRAME_INSTRUMENTATION_GENERATOR_FACTORY_H_
#define API_VIDEO_CORRUPTION_DETECTION_FRAME_INSTRUMENTATION_GENERATOR_FACTORY_H_
#include <memory>
#include <optional>
#include "api/environment/environment.h"
#include "api/video/corruption_detection/frame_instrumentation_generator.h"
#include "api/video/video_codec_type.h"
#include "api/video_codecs/scalability_mode.h"
namespace webrtc {
class FrameInstrumentationGeneratorFactory {
public:
// TODO: bugs.webrtc.org/358039777 - Deprecate and remove when downstream
// usage is gone.
static std::unique_ptr<FrameInstrumentationGenerator> Create(
VideoCodecType video_codec_type);
static std::unique_ptr<FrameInstrumentationGenerator> Create(
const Environment& environment,
VideoCodecType video_codec_type,
std::optional<ScalabilityMode> scalability_mode);
};
} // namespace webrtc
#endif // API_VIDEO_CORRUPTION_DETECTION_FRAME_INSTRUMENTATION_GENERATOR_FACTORY_H_