Support bounded 720x1280 avatar shapes through GLES and production gates

This commit is contained in:
zenord
2026-10-13 17:32:21 +08:00
parent 62dce32bb7
commit ddd75fc571
18 changed files with 352 additions and 83 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ import java.nio.ByteBuffer
/** Deterministic API doubles exercise production codec control; no Android decoder claim. */
object CodecFixture {
var width=480;var height=848
var frames=20; var fps=20; var gop=4; var firstPtsUs=0L
var timestampOffsetUs=0L; var outputEnabled=true; var configureFails=false
var seeks=mutableListOf<Long>(); var releases=0; var flushes=0
@@ -13,7 +14,7 @@ object CodecFixture {
val timelines=mutableMapOf<String,List<Long>>()
val audioPaths=mutableSetOf<String>()
fun reset() {
frames=20; fps=20; gop=4; firstPtsUs=0; timestampOffsetUs=0; outputEnabled=true; configureFails=false
width=480;height=848;frames=20; fps=20; gop=4; firstPtsUs=0; timestampOffsetUs=0; outputEnabled=true; configureFails=false
seeks.clear(); releases=0; flushes=0; rendered.clear(); onRender=null
emitNativeSurface=false;timelines.clear();audioPaths.clear()
}
@@ -21,7 +22,7 @@ object CodecFixture {
class MediaFormat(private val mime: String="video/avc") {
companion object { const val KEY_MIME="mime"; const val KEY_WIDTH="width"; const val KEY_HEIGHT="height" }
fun getString(key: String): String? = mime
fun getInteger(key: String): Int = if (key == KEY_WIDTH) 480 else 848
fun getInteger(key: String): Int = if (key == KEY_WIDTH) CodecFixture.width else CodecFixture.height
}
class MediaExtractor {
private var av=false