/* * Copyright (C) 2013-2016 Freescale Semiconductor, Inc. * Copyright 2017-2019 NXP * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * 'Software'), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject * to the following conditions: * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial * portions of the Software. * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * IN NO EVENT SHALL VIVANTE AND/OR ITS SUPPLIERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * */ /* * g2dExt.h * g2dExt.h is for g2d extension, some feature has platform dependency, not recommended to customer. * So any platform dependent extension should be here, others will still be updated in g2d.h. * History : * Date(y.m.d) Author Version Description */ #ifndef __G2DEXT_H__ #define __G2DEXT_H__ #include "g2d.h" #ifdef __cplusplus extern "C" { #endif struct g2d_tile_status { unsigned int ts_addr; unsigned int fc_enabled; unsigned int fc_value; unsigned int fc_value_upper; }; enum g2d_tiling { G2D_LINEAR = 0x1, G2D_TILED = 0x2, G2D_SUPERTILED = 0x4, G2D_AMPHION_TILED = 0x8, G2D_AMPHION_INTERLACED = 0x10, G2D_TILED_STATUS = 0x20, }; struct g2d_surfaceEx { struct g2d_surface base; enum g2d_tiling tiling; struct g2d_tile_status ts; int reserved[8]; }; int g2d_blitEx(void *handle, struct g2d_surfaceEx *srcEx, struct g2d_surfaceEx *dstEx); int g2d_set_clipping(void *handle, int left, int top, int right, int bottom); /** * @brief Set the Color Space Conversion Matrix. * @param handle A g2d handle. * @param matrix A 4x4 matrix. When NULL, Color Space Coversion is disabled. * @return 0 if successful; or 1 if failed */ int g2d_set_csc_matrix(void *handle, const unsigned *matrix); #ifdef __cplusplus } #endif #endif