impl_f263decoder.cpp 527 B

123456789101112131415161718192021222324
  1. #include "impl_f263decoder.h"
  2. #include "lib.h"
  3. F263Decoder::F263Decoder() : context(0)
  4. {
  5. context = F263_CreateDecoder();
  6. }
  7. F263Decoder::~F263Decoder()
  8. {
  9. if (context)
  10. F263_DestroyDecoder(context);
  11. }
  12. int F263Decoder::DecodeFrame(void *frameData, size_t frameSize, YV12_PLANES *yv12, int *width, int *height, int *keyframe)
  13. {
  14. return F263_DecodeFrame(context, frameData, frameSize, yv12, width, height, keyframe);
  15. }
  16. #define CBCLASS F263Decoder
  17. START_DISPATCH;
  18. CB(DISP_DECODEFRAME, DecodeFrame)
  19. END_DISPATCH;
  20. #undef CBCLASS