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
+15 -2
View File
@@ -67,7 +67,20 @@ runtime03/04 schemaVersion1 retains its fixed97@24 constraints. Each new body's
`frameCount:N`, `durationUs`, `fpsNumerator/fpsDenominator`, **`ptsUs:[actual decoded
presentation timestamps]`** are mandatory. No truncation/padding to97, no neutral
track reuse. Counts121/49 and rational frame rates are supported independently.
Current GLES shape remains480×848 (new shapes require renderer extension).
Schema2 supports exactly **480×848 or720×1280**. Declare actual `body.width/height`
and every edge/action `clip.width/height`; the full index must use one common shape,
including native loops, own-mouth bridges and music actions. Mixed/undeclared shapes
are rejected. Legacy schema1 stays480×848. No schemaVersion3 is needed.
Coordinates `patches.x/y/width/height` are pixels of that exact decoded body,
not normalized UVs or480-reference coordinates. GLES receives the admitted body size
for Fit, logical pixel→patch UV and decoder/SurfaceTexture dimensions. Patch bitmaps
are uploaded at their authored size without automatic scaling. Track each new body
independently:720/480=1.5 but1280/848≈1.509434, so a blanket1.5× transform of old
coordinates is neither sufficient nor an own-body binding. Existing128px/8MB/32MB
limits remain in force; larger portraits do not authorize larger mouth caches.
New shape support is code admission only, not a new pin or device/naturalness review.
The currently frozen white480×848 pack stays unchanged; new720 assets need their
own machine gate and independent exact index pin before any capability activation.
N is bounded2..720, fps1..60, duration0.1..30s; body PTS starts0, strictly increases,
remains below duration and agrees with measured duration/nominal fps within one
nominal frame. Nonuniform actual PTS is accepted within two nominal frame intervals.
@@ -139,7 +152,7 @@ Bridge TALK extension (2026-10-13, stable optional field):
`edge.mouthRuntimeManifest:{path,sha256}` references a bridge-own schema2 runtime04.
Use packId `a01-expression-action-v1-<edgeId>-runtime-04`; relative runtime paths
resolve under its own manifest directory. Its body SHA/N/actual ptsUs/duration/fps/
480×848 shape must equal edge.clip exactly; the body path can resolve to a copy of
width/height (the common index shape) must equal edge.clip exactly; the body path can resolve to a copy of
that unchanged bridge video. Every one of its N frames has five own source patches
(1.1 sourcepx candidate) and own coords/curves, never either endpoint's patches.
For the current four bridges N=25:125 own PNGs each, measured independently.