val_vcodec_utility.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef _VAL_VCODEC_UTILITY_H_
  2. #define _VAL_VCODEC_UTILITY_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "val_types_public.h"
  7. #include "hal_api.h"
  8. /* for hardware vc1_dec + */
  9. /**
  10. * @par Function
  11. * BPDec
  12. * @par Description
  13. * The function used to BP dec
  14. * @param
  15. * hHandle [IN/OUT] handle
  16. * @param
  17. * hBitHandle [IN/OUT] bits nandle
  18. * @param
  19. * bpType [IN] WMV_BP_TYPE
  20. * @par Returns
  21. * VDDRV_MRESULT_T, return VDDRV_MRESULT_SUCCESS is success, return others if fail
  22. */
  23. VDDRV_MRESULT_T BPDec(VAL_HANDLE_T hHandle, VAL_HANDLE_T *hBitHandle, WMV_BP_TYPE bpType);
  24. /**
  25. * @par Function
  26. * GetReadBSPt
  27. * @par Description
  28. * The function used to get bitstream pointer
  29. * @param
  30. * hHandle [IN/OUT] handle
  31. * @param
  32. * hBitsHandle [IN/OUT] bits nandle
  33. * @param
  34. * pBits [IN] Bits
  35. * @par Returns
  36. * VAL_UINT32_T, return bitstream pointer
  37. */
  38. VAL_UINT32_T GetReadBSPt(VAL_HANDLE_T hHandle, VAL_HANDLE_T hBitsHandle, VAL_UINT32_T *pBits);
  39. /**
  40. * @par Function
  41. * GetBPDecBits
  42. * @par Description
  43. * The function used to get decode bits
  44. * @param
  45. * hHandle [IN/OUT] handle
  46. * @par Returns
  47. * VAL_UINT32_T, return decode bits
  48. */
  49. VAL_UINT32_T GetBPDecBits(VAL_HANDLE_T hHandle);
  50. /**
  51. * @par Function
  52. * WMVDecode_HW
  53. * @par Description
  54. * The function used to decode WMV
  55. * @param
  56. * hHandle [IN/OUT] handle
  57. * @param
  58. * hBitHandle [IN/OUT] bits nandle
  59. * @par Returns
  60. * VDDRV_MRESULT_T, return VDDRV_MRESULT_SUCCESS is success, return others if fail
  61. */
  62. VDDRV_MRESULT_T WMVDecode_HW(VAL_HANDLE_T hHandle, VAL_HANDLE_T *hBitHandle);
  63. /* for hardware vc1_dec - */
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif /* #ifndef _VAL_VCODEC_UTILITY_H_ */