decoder.h
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. #ifndef _DECODER_H_
  2. #define _DECODER_H_
  3. #include "xvid.h"
  4. #include "portab.h"
  5. #include "global.h"
  6. #include "image/image.h"
  7. typedef struct
  8. {
  9. // bitstream
  10. uint32_t shape;
  11. uint32_t time_inc_bits;
  12. uint32_t quant_bits;
  13. uint32_t quant_type;
  14. uint32_t quarterpel;
  15. uint32_t interlacing;
  16. uint32_t top_field_first;
  17. uint32_t alternate_vertical_scan;
  18. // image
  19. uint32_t width;
  20. uint32_t height;
  21. uint32_t edged_width;
  22. uint32_t edged_height;
  23. IMAGE cur;
  24. IMAGE refn;
  25. IMAGE refh;
  26. IMAGE refv;
  27. IMAGE refhv;
  28. // macroblock
  29. uint32_t mb_width;
  30. uint32_t mb_height;
  31. MACROBLOCK * mbs;
  32. } DECODER;
  33. void init_decoder(uint32_t cpu_flags);
  34. int decoder_alloc(XVID_DEC_PARAM * param);
  35. int decoder_initialize(DECODER * dec);
  36. int decoder_create(XVID_DEC_PARAM * param);
  37. int decoder_destroy(DECODER * dec);
  38. int decoder_decode(DECODER * dec, XVID_DEC_FRAME * frame);
  39. int decoder_find_vol(DECODER * dec, XVID_DEC_FRAME *frame, XVID_DEC_PARAM *param);
  40. #endif /* _DECODER_H_ */