H264CodeFrame.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Description : Encode picture
  17. --
  18. ------------------------------------------------------------------------------*/
  19. #ifndef __H264_CODE_FRAME_H__
  20. #define __H264_CODE_FRAME_H__
  21. /*------------------------------------------------------------------------------
  22. 1. Include headers
  23. ------------------------------------------------------------------------------*/
  24. #include "basetype.h"
  25. #include "H264Instance.h"
  26. #include "H264Slice.h"
  27. #include "H264RateControl.h"
  28. #include "encasiccontroller.h"
  29. /*------------------------------------------------------------------------------
  30. 2. External compiler flags
  31. --------------------------------------------------------------------------------
  32. --------------------------------------------------------------------------------
  33. 3. Module defines
  34. ------------------------------------------------------------------------------*/
  35. typedef enum
  36. {
  37. H264ENCODE_OK = 0,
  38. H264ENCODE_TIMEOUT = 1,
  39. H264ENCODE_DATA_ERROR = 2,
  40. H264ENCODE_HW_ERROR = 3,
  41. H264ENCODE_SYSTEM_ERROR = 4,
  42. H264ENCODE_HW_RESET = 5
  43. } h264EncodeFrame_e;
  44. /*------------------------------------------------------------------------------
  45. 4. Function prototypes
  46. ------------------------------------------------------------------------------*/
  47. h264EncodeFrame_e H264CodeFrame(h264Instance_s * inst);
  48. #endif