| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2008, 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 | ***************************************************************************/ |
|---|
| 21 | #ifndef BAPP_GSE_H__ |
|---|
| 22 | #define BAPP_GSE_H__ |
|---|
| 23 | |
|---|
| 24 | #include "scte_127.h" |
|---|
| 25 | /* mapping to BAVC_Polarity */ |
|---|
| 26 | typedef enum GS_FIELD__ { |
|---|
| 27 | GS_FIELD_TOP, |
|---|
| 28 | GS_FIELD_BOT |
|---|
| 29 | } GS_FIELD; |
|---|
| 30 | |
|---|
| 31 | #define GS_BUF_SIZE 4 /* 4 bytes each line */ |
|---|
| 32 | #define NUM_GS_BUF 5 /* maximux 5 lines */ |
|---|
| 33 | |
|---|
| 34 | typedef struct |
|---|
| 35 | { |
|---|
| 36 | unsigned int lines; |
|---|
| 37 | unsigned int data[NUM_GS_BUF]; |
|---|
| 38 | } gs_field_buf_t; |
|---|
| 39 | |
|---|
| 40 | typedef struct bapp_gs *bapp_gs_t; |
|---|
| 41 | |
|---|
| 42 | bapp_gs_t bapp_gs_open(void* p_opaque_app); |
|---|
| 43 | bool bapp_gs_init(bapp_gs_t p_gs); |
|---|
| 44 | void bapp_gs_enable(bapp_gs_t p_gs, bool enable); |
|---|
| 45 | void bapp_gs_close(bapp_gs_t p_gs); |
|---|
| 46 | uint32_t bapp_gs_set(bapp_gs_t p_gs, GS_FIELD field, gs_field_buf_t *pGESData); |
|---|
| 47 | void bapp_gs_status(bapp_gs_t p_gs); |
|---|
| 48 | uint32_t bapp_gs_set_scte_127 ( bapp_gs_t p_gs, scte_127_data *line_data); |
|---|
| 49 | uint32_t bapp_gs_set_scte_127_list(bapp_gs_t p_gs, int count, pscte_127_data line_list[]); |
|---|
| 50 | bool bapp_gs_reset(bapp_gs_t p_gs); |
|---|
| 51 | |
|---|
| 52 | #endif /* BAPP_GSE_H__ */ |
|---|