| * Copyright 2018 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. |
| #include "test/scenario/hardware_codecs.h" |
| #include "rtc_base/checks.h" |
| #include "modules/video_coding/codecs/test/android_codec_factory_helper.h" |
| #include "modules/video_coding/codecs/test/objc_codec_factory_helper.h" |
| std::unique_ptr<VideoEncoderFactory> CreateHardwareEncoderFactory() { |
| InitializeAndroidObjects(); |
| return CreateAndroidEncoderFactory(); |
| return CreateObjCEncoderFactory(); |
| << "Hardware encoder not implemented on this platform."; |
| std::unique_ptr<VideoDecoderFactory> CreateHardwareDecoderFactory() { |
| InitializeAndroidObjects(); |
| return CreateAndroidDecoderFactory(); |
| return CreateObjCDecoderFactory(); |
| << "Hardware decoder not implemented on this platform."; |