| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2005, 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: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: $ |
|---|
| 19 | ***************************************************************************/ |
|---|
| 20 | #ifndef BSETTOP_P_STREAM_H__ |
|---|
| 21 | #define BSETTOP_P_STREAM_H__ |
|---|
| 22 | |
|---|
| 23 | #include "bsettop_stream.h" |
|---|
| 24 | #include "bxpt_rave.h" |
|---|
| 25 | #include "bxpt_pcr.h" |
|---|
| 26 | #include "bxpt_pcr_offset.h" |
|---|
| 27 | |
|---|
| 28 | #ifdef __cplusplus |
|---|
| 29 | extern "C" { |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 32 | /* |
|---|
| 33 | Summary: |
|---|
| 34 | Private stream data structure to associate rave and context info with the stream. |
|---|
| 35 | */ |
|---|
| 36 | struct bstream |
|---|
| 37 | { |
|---|
| 38 | bool in_use; /* flag indicating the context is in use */ |
|---|
| 39 | int pid_ch; /* Main pid channel index */ |
|---|
| 40 | int pcr_pid_ch; /* PCR pid channel index */ |
|---|
| 41 | bband_t band; /* Band with possibly playback flag */ |
|---|
| 42 | bstream_mpeg mpeg; /* mpeg program pids */ |
|---|
| 43 | BXPT_RaveCx_Handle hRaveCx; /* Rave context associated with the stream */ |
|---|
| 44 | BXPT_PcrOffset_Handle hPcrOffset; /* PCR Offset handle */ |
|---|
| 45 | }; |
|---|
| 46 | |
|---|
| 47 | void bstream_pcroffset_config_context(bstream_t stream); |
|---|
| 48 | BERR_Code bstream_p_rave_enable(bstream_t stream, bool enable); |
|---|
| 49 | BERR_Code bstream_p_attach_rave(bstream_t stream, bool attach); |
|---|
| 50 | BERR_Code bstream_p_rave_flush(bstream_t stream); |
|---|
| 51 | BERR_Code bstream_p_get_rave_context_map(bstream_t stream,BAVC_XptContextMap *p_Map); |
|---|
| 52 | void bstream_p_pcroffset_update(bstream_t stream); |
|---|
| 53 | BERR_Code bstream_p_config_xpt_pid_ch(int pid_ch, unsigned short pid, bband_t Band); |
|---|
| 54 | void bstream_p_pcr_config(BXPT_Handle hXpt, bstream_t stream); |
|---|
| 55 | void bstream_p_pcroffset_pid_ch_config(bstream_t stream,int pid_ch); |
|---|
| 56 | |
|---|
| 57 | #ifdef __cplusplus |
|---|
| 58 | } |
|---|
| 59 | #endif |
|---|
| 60 | |
|---|
| 61 | #endif /* BSETTOP_P_STREAM_H__ */ |
|---|
| 62 | |
|---|
| 63 | |
|---|