| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2004-2010, 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_algo.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 12 | * $brcm_Date: 5/28/10 6:31p $ |
|---|
| 13 | * |
|---|
| 14 | * Revision History: |
|---|
| 15 | * |
|---|
| 16 | * $brcm_Log: /magnum/syslib/synclib/noarch/bsynclib_algo.h $ |
|---|
| 17 | * |
|---|
| 18 | * Hydra_Software_Devel/3 5/28/10 6:31p bandrews |
|---|
| 19 | * SW7405-4436: printing channel index in dbg messages |
|---|
| 20 | * |
|---|
| 21 | * Hydra_Software_Devel/2 12/10/09 9:18p bandrews |
|---|
| 22 | * SW7401-3634: adding PWC (now JTI) support to synclib |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/1 3/24/08 3:09p bandrews |
|---|
| 25 | * PR40865: Fixed |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/3 2/26/08 3:03p bandrews |
|---|
| 28 | * PR37951: Added video delay requantization |
|---|
| 29 | * |
|---|
| 30 | * Hydra_Software_Devel/2 1/3/08 5:17p bandrews |
|---|
| 31 | * PR37951: Updated based on initial feedback |
|---|
| 32 | * |
|---|
| 33 | * Hydra_Software_Devel/1 12/12/07 2:53p bandrews |
|---|
| 34 | * PR37951: Initial check-in |
|---|
| 35 | ***************************************************************************/ |
|---|
| 36 | |
|---|
| 37 | #include "bstd.h" |
|---|
| 38 | #include "bsynclib.h" |
|---|
| 39 | #include "bsynclib_channel_priv.h" |
|---|
| 40 | |
|---|
| 41 | #ifndef BSYNCLIB_ALGO_H__ |
|---|
| 42 | #define BSYNCLIB_ALGO_H__ |
|---|
| 43 | |
|---|
| 44 | void BSYNClib_Algo_AudioVideo_Sync(BSYNClib_Channel_Path * psAudio, BSYNClib_Channel_Path * psVideo, BSYNClib_Channel_Results * psResults); |
|---|
| 45 | void BSYNClib_Algo_AudioAudio_Sync(BSYNClib_Channel_Path * psPath); |
|---|
| 46 | void BSYNClib_Algo_VideoVideo_Sync(BSYNClib_Channel_Path * psPath); |
|---|
| 47 | |
|---|
| 48 | void BSYNClib_Algo_AudioVideo_Allocator(BSYNClib_Channel_Path * psAudio, BSYNClib_Channel_Path * psVideo, BSYNClib_Channel_Results * psResults); |
|---|
| 49 | void BSYNClib_Algo_AudioAudio_Allocator(BSYNClib_Channel_Path * psPath); |
|---|
| 50 | void BSYNClib_Algo_VideoVideo_Allocator(BSYNClib_Channel_Path * psPath); |
|---|
| 51 | |
|---|
| 52 | void BSYNClib_Algo_AudioVideo_MaxFinder(BSYNClib_Channel_Path * psAudio, BSYNClib_Channel_Path * psVideo, BSYNClib_Channel_Results * psResults); |
|---|
| 53 | void BSYNClib_Algo_AudioSource_MaxFinder(BSYNClib_Channel_Path * psPath); |
|---|
| 54 | void BSYNClib_Algo_AudioSink_MaxFinder(BSYNClib_Channel_Path * psPath); |
|---|
| 55 | void BSYNClib_Algo_VideoSource_MaxFinder(BSYNClib_Channel_Path * psPath); |
|---|
| 56 | void BSYNClib_Algo_VideoSink_MaxFinder(BSYNClib_Channel_Path * psPath); |
|---|
| 57 | |
|---|
| 58 | BERR_Code BSYNClib_Algo_AudioSource_Applicator(BSYNClib_Channel_Path * psPath, BSYNClib_Channel_SetDelay pfSetDelay, void * pvParm1, int iParm2); |
|---|
| 59 | BERR_Code BSYNClib_Algo_AudioSink_Applicator(BSYNClib_Channel_Path * psPath, BSYNClib_Channel_SetDelay pfSetDelay, void * pvParm1, int iParm2); |
|---|
| 60 | BERR_Code BSYNClib_Algo_VideoSource_Applicator(BSYNClib_Channel_Path * psPath, BSYNClib_Channel_SetDelay pfSetDelay, void * pvParm1, int iParm2); |
|---|
| 61 | BERR_Code BSYNClib_Algo_VideoSink_Applicator(BSYNClib_Channel_Path * psPath, BSYNClib_Channel_SetDelay pfSetDelay, void * pvParm1, int iParm2); |
|---|
| 62 | |
|---|
| 63 | void BSYNClib_Algo_RequantizeDelay(int iChannelIndex, unsigned int uiDelay, unsigned int uiQuantizationLevel, unsigned int * puiRequantizedDelay); |
|---|
| 64 | void BSYNClib_Algo_CalculateJitterToleranceImprovementFactor(BSYNClib_Channel_Path * psVideo, BSYNClib_VideoSource * psSource, unsigned int uiCurrentDelay, int * piJtiFactor, unsigned int * puiAdditionalDelay); |
|---|
| 65 | |
|---|
| 66 | #endif /* BSYNCLIB_ALGO_H__ */ |
|---|
| 67 | |
|---|