mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] use encode thread to encode frame
This commit is contained in:
@@ -24,9 +24,9 @@ class OpenH264Encoder : public VideoEncoder {
|
||||
|
||||
int Init();
|
||||
|
||||
int Encode(const XVideoFrame* video_frame,
|
||||
std::function<int(std::shared_ptr<EncodedFrame> encoded_frame)>
|
||||
on_encoded_image);
|
||||
int Encode(
|
||||
const RawFrame& raw_frame,
|
||||
std::function<int(const EncodedFrame& encoded_frame)> on_encoded_image);
|
||||
|
||||
int ForceIdr();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user