This repository was archived by the owner on May 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 459
/
Copy pathmfx_config.h
128 lines (110 loc) · 3.82 KB
/
mfx_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Copyright (c) 2018-2020 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#ifndef _MFX_CONFIG_H_
#define _MFX_CONFIG_H_
#include "mfxdefs.h"
#ifndef MFX_DEPRECATED_OFF
#define MFX_DEPRECATED_OFF
#endif
#ifdef MFX_VA
#if defined(LINUX32) || defined(LINUX64)
#include <va/va_version.h>
#undef MFX_VA_LINUX
#define MFX_VA_LINUX
#endif
#endif
#if defined(ANDROID)
// we don't support config auto-generation on Android and have hardcoded
// definition instead
#include "mfx_android_defs.h"
#else
// mfxconfig.h is auto-generated file containing mediasdk per-component
// enable defines
#include "mfxconfig.h"
#if defined(AS_H264LA_PLUGIN)
#define MFX_ENABLE_LA_H264_VIDEO_HW
#undef MFX_ENABLE_H264_VIDEO_FEI_ENCODE
#else
#if MFX_VERSION >= 1025
#define MFX_ENABLE_MFE
#endif
#define MFX_ENABLE_VPP
#endif
#endif // #if defined(ANDROID)
// Here follows per-codec feature enable options which as of now we don't
// want to expose on build system level since they are too detailed.
#if defined(MFX_ENABLE_H264_VIDEO_ENCODE)
#define MFX_ENABLE_H264_VIDEO_ENCODE_HW
#if MFX_VERSION >= 1023
#define MFX_ENABLE_H264_REPARTITION_CHECK
#endif
#if MFX_VERSION >= 1027
#define MFX_ENABLE_H264_ROUNDING_OFFSET
#endif
#if defined(MFX_ENABLE_H264_VIDEO_FEI_ENCODE)
#define MFX_ENABLE_H264_VIDEO_FEI_ENCPAK
#define MFX_ENABLE_H264_VIDEO_FEI_PREENC
#define MFX_ENABLE_H264_VIDEO_FEI_ENC
#define MFX_ENABLE_H264_VIDEO_FEI_PAK
#endif
#if defined(MFX_ENABLE_MCTF)
#define MFX_ENABLE_MCTF_IN_AVC
#endif
#endif
#if defined(MFX_ENABLE_H265_VIDEO_ENCODE)
#define MFX_ENABLE_HEVCE_INTERLACE
#define MFX_ENABLE_HEVCE_ROI
#define MFX_ENABLE_HEVCE_HDR_SEI
#define MFX_ENABLE_HEVCE_WEIGHTED_PREDICTION
#define MFX_ENABLE_HEVCE_FADE_DETECTION
//#define MFX_ENABLE_HEVCE_DIRTY_RECT
#endif
#if defined(MFX_ENABLE_VP9_VIDEO_ENCODE)
#define MFX_ENABLE_VP9_VIDEO_ENCODE_HW
#endif
#if defined(MFX_ENABLE_VP9_VIDEO_DECODE)
#define MFX_ENABLE_VP9_VIDEO_DECODE_HW
#endif
#if defined(MFX_ENABLE_VP8_VIDEO_DECODE)
#define MFX_ENABLE_VP8_VIDEO_DECODE_HW
#endif
#if defined(MFX_ENABLE_VPP)
#define MFX_ENABLE_VPP_COMPOSITION
#define MFX_ENABLE_VPP_ROTATION
#define MFX_ENABLE_VPP_VIDEO_SIGNAL
//#define MFX_ENABLE_VPP_FRC
#endif
#if defined(MFX_ENABLE_ASC)
#define MFX_ENABLE_SCENE_CHANGE_DETECTION_VPP
#endif
#if MFX_VERSION >= 1028
#define MFX_ENABLE_RGBP
#define MFX_ENABLE_FOURCC_RGB565
#endif
#if MFX_VERSION >= 1031
#define MFX_ENABLE_PARTIAL_BITSTREAM_OUTPUT
#endif
#if defined(MFX_VA_LINUX)
#if VA_CHECK_VERSION(1,3,0)
#define MFX_ENABLE_QVBR
#endif
#endif
#define CMAPIUPDATE
#endif // _MFX_CONFIG_H_