Path: blob/21.2-virgl/src/gallium/auxiliary/vl/vl_compositor_gfx.h
4565 views
/**************************************************************************1*2* Copyright 2009 Younes Manton.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627#ifndef vl_compositor_gfx_h28#define vl_compositor_gfx_h2930#include "vl_compositor.h"3132/**33* create vertex shader34*/35void *36create_vert_shader(struct vl_compositor *c);3738/**39* create YCbCr-to-RGB fragment40*/41void *42create_frag_shader_video_buffer(struct vl_compositor *c);4344/**45* create YCbCr-to-RGB weave fragment shader46*/47void *48create_frag_shader_weave_rgb(struct vl_compositor *c);4950/**51* create YCbCr i-to-YCbCr p deint fragment shader52*/53void *54create_frag_shader_deint_yuv(struct vl_compositor *c,55bool y,56bool w);5758/**59* create YUV/RGB-Palette-to-RGB fragment shader60*/61void *62create_frag_shader_palette(struct vl_compositor *c,63bool include_cc);6465/**66* create YCbCr RGB-to-RGB fragment shader67*/68void *69create_frag_shader_rgba(struct vl_compositor *c);7071/**72* create RGB-to-YUV fragment shader73*/74void *75create_frag_shader_rgb_yuv(struct vl_compositor *c,76bool y);7778/**79* render the layers to the frontbuffer with graphic shader80*/81void82vl_compositor_gfx_render(struct vl_compositor_state *s,83struct vl_compositor *c,84struct pipe_surface *dst_surface,85struct u_rect *dirty_area,86bool clear_dirty);87#endif /* vl_compositor_gfx_h */888990