va_private.h revision 82b428e49a70ddc051a36d2b3a25d90db79770dc
1/* 2* Copyright (c) 2009-2011 Intel Corporation. All rights reserved. 3* 4* Licensed under the Apache License, Version 2.0 (the "License"); 5* you may not use this file except in compliance with the License. 6* You may obtain a copy of the License at 7* 8* http://www.apache.org/licenses/LICENSE-2.0 9* 10* Unless required by applicable law or agreed to in writing, software 11* distributed under the License is distributed on an "AS IS" BASIS, 12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13* See the License for the specific language governing permissions and 14* limitations under the License. 15*/ 16 17#ifndef __VA_PRIVATE_H__ 18#define __VA_PRIVATE_H__ 19#include <va/va.h> 20#define ENABLE_PAVP_LINUX 1 21// Misc parameter for encoder 22#define VAEncMiscParameterTypePrivate -2 23// encryption parameters for PAVP 24#define VAEncryptionParameterBufferType -3 25 26typedef struct _VAEncMiscParameterPrivate 27{ 28 unsigned int target_usage; // Valid values 1-7 for AVC & MPEG2. 29 unsigned int reserved[7]; // Reserved for future use. 30} VAEncMiscParameterPrivate; 31 32/*VAEncrytpionParameterBuffer*/ 33typedef struct _VAEncryptionParameterBuffer 34{ 35 //Not used currently 36 unsigned int encryptionSupport; 37 //Not used currently 38 unsigned int hostEncryptMode; 39 // For IV, Counter input 40 unsigned int pavpAesCounter[2][4]; 41 // not used currently 42 unsigned int pavpIndex; 43 // PAVP mode, CTR, CBC, DEDE etc 44 unsigned int pavpCounterMode; 45 unsigned int pavpEncryptionType; 46 // not used currently 47 unsigned int pavpInputSize[2]; 48 // not used currently 49 unsigned int pavpBufferSize[2]; 50 // not used currently 51 VABufferID pvap_buf; 52 // set to TRUE if protected media 53 unsigned int pavpHasBeenEnabled; 54 // not used currently 55 unsigned int IntermmediatedBufReq; 56 // not used currently 57 unsigned int uiCounterIncrement; 58 // AppId: PAVP sessin Index from application 59 unsigned int app_id; 60 61} VAEncryptionParameterBuffer; 62 63#endif 64