mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Use factory to create encoder/decoder
This commit is contained in:
16
src/media/video/encode/video_encoder_factory.h
Normal file
16
src/media/video/encode/video_encoder_factory.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _VIDEO_ENCODER_FACTORY_H_
|
||||
#define _VIDEO_ENCODER_FACTORY_H_
|
||||
|
||||
#include "video_encoder.h"
|
||||
class VideoEncoderFactory {
|
||||
public:
|
||||
VideoEncoderFactory();
|
||||
~VideoEncoderFactory();
|
||||
|
||||
static VideoEncoder *CreateVideoEncoder(bool hardware_acceleration);
|
||||
|
||||
private:
|
||||
bool hardware_acceleration_ = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user