Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBufImgOps.h
41159 views
1
/*
2
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
#ifndef MTLBufImgOps_h_Included
27
#define MTLBufImgOps_h_Included
28
29
#include "MTLContext.h"
30
31
@interface MTLRescaleOp : NSObject
32
- (id)init:(jboolean)isNonPremult factors:(unsigned char *)factors offsets:(unsigned char *)offsets;
33
- (jfloat *)getScaleFactors;
34
- (jfloat *)getOffsets;
35
- (NSString *)getDescription; // creates autorelease string
36
37
@property (readonly) jboolean isNonPremult;
38
@end
39
40
@interface MTLConvolveOp : NSObject
41
- (id)init:(jboolean)edgeZeroFill kernelWidth:(jint)kernelWidth
42
kernelHeight:(jint)kernelHeight
43
srcWidth:(jint)srcWidth
44
srcHeight:(jint)srcHeight
45
kernel:(unsigned char *)kernel
46
device:(id<MTLDevice>)device;
47
- (void) dealloc;
48
49
- (id<MTLBuffer>) getBuffer;
50
- (const float *) getImgEdge;
51
- (NSString *)getDescription; // creates autorelease string
52
53
@property (readonly) jboolean isEdgeZeroFill;
54
@property (readonly) int kernelSize;
55
@end
56
57
@interface MTLLookupOp : NSObject
58
- (id)init:(jboolean)nonPremult shortData:(jboolean)shortData
59
numBands:(jint)numBands
60
bandLength:(jint)bandLength
61
offset:(jint)offset
62
tableValues:(void *)tableValues
63
device:(id<MTLDevice>)device;
64
- (void) dealloc;
65
66
- (jfloat *)getOffset;
67
- (id<MTLTexture>) getLookupTexture;
68
- (NSString *)getDescription; // creates autorelease string
69
70
@property (readonly) jboolean isUseSrcAlpha;
71
@property (readonly) jboolean isNonPremult;
72
@end
73
74
#endif /* MTLBufImgOps_h_Included */
75
76