source: svn/trunk/newcon3bcm2_21bu/dta/src/settop_api/vprimer.h @ 52

Last change on this file since 52 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 4.1 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2009, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: $
11 * $brcm_Revision: $
12 * $brcm_Date: $
13 *
14 * Module Description: Video primer module for fast channel change support.
15 *
16 * Revision History:
17 *
18 * $brcm_Log: $
19 *
20 *
21 ***************************************************************************/
22
23#if !defined(__VPRIMER_H__)
24#define __VPRIMER_H__ 1
25
26#include "bxpt_rave.h"
27/***************************************************************************
28Summary: VPrimer_Handle is a video primer handle
29Description: Video primer handle is returned by open and used for all
30  subsequent operations on the primer.
31SeeAlso:
32None
33***************************************************************************/
34typedef struct VPrimer_t * VPrimer_Handle;
35
36/***************************************************************************
37Summary: Initialize internal primer data structures.
38Description: Initialize internal primer data structures and allocate
39  all needed memory
40Input: None
41Output: None
42Returns: BERR_SUCCESS if successful, error code otherwise
43SeeAlso:
44None
45***************************************************************************/
46BERR_Code vprimer_init(void);
47
48/***************************************************************************
49Summary: Open primer
50Description: Open primer and prepare to spool video from rave context.
51Input: None
52Output:
53  primer - Primer handle to use in future operations
54Returns: BERR_SUCCESS if successful, error code otherwise
55SeeAlso:
56None
57***************************************************************************/
58BERR_Code vprimer_open(VPrimer_Handle * primer);
59
60/***************************************************************************
61Summary: Close primer.
62Description: Close primer, stop spooling and discard any video data.
63Input:
64  primer - Primer handle
65Output:
66  None
67Returns: BERR_SUCCESS if successful, error code otherwise
68SeeAlso:
69None
70***************************************************************************/
71BERR_Code vprimer_close(VPrimer_Handle primer);
72
73/***************************************************************************
74Summary: Attach primer to rave context
75Description: Attach primer to rave context and start spooling data from
76  this context. No explicit start is required to start spooling data.
77Input:
78  primer - primer handle to attach to rave context.
79  cx - rave context to attach to primer.
80Output:
81  None
82Returns: BERR_SUCCESS if successful, error code otherwise
83SeeAlso:
84None
85***************************************************************************/
86BERR_Code vprimer_attach(VPrimer_Handle primer, BXPT_RaveCx_Handle cx, uint8_t format);
87
88/***************************************************************************
89Summary: Detach primer from rave context
90Description: Detach primer from rave context and stop spooling data. When
91  primer is detached context pointers left in consistent state. Rave
92  context can be given to the decoder which should be able to start decoding
93  using rave context pointers.
94Input:
95  primer - primer to detach from.
96  cx - rave context to detach from primer.
97Output:
98  None
99Returns: BERR_SUCCESS if successful, error code otherwise.
100SeeAlso:
101None
102***************************************************************************/
103BERR_Code vprimer_detach(VPrimer_Handle primer, BXPT_RaveCx_Handle cx);
104
105/***************************************************************************
106Summary: Flush primer
107Description: Flush primer and discard all data from rave context
108Input:
109  primer - primer to flush.
110  cx - rave context to flush.
111Output:
112  None
113Returns: BERR_SUCCESS if successful, error code otherwise.
114SeeAlso:
115None
116***************************************************************************/
117BERR_Code vprimer_flush(VPrimer_Handle primer, BXPT_RaveCx_Handle cx);
118
119#endif /*__VPRIMER_H__*/
Note: See TracBrowser for help on using the repository browser.