fork/rust-sdks

git clone https://git.julia.blue/fork/rust-sdks

Théo Monnomfeat: android hw mediacodec (#119)c65a275

main
1.1 KiB37 linesraw
1/*
2 * Copyright 2023 LiveKit
3 *
4 * Licensed under the Apache License, Version 2.0 (the “License”);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an “AS IS” BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <jni.h>
20
21#include <memory>
22
23#include "api/video_codecs/video_decoder_factory.h"
24#include "api/video_codecs/video_encoder_factory.h"
25
26namespace livekit {
27typedef JavaVM JavaVM;
28}  // namespace livekit
29#include "webrtc-sys/src/android.rs.h"
30
31namespace livekit {
32void init_android(JavaVM* jvm);
33
34std::unique_ptr<webrtc::VideoEncoderFactory> CreateAndroidVideoEncoderFactory();
35std::unique_ptr<webrtc::VideoDecoderFactory> CreateAndroidVideoDecoderFactory();
36
37}  // namespace livekit