Blame va/va_fool.h

Packit Service 9402ce
/*
Packit Service 9402ce
 * Copyright (c) 2009 Intel Corporation. All Rights Reserved.
Packit Service 9402ce
 *
Packit Service 9402ce
 * Permission is hereby granted, free of charge, to any person obtaining a
Packit Service 9402ce
 * copy of this software and associated documentation files (the
Packit Service 9402ce
 * "Software"), to deal in the Software without restriction, including
Packit Service 9402ce
 * without limitation the rights to use, copy, modify, merge, publish,
Packit Service 9402ce
 * distribute, sub license, and/or sell copies of the Software, and to
Packit Service 9402ce
 * permit persons to whom the Software is furnished to do so, subject to
Packit Service 9402ce
 * the following conditions:
Packit Service 9402ce
 * 
Packit Service 9402ce
 * The above copyright notice and this permission notice (including the
Packit Service 9402ce
 * next paragraph) shall be included in all copies or substantial portions
Packit Service 9402ce
 * of the Software.
Packit Service 9402ce
 * 
Packit Service 9402ce
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Packit Service 9402ce
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit Service 9402ce
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
Packit Service 9402ce
 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
Packit Service 9402ce
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
Packit Service 9402ce
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
Packit Service 9402ce
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Packit Service 9402ce
 */
Packit Service 9402ce
Packit Service 9402ce
Packit Service 9402ce
#ifndef VA_FOOL_H
Packit Service 9402ce
#define VA_FOOL_H
Packit Service 9402ce
Packit Service 9402ce
#include <stdio.h>
Packit Service 9402ce
Packit Service 9402ce
#ifdef __cplusplus
Packit Service 9402ce
extern "C" {
Packit Service 9402ce
#endif
Packit Service 9402ce
Packit Service 9402ce
extern int va_fool_codec;
Packit Service 9402ce
extern int va_fool_postp;
Packit Service 9402ce
Packit Service 9402ce
#define VA_FOOL_FLAG_DECODE  0x1
Packit Service 9402ce
#define VA_FOOL_FLAG_ENCODE  0x2
Packit Service 9402ce
#define VA_FOOL_FLAG_JPEG    0x4
Packit Service 9402ce
Packit Service 9402ce
#define VA_FOOL_FUNC(fool_func,...)            \
Packit Service 9402ce
    if (va_fool_codec) {                       \
Packit Service 9402ce
        if (fool_func(__VA_ARGS__))            \
Packit Service 9402ce
            return VA_STATUS_SUCCESS;          \
Packit Service 9402ce
    }
Packit Service 9402ce
    
Packit Service 9402ce
void va_FoolInit(VADisplay dpy);
Packit Service 9402ce
int va_FoolEnd(VADisplay dpy);
Packit Service 9402ce
Packit Service 9402ce
int va_FoolCreateConfig(
Packit Service 9402ce
        VADisplay dpy,
Packit Service 9402ce
        VAProfile profile, 
Packit Service 9402ce
        VAEntrypoint entrypoint, 
Packit Service 9402ce
        VAConfigAttrib *attrib_list,
Packit Service 9402ce
        int num_attribs,
Packit Service 9402ce
        VAConfigID *config_id /* out */
Packit Service 9402ce
);
Packit Service 9402ce
Packit Service 9402ce
Packit Service 9402ce
VAStatus va_FoolCreateBuffer(
Packit Service 9402ce
    VADisplay dpy,
Packit Service 9402ce
    VAContextID context,	/* in */
Packit Service 9402ce
    VABufferType type,		/* in */
Packit Service 9402ce
    unsigned int size,		/* in */
Packit Service 9402ce
    unsigned int num_elements,	/* in */
Packit Service 9402ce
    void *data,			/* in */
Packit Service 9402ce
    VABufferID *buf_id		/* out */
Packit Service 9402ce
);
Packit Service 9402ce
Packit Service 9402ce
VAStatus va_FoolMapBuffer (
Packit Service 9402ce
    VADisplay dpy,
Packit Service 9402ce
    VABufferID buf_id,	/* in */
Packit Service 9402ce
    void **pbuf 	/* out */
Packit Service 9402ce
);
Packit Service 9402ce
Packit Service 9402ce
VAStatus va_FoolBufferInfo (
Packit Service 9402ce
    VADisplay dpy,
Packit Service 9402ce
    VABufferID buf_id,  /* in */
Packit Service 9402ce
    VABufferType *type, /* out */
Packit Service 9402ce
    unsigned int *size,         /* out */
Packit Service 9402ce
    unsigned int *num_elements /* out */
Packit Service 9402ce
);
Packit Service 9402ce
    
Packit Service 9402ce
VAStatus va_FoolCheckContinuity(VADisplay dpy);
Packit Service 9402ce
Packit Service 9402ce
#ifdef __cplusplus
Packit Service 9402ce
}
Packit Service 9402ce
#endif
Packit Service 9402ce
Packit Service 9402ce
#endif