OSDN Git Service

Add vdenc common commands for CNL
[android-x86/hardware-intel-common-vaapi.git] / src / vpx_quant.h
1 /*
2  * Copyright © 2017 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the
6  * "Software"), to deal in the Software without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sub license, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject to
10  * the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the
13  * next paragraph) shall be included in all copies or substantial portions
14  * of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19  * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
20  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  *
24  */
25
26 /*
27  * This file defines some quantization tables, and
28  * they are ported from libvpx (https://github.com/mrchapp/libvpx/).
29  * The original copyright and licence statement as below.
30  */
31
32 /*
33  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
34  *
35  *  Use of this source code is governed by a BSD-style license
36  *  that can be found in the LICENSE file in the root of the source
37  *  tree. An additional intellectual property rights grant can be found
38  *  in the file PATENTS.  All contributing project authors may
39  *  be found in the AUTHORS file in the root of the source tree.
40  */
41
42 #ifndef VPX_QUANT_H
43 #define VPX_QUANT_H
44
45 extern const unsigned short quant_dc_vp8[128];
46
47 extern const unsigned short quant_ac_vp8[128];
48
49 extern const unsigned short quant_dc2_vp8[128];
50
51 extern const unsigned short quant_ac2_vp8[128];
52
53 extern const unsigned short quant_dc_uv_vp8[128];
54
55 #endif /* VPX_QUANT_H */