Skip to content

Commit

Permalink
factory: make sure factory return IVideoXXX interface.
Browse files Browse the repository at this point in the history
OclPostProcessBlender do not inhert from VaapiPostProcessBase
more over, not all sub class deriver from VaapiDecoderBase or VaapiEncoderBase
so make sure factory return IVideoXXX is better
  • Loading branch information
xuguangxin committed Jan 10, 2016
1 parent 3400da7 commit 0f7cad9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions decoder/vaapidecoder_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#define vaapidecoder_factory_h

#include "common/factory.h"
#include "vaapidecoder_base.h"
#include "interface/VideoDecoderInterface.h"

namespace YamiMediaCodec {

typedef Factory<VaapiDecoderBase> VaapiDecoderFactory;
typedef Factory<IVideoDecoder> VaapiDecoderFactory;

} // namespace YamiMediaCodec
#endif // vaapidecoder_factory_h
4 changes: 2 additions & 2 deletions encoder/vaapiencoder_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#define vaapiencoder_factory_h

#include "common/factory.h"
#include "vaapiencoder_base.h"
#include "interface/VideoEncoderInterface.h"

namespace YamiMediaCodec {

typedef Factory<VaapiEncoderBase> VaapiEncoderFactory;
typedef Factory<IVideoEncoder> VaapiEncoderFactory;

} // namespace YamiMediaCodec
#endif // vaapiencoder_factory_h
4 changes: 2 additions & 2 deletions vpp/vaapipostprocess_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#define vaapipostprocess_factory_h

#include "common/factory.h"
#include "vaapipostprocess_base.h"
#include "interface/VideoPostProcessInterface.h"

namespace YamiMediaCodec {

typedef Factory<VaapiPostProcessBase> VaapiPostProcessFactory;
typedef Factory<IVideoPostProcess> VaapiPostProcessFactory;

} // namespace YamiMediaCodec
#endif // vaapipostprocess_factory_h

0 comments on commit 0f7cad9

Please sign in to comment.