blob: 067e334a889bc1403ca0491d937e35c876256ae1 [file] [log] [blame]
/*===================== begin_copyright_notice ==================================
INTEL CONFIDENTIAL
Copyright 2009-2012
Intel Corporation All Rights Reserved.
The source code contained or described herein and all documents related to the
source code ("Material") are owned by Intel Corporation or its suppliers or
licensors. Title to the Material remains with Intel Corporation or its suppliers
and licensors. The Material contains trade secrets and proprietary and confidential
information of Intel or its suppliers and licensors. The Material is protected by
worldwide copyright and trade secret laws and treaty provisions. No part of the
Material may be used, copied, reproduced, modified, published, uploaded, posted,
transmitted, distributed, or disclosed in any way without Intel’s prior express
written permission.
No license under any patent, copyright, trade secret or other intellectual
property right is granted to or conferred upon you by disclosure or delivery
of the Materials, either expressly, by implication, inducement, estoppel
or otherwise. Any license under such intellectual property rights must be
express and approved by Intel in writing.
File Name: va_private.h
Abstract: libva private API head file
Environment: Linux/Android
Notes:
======================= end_copyright_notice ==================================*/
#ifndef __VA_PRIVATE_H__
#define __VA_PRIVATE_H__
#include <va/va.h>
#define ENABLE_PAVP_LINUX 1
// Misc parameter for encoder
#define VAEncMiscParameterTypePrivate -2
// encryption parameters for PAVP
#define VAEncryptionParameterBufferType -3
typedef struct _VAEncMiscParameterPrivate
{
unsigned int target_usage; // Valid values 1-7 for AVC & MPEG2.
unsigned int reserved[7]; // Reserved for future use.
} VAEncMiscParameterPrivate;
/*VAEncrytpionParameterBuffer*/
typedef struct _VAEncryptionParameterBuffer
{
//Not used currently
unsigned int encryptionSupport;
//Not used currently
unsigned int hostEncryptMode;
// For IV, Counter input
unsigned int pavpAesCounter[2][4];
// not used currently
unsigned int pavpIndex;
// PAVP mode, CTR, CBC, DEDE etc
unsigned int pavpCounterMode;
unsigned int pavpEncryptionType;
// not used currently
unsigned int pavpInputSize[2];
// not used currently
unsigned int pavpBufferSize[2];
// not used currently
VABufferID pvap_buf;
// set to TRUE if protected media
unsigned int pavpHasBeenEnabled;
// not used currently
unsigned int IntermmediatedBufReq;
// not used currently
unsigned int uiCounterIncrement;
// AppId: PAVP sessin Index from application
unsigned int app_id;
} VAEncryptionParameterBuffer;
#endif