-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two decompiled files not found in the sources jar
- Loading branch information
1 parent
2e39a94
commit db8b440
Showing
2 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
library/src/main/java/com/qualcomm/robotcore/util/Version.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Decompiled with CFR 0_133. | ||
*/ | ||
package com.qualcomm.robotcore.util; | ||
|
||
public class Version { | ||
public static final String LIBRARY_VERSION = "developer_build"; | ||
|
||
public static String getLibraryVersion() { | ||
return LIBRARY_VERSION; | ||
} | ||
} | ||
|
112 changes: 112 additions & 0 deletions
112
...src/main/java/org/firstinspires/ftc/robotcore/internal/camera/ScriptC_format_convert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
/* | ||
* Decompiled with CFR 0_133. | ||
* | ||
* Could not load the following classes: | ||
* android.content.Context | ||
* android.content.res.Resources | ||
* android.renderscript.Allocation | ||
* android.renderscript.BaseObj | ||
* android.renderscript.Element | ||
* android.renderscript.FieldPacker | ||
* android.renderscript.RSRuntimeException | ||
* android.renderscript.RenderScript | ||
* android.renderscript.Script | ||
* android.renderscript.Script$FieldID | ||
* android.renderscript.Script$KernelID | ||
* android.renderscript.Script$LaunchOptions | ||
* android.renderscript.ScriptC | ||
* android.renderscript.Type | ||
*/ | ||
package org.firstinspires.ftc.robotcore.internal.camera; | ||
|
||
import android.content.res.Resources; | ||
import android.renderscript.Allocation; | ||
import android.renderscript.BaseObj; | ||
import android.renderscript.Element; | ||
import android.renderscript.FieldPacker; | ||
import android.renderscript.RSRuntimeException; | ||
import android.renderscript.RenderScript; | ||
import android.renderscript.ScriptC; | ||
|
||
public class ScriptC_format_convert | ||
extends ScriptC { | ||
private static final String __rs_resource_name = "format_convert"; | ||
private Element __ALLOCATION; | ||
private Element __I32; | ||
private Element __U8_4; | ||
private FieldPacker __rs_fp_ALLOCATION; | ||
private FieldPacker __rs_fp_I32; | ||
private static final int mExportVarIdx_inputAllocation = 0; | ||
private Allocation mExportVar_inputAllocation; | ||
private static final int mExportVarIdx_outputWidth = 1; | ||
private int mExportVar_outputWidth; | ||
private static final int mExportVarIdx_outputHeight = 2; | ||
private int mExportVar_outputHeight; | ||
private static final int mExportForEachIdx_yuv2_to_argb8888 = 1; | ||
|
||
public ScriptC_format_convert(RenderScript rs) { | ||
this(rs, rs.getApplicationContext().getResources(), rs.getApplicationContext().getResources().getIdentifier(__rs_resource_name, "raw", rs.getApplicationContext().getPackageName())); | ||
} | ||
|
||
public ScriptC_format_convert(RenderScript rs, Resources resources, int id) { | ||
super(rs, resources, id); | ||
this.__ALLOCATION = Element.ALLOCATION((RenderScript)rs); | ||
this.__I32 = Element.I32((RenderScript)rs); | ||
this.__U8_4 = Element.U8_4((RenderScript)rs); | ||
} | ||
|
||
public synchronized void set_inputAllocation(Allocation v) { | ||
this.setVar(0, (BaseObj)v); | ||
this.mExportVar_inputAllocation = v; | ||
} | ||
|
||
public Allocation get_inputAllocation() { | ||
return this.mExportVar_inputAllocation; | ||
} | ||
|
||
public FieldID getFieldID_inputAllocation() { | ||
return this.createFieldID(0, null); | ||
} | ||
|
||
public synchronized void set_outputWidth(int v) { | ||
this.setVar(1, v); | ||
this.mExportVar_outputWidth = v; | ||
} | ||
|
||
public int get_outputWidth() { | ||
return this.mExportVar_outputWidth; | ||
} | ||
|
||
public FieldID getFieldID_outputWidth() { | ||
return this.createFieldID(1, null); | ||
} | ||
|
||
public synchronized void set_outputHeight(int v) { | ||
this.setVar(2, v); | ||
this.mExportVar_outputHeight = v; | ||
} | ||
|
||
public int get_outputHeight() { | ||
return this.mExportVar_outputHeight; | ||
} | ||
|
||
public FieldID getFieldID_outputHeight() { | ||
return this.createFieldID(2, null); | ||
} | ||
|
||
public KernelID getKernelID_yuv2_to_argb8888() { | ||
return this.createKernelID(1, 58, null, null); | ||
} | ||
|
||
public void forEach_yuv2_to_argb8888(Allocation aout) { | ||
this.forEach_yuv2_to_argb8888(aout, null); | ||
} | ||
|
||
public void forEach_yuv2_to_argb8888(Allocation aout, LaunchOptions sc) { | ||
if (!aout.getType().getElement().isCompatible(this.__U8_4)) { | ||
throw new RSRuntimeException("Type mismatch with U8_4!"); | ||
} | ||
this.forEach(1, (Allocation)null, aout, null, sc); | ||
} | ||
} | ||
|