| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2004-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: bsynclib_video_sink.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 3/24/08 3:10p $ |
|---|
| 13 | * |
|---|
| 14 | * Revision History: |
|---|
| 15 | * |
|---|
| 16 | * $brcm_Log: /magnum/syslib/synclib/noarch/bsynclib_video_sink.h $ |
|---|
| 17 | * |
|---|
| 18 | * Hydra_Software_Devel/1 3/24/08 3:10p bandrews |
|---|
| 19 | * PR40865: Fixed |
|---|
| 20 | * |
|---|
| 21 | * Hydra_Software_Devel/3 2/20/08 10:03p bandrews |
|---|
| 22 | * PR37951: Updated based on feedback from usage |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/2 1/3/08 5:17p bandrews |
|---|
| 25 | * PR37951: Updated based on initial feedback |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/1 12/12/07 2:54p bandrews |
|---|
| 28 | * PR37951: Initial check-in |
|---|
| 29 | ***************************************************************************/ |
|---|
| 30 | |
|---|
| 31 | #include "bstd.h" |
|---|
| 32 | #include "bsynclib_video_format.h" |
|---|
| 33 | #include "bsynclib_delay_element.h" |
|---|
| 34 | |
|---|
| 35 | #ifndef BSYNCLIB_VIDEO_SINK_H__ |
|---|
| 36 | #define BSYNCLIB_VIDEO_SINK_H__ |
|---|
| 37 | |
|---|
| 38 | typedef struct BSYNClib_VideoSink_Data |
|---|
| 39 | { |
|---|
| 40 | unsigned int uiMinDelay; /* TODO: needed? */ |
|---|
| 41 | |
|---|
| 42 | bool bForcedCaptureEnabled; /* is forced capture enabled on this window */ |
|---|
| 43 | bool bMasterFrameRateEnabled; /* is master frame rate enabled on the main window for this display */ |
|---|
| 44 | bool bFullScreen; /* does window rect match display rect? */ |
|---|
| 45 | bool bVisible; /* is this window visible? */ |
|---|
| 46 | } BSYNClib_VideoSink_Data; |
|---|
| 47 | |
|---|
| 48 | typedef struct BSYNClib_VideoSink_Results |
|---|
| 49 | { |
|---|
| 50 | bool bValidated; /* TODO: needed? */ |
|---|
| 51 | } BSYNClib_VideoSink_Results; |
|---|
| 52 | |
|---|
| 53 | /* |
|---|
| 54 | Summary: |
|---|
| 55 | */ |
|---|
| 56 | typedef struct BSYNClib_VideoSink |
|---|
| 57 | { |
|---|
| 58 | BSYNClib_DelayElement sElement; |
|---|
| 59 | |
|---|
| 60 | BSYNClib_VideoFormat sFormat; |
|---|
| 61 | |
|---|
| 62 | BSYNClib_VideoSink_Data sData; |
|---|
| 63 | BSYNClib_VideoSink_Data sSnapshot; |
|---|
| 64 | BSYNClib_VideoSink_Results sResults; |
|---|
| 65 | BSYNClib_VideoSink_Config sConfig; |
|---|
| 66 | BSYNClib_Sink_Status sStatus; |
|---|
| 67 | } BSYNClib_VideoSink; |
|---|
| 68 | |
|---|
| 69 | BSYNClib_VideoSink * BSYNClib_VideoSink_Create(void); |
|---|
| 70 | |
|---|
| 71 | void BSYNClib_VideoSink_Destroy(BSYNClib_VideoSink * psSink); |
|---|
| 72 | |
|---|
| 73 | bool BSYNClib_VideoSink_SyncCheck(BSYNClib_VideoSink * psSink); |
|---|
| 74 | |
|---|
| 75 | void BSYNClib_VideoSink_Reset_isr(BSYNClib_VideoSink * psSink); |
|---|
| 76 | |
|---|
| 77 | void BSYNClib_VideoSink_GetDefaultConfig(BSYNClib_VideoSink_Config * psConfig); |
|---|
| 78 | |
|---|
| 79 | void BSYNClib_VideoSink_P_SelfClearConfig_isr(BSYNClib_VideoSink * psSink); |
|---|
| 80 | |
|---|
| 81 | BERR_Code BSYNClib_VideoSink_P_ProcessConfig_isr(BSYNClib_VideoSink * psSink); |
|---|
| 82 | |
|---|
| 83 | void BSYNClib_VideoSink_Snapshot_isr(BSYNClib_VideoSink * psSink); |
|---|
| 84 | |
|---|
| 85 | void BSYNClib_VideoSink_P_GetDefaultStatus(BSYNClib_Sink_Status * psStatus); |
|---|
| 86 | |
|---|
| 87 | #endif /* BSYNCLIB_VIDEO_SINK_H__ */ |
|---|
| 88 | |
|---|