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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-media-MediaCodecInfo_CodecCapabilities"))]
__jni_bindgen! {
/// public final class [MediaCodecInfo.CodecCapabilities](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html)
///
/// Required feature: "android-media-MediaCodecInfo_CodecCapabilities"
public final class MediaCodecInfo_CodecCapabilities ("android/media/MediaCodecInfo$CodecCapabilities") extends crate::java::lang::Object {
/// [CodecCapabilities](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#CodecCapabilities())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::MediaCodecInfo_CodecCapabilities>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/MediaCodecInfo$CodecCapabilities", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/MediaCodecInfo$CodecCapabilities\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public [profileLevels](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#profileLevels)
///
/// Required feature: "android-media-MediaCodecInfo_CodecProfileLevel"
#[cfg(any(feature = "all", feature = "android-media-MediaCodecInfo_CodecProfileLevel"))]
pub fn profileLevels<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::media::MediaCodecInfo_CodecProfileLevel, crate::java::lang::Throwable>>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/media/MediaCodecInfo$CodecCapabilities\0", "profileLevels\0", "[Landroid/media/MediaCodecInfo$CodecProfileLevel;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **set** public [profileLevels](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#profileLevels)
///
/// Required feature: "android-media-MediaCodecInfo_CodecProfileLevel"
#[cfg(any(feature = "all", feature = "android-media-MediaCodecInfo_CodecProfileLevel"))]
pub fn set_profileLevels<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::ObjectArray<crate::android::media::MediaCodecInfo_CodecProfileLevel, crate::java::lang::Throwable>>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/media/MediaCodecInfo$CodecCapabilities\0", "profileLevels\0", "[Landroid/media/MediaCodecInfo$CodecProfileLevel;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
/// public static final [COLOR_FormatMonochrome](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatMonochrome)
pub const COLOR_FormatMonochrome : i32 = 1;
/// public static final [COLOR_Format8bitRGB332](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format8bitRGB332)
pub const COLOR_Format8bitRGB332 : i32 = 2;
/// public static final [COLOR_Format12bitRGB444](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format12bitRGB444)
pub const COLOR_Format12bitRGB444 : i32 = 3;
/// public static final [COLOR_Format16bitARGB4444](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format16bitARGB4444)
pub const COLOR_Format16bitARGB4444 : i32 = 4;
/// public static final [COLOR_Format16bitARGB1555](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format16bitARGB1555)
pub const COLOR_Format16bitARGB1555 : i32 = 5;
/// public static final [COLOR_Format16bitRGB565](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format16bitRGB565)
pub const COLOR_Format16bitRGB565 : i32 = 6;
/// public static final [COLOR_Format16bitBGR565](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format16bitBGR565)
pub const COLOR_Format16bitBGR565 : i32 = 7;
/// public static final [COLOR_Format18bitRGB666](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format18bitRGB666)
pub const COLOR_Format18bitRGB666 : i32 = 8;
/// public static final [COLOR_Format18bitARGB1665](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format18bitARGB1665)
pub const COLOR_Format18bitARGB1665 : i32 = 9;
/// public static final [COLOR_Format19bitARGB1666](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format19bitARGB1666)
pub const COLOR_Format19bitARGB1666 : i32 = 10;
/// public static final [COLOR_Format24bitRGB888](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format24bitRGB888)
pub const COLOR_Format24bitRGB888 : i32 = 11;
/// public static final [COLOR_Format24bitBGR888](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format24bitBGR888)
pub const COLOR_Format24bitBGR888 : i32 = 12;
/// public static final [COLOR_Format24bitARGB1887](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format24bitARGB1887)
pub const COLOR_Format24bitARGB1887 : i32 = 13;
/// public static final [COLOR_Format25bitARGB1888](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format25bitARGB1888)
pub const COLOR_Format25bitARGB1888 : i32 = 14;
/// public static final [COLOR_Format32bitBGRA8888](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format32bitBGRA8888)
pub const COLOR_Format32bitBGRA8888 : i32 = 15;
/// public static final [COLOR_Format32bitARGB8888](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format32bitARGB8888)
pub const COLOR_Format32bitARGB8888 : i32 = 16;
/// public static final [COLOR_FormatYUV411Planar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV411Planar)
pub const COLOR_FormatYUV411Planar : i32 = 17;
/// public static final [COLOR_FormatYUV411PackedPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV411PackedPlanar)
pub const COLOR_FormatYUV411PackedPlanar : i32 = 18;
/// public static final [COLOR_FormatYUV420Planar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV420Planar)
pub const COLOR_FormatYUV420Planar : i32 = 19;
/// public static final [COLOR_FormatYUV420PackedPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV420PackedPlanar)
pub const COLOR_FormatYUV420PackedPlanar : i32 = 20;
/// public static final [COLOR_FormatYUV420SemiPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV420SemiPlanar)
pub const COLOR_FormatYUV420SemiPlanar : i32 = 21;
/// public static final [COLOR_FormatYUV422Planar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV422Planar)
pub const COLOR_FormatYUV422Planar : i32 = 22;
/// public static final [COLOR_FormatYUV422PackedPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV422PackedPlanar)
pub const COLOR_FormatYUV422PackedPlanar : i32 = 23;
/// public static final [COLOR_FormatYUV422SemiPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV422SemiPlanar)
pub const COLOR_FormatYUV422SemiPlanar : i32 = 24;
/// public static final [COLOR_FormatYCbYCr](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYCbYCr)
pub const COLOR_FormatYCbYCr : i32 = 25;
/// public static final [COLOR_FormatYCrYCb](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYCrYCb)
pub const COLOR_FormatYCrYCb : i32 = 26;
/// public static final [COLOR_FormatCbYCrY](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatCbYCrY)
pub const COLOR_FormatCbYCrY : i32 = 27;
/// public static final [COLOR_FormatCrYCbY](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatCrYCbY)
pub const COLOR_FormatCrYCbY : i32 = 28;
/// public static final [COLOR_FormatYUV444Interleaved](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV444Interleaved)
pub const COLOR_FormatYUV444Interleaved : i32 = 29;
/// public static final [COLOR_FormatRawBayer8bit](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatRawBayer8bit)
pub const COLOR_FormatRawBayer8bit : i32 = 30;
/// public static final [COLOR_FormatRawBayer10bit](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatRawBayer10bit)
pub const COLOR_FormatRawBayer10bit : i32 = 31;
/// public static final [COLOR_FormatRawBayer8bitcompressed](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatRawBayer8bitcompressed)
pub const COLOR_FormatRawBayer8bitcompressed : i32 = 32;
/// public static final [COLOR_FormatL2](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatL2)
pub const COLOR_FormatL2 : i32 = 33;
/// public static final [COLOR_FormatL4](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatL4)
pub const COLOR_FormatL4 : i32 = 34;
/// public static final [COLOR_FormatL8](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatL8)
pub const COLOR_FormatL8 : i32 = 35;
/// public static final [COLOR_FormatL16](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatL16)
pub const COLOR_FormatL16 : i32 = 36;
/// public static final [COLOR_FormatL24](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatL24)
pub const COLOR_FormatL24 : i32 = 37;
/// public static final [COLOR_FormatL32](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatL32)
pub const COLOR_FormatL32 : i32 = 38;
/// public static final [COLOR_FormatYUV420PackedSemiPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV420PackedSemiPlanar)
pub const COLOR_FormatYUV420PackedSemiPlanar : i32 = 39;
/// public static final [COLOR_FormatYUV422PackedSemiPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatYUV422PackedSemiPlanar)
pub const COLOR_FormatYUV422PackedSemiPlanar : i32 = 40;
/// public static final [COLOR_Format18BitBGR666](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format18BitBGR666)
pub const COLOR_Format18BitBGR666 : i32 = 41;
/// public static final [COLOR_Format24BitARGB6666](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format24BitARGB6666)
pub const COLOR_Format24BitARGB6666 : i32 = 42;
/// public static final [COLOR_Format24BitABGR6666](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_Format24BitABGR6666)
pub const COLOR_Format24BitABGR6666 : i32 = 43;
/// public static final [COLOR_TI_FormatYUV420PackedSemiPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_TI_FormatYUV420PackedSemiPlanar)
pub const COLOR_TI_FormatYUV420PackedSemiPlanar : i32 = 2130706688;
/// public static final [COLOR_FormatSurface](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatSurface)
pub const COLOR_FormatSurface : i32 = 2130708361;
/// public static final [COLOR_QCOM_FormatYUV420SemiPlanar](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_QCOM_FormatYUV420SemiPlanar)
pub const COLOR_QCOM_FormatYUV420SemiPlanar : i32 = 2141391872;
/// **get** public [colorFormats](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#colorFormats)
pub fn colorFormats<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::IntArray>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/media/MediaCodecInfo$CodecCapabilities\0", "colorFormats\0", "[I\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **set** public [colorFormats](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#colorFormats)
pub fn set_colorFormats<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::IntArray>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/media/MediaCodecInfo$CodecCapabilities\0", "colorFormats\0", "[I\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
}
}