mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-19 20:13:49 -04:00
[Why] Add public API to obtain number of taps in SPL. [How] Isolate function to calculate recout, ratios and viewport before calculating taps. Call function in both public taps API call and private scaling call. Reviewed-by: Jun Lei <jun.lei@amd.com> Signed-off-by: Samson Tam <Samson.Tam@amd.com> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
19 lines
427 B
C
19 lines
427 B
C
// SPDX-License-Identifier: MIT
|
|
//
|
|
// Copyright 2024 Advanced Micro Devices, Inc.
|
|
|
|
#ifndef __DC_SPL_H__
|
|
#define __DC_SPL_H__
|
|
|
|
#include "dc_spl_types.h"
|
|
#define BLACK_OFFSET_RGB_Y 0x0
|
|
#define BLACK_OFFSET_CBCR 0x8000
|
|
|
|
/* SPL interfaces */
|
|
|
|
bool spl_calculate_scaler_params(struct spl_in *spl_in, struct spl_out *spl_out);
|
|
|
|
bool spl_get_number_of_taps(struct spl_in *spl_in, struct spl_out *spl_out);
|
|
|
|
#endif /* __DC_SPL_H__ */
|