IppImageAnchorExtension.java
3.26 KB
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
/*
* Decompiled with CFR 0_118.
*/
package com.scene7.is.ipp.messages;
import com.scene7.is.ipp.messages.Ipp;
import com.scene7.is.ipp.messages.IppByte;
import com.scene7.is.ipp.messages.IppExtensionData;
import com.scene7.is.ipp.messages.IppImageAnchor;
import com.scene7.is.ipp.messages.IppImageAnchorType;
import com.scene7.is.ipp.messages.IppInt;
import com.scene7.is.ipp.messages.Offset;
import java.io.IOException;
import java.io.Writer;
public class IppImageAnchorExtension
extends IppImageAnchor {
private IppExtensionData value_;
public IppImageAnchorExtension(IppExtensionData value) {
this.value_ = value;
}
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("[");
buffer.append("value: ").append(String.valueOf(this.value_)).append(" ");
buffer.append("]");
return buffer.toString();
}
public boolean equals(Object o) {
if (!(o instanceof IppImageAnchorExtension)) {
return false;
}
IppImageAnchorExtension e = (IppImageAnchorExtension)o;
if (!this.value_.equals(e.value_)) {
return false;
}
return true;
}
public static IppImageAnchorExtension UnstuffDerived(byte[] arr, Offset arrayPos) {
Ipp.Assert((arrayPos.val & 3) == 0, "IppImageAnchorExtension align");
int type = IppInt.Unstuff(arr, arrayPos);
IppExtensionData value = IppExtensionData.Unstuff(arr, arrayPos);
IppByte.UnstuffFixedArray(arr, arrayPos, 8);
Ipp.Assert(type == 131071, "IppImageAnchorExtension enum id");
return new IppImageAnchorExtension(value);
}
public static void StuffDerived(byte[] arr, Offset arrayPos, Offset varPos, IppImageAnchorExtension val) {
Ipp.Assert((arrayPos.val & 3) == 0, "IppImageAnchorExtension align");
if (val != null) {
IppInt.Stuff(arr, arrayPos, varPos, val.type());
IppExtensionData.Stuff(arr, arrayPos, varPos, val.value());
Ipp.StuffNullBytes(arr, arrayPos, 8);
} else {
Ipp.StuffNullBytes(arr, arrayPos, 24);
}
}
public static void Print(Writer tf, String label, IppImageAnchorExtension it) throws IOException {
String ll = label + "IppImageAnchorExtension: ";
if (it == null) {
tf.write(ll + "NULL!!\n");
return;
}
tf.write(ll + "\n");
IppImageAnchorType.Print(tf, ll + "type: ", it.type());
IppExtensionData.Print(tf, ll + "value: ", it.value());
}
public static void PrintArray(Writer tf, String label, IppImageAnchorExtension[] it) throws IOException {
String ll = label + "IppImageAnchorExtension Array, length: ";
tf.write(ll);
if (it == null) {
tf.write("NULL!!!\n");
return;
}
tf.write("" + it.length + "\n");
for (int i = 0; i < it.length; ++i) {
ll = label + "IppImageAnchorExtension[" + String.valueOf(i) + "]: ";
IppImageAnchorExtension.Print(tf, ll, it[i]);
}
}
public void adjustVarPos(Offset varPos) {
this.value_.adjustVarPos(varPos);
}
public int type() {
return 131071;
}
public IppExtensionData value() {
return this.value_;
}
}