aboutsummaryrefslogtreecommitdiff
path: root/kernel-headers/val_vcodec_utility.h
blob: 99ea8e9517f05328b5e716be6d7e4a8663d3ecd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef _VAL_VCODEC_UTILITY_H_
#define _VAL_VCODEC_UTILITY_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "val_types_public.h"
#include "hal_api.h"

/* for hardware vc1_dec + */

/**
 * @par Function
 *   BPDec
 * @par Description
 *   The function used to BP dec
 * @param
 *   hHandle            [IN/OUT] handle
 * @param
 *   hBitHandle         [IN/OUT] bits nandle
 * @param
 *   bpType             [IN] WMV_BP_TYPE
 * @par Returns
 *   VDDRV_MRESULT_T, return VDDRV_MRESULT_SUCCESS is success, return others if fail
 */
VDDRV_MRESULT_T BPDec(VAL_HANDLE_T hHandle, VAL_HANDLE_T *hBitHandle, WMV_BP_TYPE bpType);


/**
 * @par Function
 *   GetReadBSPt
 * @par Description
 *   The function used to get bitstream pointer
 * @param
 *   hHandle            [IN/OUT] handle
 * @param
 *   hBitsHandle        [IN/OUT] bits nandle
 * @param
 *   pBits              [IN] Bits
 * @par Returns
 *   VAL_UINT32_T, return bitstream pointer
 */
VAL_UINT32_T GetReadBSPt(VAL_HANDLE_T hHandle, VAL_HANDLE_T hBitsHandle, VAL_UINT32_T *pBits);


/**
 * @par Function
 *   GetBPDecBits
 * @par Description
 *   The function used to get decode bits
 * @param
 *   hHandle            [IN/OUT] handle
 * @par Returns
 *   VAL_UINT32_T, return decode bits
 */
VAL_UINT32_T GetBPDecBits(VAL_HANDLE_T hHandle);


/**
 * @par Function
 *   WMVDecode_HW
 * @par Description
 *   The function used to decode WMV
 * @param
 *   hHandle            [IN/OUT] handle
 * @param
 *   hBitHandle         [IN/OUT] bits nandle
 * @par Returns
 *   VDDRV_MRESULT_T, return VDDRV_MRESULT_SUCCESS is success, return others if fail
 */
VDDRV_MRESULT_T WMVDecode_HW(VAL_HANDLE_T hHandle, VAL_HANDLE_T *hBitHandle);
/* for hardware vc1_dec - */

#ifdef __cplusplus
}
#endif

#endif /* #ifndef _VAL_VCODEC_UTILITY_H_ */