| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2007, 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: bcsc.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 5/31/07 7:30p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/commonutils/csc/bcsc.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/1 5/31/07 7:30p albertl |
|---|
| 21 | * PR31093: Initial version. |
|---|
| 22 | * |
|---|
| 23 | ***************************************************************************/ |
|---|
| 24 | #ifndef BCSC_H__ |
|---|
| 25 | #define BCSC_H__ |
|---|
| 26 | |
|---|
| 27 | #ifdef __cplusplus |
|---|
| 28 | extern "C" { |
|---|
| 29 | #endif |
|---|
| 30 | |
|---|
| 31 | /* Given source and display (xR, yR), (xG, yG), (xB, yB), (xW, yW), derive CMP matrix; |
|---|
| 32 | Output: CMP matrix in array of 12 fixed point coefficients; |
|---|
| 33 | inputs: |
|---|
| 34 | pul_SrcRGBW - Source gamut in (xR, yR), (xG, yG), (xB, yB), (xW, yW) array, 8 values; |
|---|
| 35 | pul_DispRGBW: - Display gamut in (xR, yR), (xG, yG), (xB, yB), (xW, yW) array, 8 values; |
|---|
| 36 | ulXyFractBits - Fixed-point fractional bits of input gamut values in (x, y) array; |
|---|
| 37 | ulMatrixFractBits - Fixed-point fractional bits of output matrix coefficients; */ |
|---|
| 38 | BERR_Code BCSC_RGBW2CmpMatrix |
|---|
| 39 | ( uint32_t *pul_SrcRGBW, |
|---|
| 40 | uint32_t *pul_DispRGBW, |
|---|
| 41 | uint32_t ulXyFractBits, |
|---|
| 42 | uint32_t ulMatrixFractBits, |
|---|
| 43 | uint32_t ulN, |
|---|
| 44 | int32_t *plCmpMatrix, |
|---|
| 45 | int32_t *plDvoMatrix); |
|---|
| 46 | |
|---|
| 47 | #ifdef __cplusplus |
|---|
| 48 | } |
|---|
| 49 | #endif |
|---|
| 50 | |
|---|
| 51 | #endif /* #ifndef BCSC_H__*/ |
|---|
| 52 | |
|---|
| 53 | /* End of file. */ |
|---|