coder.h
上传用户:panstart
上传日期:2022-04-12
资源大小:199k
文件大小:2k
源码类别:

IP电话/视频会议

开发平台:

C++ Builder

  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. //
  4. //    Project     : VideoNet version 1.1.
  5. //    Description : Peer to Peer Video Conferencing over the LAN.
  6. //   Author      : Nagareshwar Y Talekar ( nsry2002@yahoo.co.in)
  7. //    Date        : 15-6-2004.
  8. //
  9. //    I have converted origional fast h.263 encoder library from C to C++ 
  10. //   so that it can be integrated into any windows application easily.
  11. //   I have removed some of unnecessary codes/files from the
  12. //   fast h263 library.Also moved definitions and declarations
  13. //   in their proper .h and .cpp files.
  14. //
  15. //    File description : 
  16. //    Name    : coder.h
  17. //
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #if !defined _CODER_H
  21. #define _CODER_H
  22. #include "Global.h"
  23. void ZeroMBlock(MB_Structure *data);
  24. void CodeIntraH263(CParam *params, Bits *bits);
  25. void CodeInterH263(CParam *params, Bits *bits);
  26. //__inline__ void Clip(MB_Structure *data);
  27. void Clip(MB_Structure *data);
  28. int *MB_EncodeAndFindCBP(MB_Structure *mb_orig, int QP, int I, int *CBP);
  29. int MB_Decode(int *qcoeff, MB_Structure *mb_recon, int QP, int I);
  30. void FullMotionEstimatePicture(unsigned int *curr, unsigned int *prev, 
  31.        unsigned int *prev_ipol, int seek_dist, 
  32.        MotionVector *MV_ptr,
  33.        int advanced_method,
  34.        int *EncodeThisBlock);
  35. void ReconCopyImage(int i, int j, unsigned int *recon, unsigned int *prev_recon);
  36. void ReconImage (int i, int j, MB_Structure *data, unsigned int *recon);
  37. void InterpolateImage(unsigned int *image,
  38.        unsigned int *ipol_image, 
  39.        int w, int h);
  40. void FillLumBlock( int x, int y, unsigned int *image, MB_Structure *data);
  41. void FillChromBlock(int x_curr, int y_curr, unsigned int *image,
  42.     MB_Structure *data);
  43. #endif