Auto-Commit: 2026-08-22 12:51:28

This commit is contained in:
Jannik committed 2026-08-22 12:51:28 +02:00
1 parent 099a26bdf5
commit 6ee700411b
22 files changed
+6024

No files matched your search

Submodule
+1
Submodule temp-uvc added at c9399e63df.
BIN
View File
Binary file not shown.
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jiangdg.ausbc" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="27" />
<uses-feature android:name="android.hardware.usb.host" />
</manifest>
+5794
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
View File
Whitespace-only changes.
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="center">
<shape>
<solid android:color="#e6e6e6" />
<size android:width="100dp" android:height="100dp"/>
</shape>
</item>
<item android:gravity="center">
<bitmap android:src="@drawable/ic_none"/>
</item>
</layer-list>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#D7DAE1"/>
</shape>
+7
View File
@@ -0,0 +1,7 @@
precision highp float;
uniform sampler2D uTextureSampler;
varying vec2 vTextureCoord;
void main()
{
gl_FragColor = texture2D(uTextureSampler, vTextureCoord);
}
+8
View File
@@ -0,0 +1,8 @@
attribute vec4 aPosition;
attribute vec4 aTextureCoordinate;
varying vec2 vTextureCoord;
void main()
{
vTextureCoord = aTextureCoordinate.xy;
gl_Position = aPosition;
}
+8
View File
@@ -0,0 +1,8 @@
#extension GL_OES_EGL_image_external : require
precision mediump float;
uniform samplerExternalOES uTextureSampler;
varying vec2 vTextureCoord;
void main()
{
gl_FragColor = texture2D(uTextureSampler, vTextureCoord);
}
+10
View File
@@ -0,0 +1,10 @@
uniform mat4 uMVPMatrix;
attribute vec4 aPosition;
uniform mat4 uStMatrix;
attribute vec4 aTextureCoordinate;
varying vec2 vTextureCoord;
void main()
{
gl_Position = uMVPMatrix * aPosition;
vTextureCoord = (uStMatrix * aTextureCoordinate).xy;
}
+9
View File
@@ -0,0 +1,9 @@
uniform mat4 uMVPMatrix;
attribute vec4 aPosition;
attribute vec4 aTextureCoordinate;
varying vec2 vTextureCoord;
void main()
{
gl_Position = uMVPMatrix * aPosition;
vTextureCoord = aTextureCoordinate.xy;
}
@@ -0,0 +1,10 @@
precision mediump float;
uniform sampler2D uTextureSampler;
varying vec2 vTextureCoord;
void main()
{
vec4 tempColor = texture2D(uTextureSampler, vTextureCoord);
// Get the grayscale value of each pixel
float luminance = tempColor.r * 0.299 + tempColor.g * 0.584 + tempColor.b * 0.114;
gl_FragColor = vec4(vec3(luminance), tempColor.a);
}
@@ -0,0 +1,35 @@
precision mediump float;
uniform sampler2D uTextureSampler;
varying vec2 vTextureCoord;
//timestamp
uniform float timeStamps;
void main() {
//The duration of an out-of-body effect
float duration = 0.7;
// upper limit of transparency
float maxAlpha = 0.4;
//The upper limit of image enlargement
float maxScale = 1.8;
//The current progress (timestamp and duration are modulo modulo), then divide by the duration to get [0, 1], which is the percentage
float progress = mod(timeStamps, duration) / duration; // 0~1
//Current transparency [0.4, 0]
float alpha = maxAlpha * (1.0 - progress);
//Current zoom ratio [1.0, 1.8]
float scale = 1.0 + (maxScale - 1.0) * progress;
//Get the enlarged texture coordinates
//Reduce the distance from the x/y value of the texture coordinate corresponding to the vertex coordinate to the center point, reduce a certain ratio, just change the texture coordinate, and keep the vertex coordinate unchanged, so as to achieve the stretching effect
float weakX = 0.5 + (vTextureCoord.x - 0.5) / scale;
float weakY = 0.5 + (vTextureCoord.y - 0.5) / scale;
vec2 weakTextureCoords = vec2(weakX, weakY);
//Get the texture coordinates of the current pixel, the enlarged texture coordinates
vec4 weakMask = texture2D(uTextureSampler, weakTextureCoords);
vec4 mask = texture2D(uTextureSampler, vTextureCoord);
//2, color mixing built-in function mix / mixing equation
gl_FragColor = mask * (1.0 - alpha) + weakMask * alpha;
}
+17
View File
@@ -0,0 +1,17 @@
attribute vec4 aPosition;
attribute vec4 aTextureCoordinate;
varying vec2 vTextureCoord;
uniform float timeStamps;
const float PI = 3.1415926;
void main()
{
float duration = 0.9; // zoom period, 0.9s
float maxAmplitude = 0.3; // scale peak offset
float modTime = mod(timeStamps, duration);
// zoom range [1.0f, 1.3f]
float amplitude = 1.0 + maxAmplitude * abs(sin((modTime / duration) * PI));
gl_Position = vec4(aPosition.x * amplitude, aPosition.y * amplitude, aPosition.zw);
vTextureCoord = aTextureCoordinate.xy;
}
+74
View File
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorBlack">#000000</color>
<color name="colorDeepRed">#B22222</color>
<color name="colorGray">#CDC5BF</color>
<color name="colorRed">#FF0000</color>
<color name="colorWhite">#FFFFFF</color>
<color name="common_25_black">#40000000</color>
<color name="common_30_black">#4D000000</color>
<color name="common_5_black">#13000000</color>
<color name="common_80_white">#90FFFFFF</color>
<color name="common_E5E5E5">#FFE5E5E5</color>
<color name="common_F2F4F6">#F2F4F6</color>
<color name="common_F5F7FB">#F5F7FB</color>
<color name="common_a8_black">#A8000000</color>
<color name="common_actionbar_bg_color">#FFFFFFFF</color>
<color name="common_actionbar_subtitle_color">#232325</color>
<color name="common_actionbar_title_color">#232325</color>
<color name="common_activity_bg_color">#F2F2F2</color>
<color name="common_black">#000000</color>
<color name="common_blue_black">#232325</color>
<color name="common_blue_light_gray">#E9ECF3</color>
<color name="common_blue_med_gray">#ADB0B7</color>
<color name="common_blue_med_light_gray">#D7DAE1</color>
<color name="common_blue_super_dark_gray">#50607A</color>
<color name="common_color_accent">#2E5BFF</color>
<color name="common_color_primary">#2E5BFF</color>
<color name="common_color_primary_dark">#2E5BFF</color>
<color name="common_color_primary_disable">#D7DAE1</color>
<color name="common_color_translucent_gray_bg">#70000000</color>
<color name="common_dialog_got_it">#2E5BFF</color>
<color name="common_divider_color">#0c000000</color>
<color name="common_light_blue_gray">#F6F7FB</color>
<color name="common_orange">#FF6835</color>
<color name="common_red_dot">#FF371C</color>
<color name="common_ripple">#f2f5f7</color>
<color name="common_shadow_color">#88757575</color>
<color name="common_white">#FFFFFF</color>
<style name="CommonDialogStyle" parent="@android:style/Theme.Dialog">
<!-- 边框 -->
<item name="android:windowFrame">@null</item>
<!-- 半透明 -->
<item name="android:windowIsTranslucent">true</item>
<!-- 无标题 -->
<item name="android:windowNoTitle">true</item>
<!-- 背景透明 -->
<item name="android:windowBackground">@android:color/transparent</item>
</style>
<style name="SheetStyle" parent="android:Widget">
<item name="android:background">@android:color/transparent</item>
<item name="behavior_peekHeight">auto</item>
<item name="behavior_hideable">true</item>
<item name="behavior_skipCollapsed">false</item>
</style>
<style name="TransparentBottomSheetStyle" parent="Theme.Design.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/SheetStyle</item>
</style>
<declare-styleable name="CircleProgressView">
<!--外部圆形颜色-->
<attr format="color|reference" name="outsideCircleBgColor"/>
<!--弧形进度条颜色-->
<attr format="color|reference" name="progressArcBgColor"/>
<!--内部圆形颜色-->
<attr format="color|reference" name="insideCircleBgColor"/>
<attr format="color|reference" name="insideCircleTouchedBgColor"/>
<!--内部正方形颜色-->
<attr format="color|reference" name="insideRectangleBgColor"/>
<!--文本提示字体颜色-->
<attr format="color|reference" name="tipTextColor"/>
<!--文本提示字体大小-->
<attr format="dimension" name="tipTextSize"/>
</declare-styleable>
</resources>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<usb>
<usb-device class="239" subclass="2" /> <!-- all device of UVC -->
<!-- a few android 9.0 -->
<usb-device class="14" subclass="9" />
<usb-device class="2" subclass="0" />
<usb-device class="6" subclass="-1" />
<usb-device class="39" subclass="0" />
<usb-device product-id="4836" vendor-id="9573" />
<usb-device product-id="2229" vendor-id="1133" />
<usb-device product-id="640" vendor-id="1409" />
<usb-device product-id="258" vendor-id="9228" />
<usb-device product-id="16981" vendor-id="19" />
<usb-device product-id="5120" vendor-id="1409" />
</usb>
+8
View File
@@ -0,0 +1,8 @@
import android.content.Context
import android.content.ContextWrapper
class MyWrapper(base: Context) : ContextWrapper(base) {
override fun getApplicationContext(): Context {
return this
}
}