Skip to content

Commit

Permalink
remove default weight null field
Browse files Browse the repository at this point in the history
  • Loading branch information
Traneptora committed Sep 6, 2024
1 parent 1938dfc commit a0c0cdc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions java/com/traneptora/jxlatte/frame/vardct/HFGlobal.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
public class HFGlobal {

private static final DCTParams[] defaultParams = new DCTParams[17];
private static final float[][][][] defaultWeights = new float[17][3][][];

private static final float[] afvFreqs = {0, 0, 0.8517778890324296f, 5.37778436506804f,
0, 0, 4.734747904497923f, 5.449245381693219f, 1.6598270267479331f, 4, 7.275749096817861f,
Expand Down Expand Up @@ -345,11 +344,6 @@ private float[][] getAFVTransformWeights(int index, int c) throws InvalidBitstre
private void generateWeights(int index) throws InvalidBitstreamException {
TransformType tt = Stream.of(TransformType.values())
.filter(t -> t.parameterIndex == index && !t.isVertical()).findFirst().get();
if (params[index] == defaultParams[index]) {
for (int c = 0; c < 3; c++)
weights[index][c] = defaultWeights[index][c];
return;
}
for (int c = 0; c < 3; c++) {
float[][] w;
switch (params[index].mode) {
Expand Down

0 comments on commit a0c0cdc

Please sign in to comment.