Home | History | Annotate | Download | only in src
      1 /*
      2  * Copyright (c) 2011 Intel Corporation. All Rights Reserved.
      3  * Copyright (c) Imagination Technologies Limited, UK
      4  *
      5  * Permission is hereby granted, free of charge, to any person obtaining a
      6  * copy of this software and associated documentation files (the
      7  * "Software"), to deal in the Software without restriction, including
      8  * without limitation the rights to use, copy, modify, merge, publish,
      9  * distribute, sub license, and/or sell copies of the Software, and to
     10  * permit persons to whom the Software is furnished to do so, subject to
     11  * the following conditions:
     12  *
     13  * The above copyright notice and this permission notice (including the
     14  * next paragraph) shall be included in all copies or substantial portions
     15  * of the Software.
     16  *
     17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
     18  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
     20  * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
     21  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
     22  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
     23  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     24  */
     25 
     26 /*
     27  * Authors:
     28  *    Li Zeng <li.zeng (at) intel.com>
     29  */
     30 
     31 struct surface_param_s {
     32     uint32_t display_width; /* widht of the image */
     33     uint32_t display_height; /* height of the image */
     34 
     35     uint32_t coded_width; /* width of the image rounding up to nearest multiple of 16 */
     36     uint32_t coded_height; /* height of the image rounding up to nearest multiple of 16 */
     37 
     38     psb_surface_p src_surface;
     39 };
     40 
     41 typedef struct surface_param_s *surface_param_p;
     42 
     43 struct context_yuv_processor_s {
     44     uint32_t display_width;
     45     uint32_t display_height;
     46     uint32_t coded_width;
     47     uint32_t coded_height;
     48     psb_surface_p src_surface;
     49     int has_dec_ctx;
     50     VAProcPipelineParameterBuffer *proc_param;
     51 };
     52 
     53 typedef struct context_yuv_processor_s *context_yuv_processor_p;
     54 
     55 
     56 #define YUVProcessorSurfaceType 0xdeadbeef
     57 
     58 extern struct format_vtable_s tng_yuv_processor_vtable;
     59 
     60 VAStatus ved_QueryVideoProcFilters(
     61     VADriverContextP    ctx,
     62     VAContextID         context,
     63     VAProcFilterType   *filters,
     64     unsigned int       *num_filters);
     65 
     66 VAStatus ved_QueryVideoProcFilterCaps(
     67         VADriverContextP    ctx,
     68         VAContextID         context,
     69         VAProcFilterType    type,
     70         void               *filter_caps,
     71         unsigned int       *num_filter_caps);
     72 
     73 VAStatus ved_QueryVideoProcPipelineCaps(
     74         VADriverContextP    ctx,
     75         VAContextID         context,
     76         VABufferID         *filters,
     77         unsigned int        num_filters,
     78         VAProcPipelineCaps *pipeline_caps);
     79