- Add chandra-camera-isp.c (C/OpenMP) for Quad-Bayer unpack, CCM, and tone mapping, with a NumPy fallback when it is not built - Add non-blocking contrast-detection VCM autofocus, with lens subdev discovery on the sensor's I2C bus - Tune Quad-Bayer AE: a video-mode vblank cap, damped steps, and full analog gain before extending blanking - Record variable-frame-rate video through a streaming Matroska muxer, and count dropped frames - Ship libcamera IPA tuning files for imx376, imx519, and uncalibrated sensors - Map camera buffers by fd and sync them with dma-buf ioctls
This commit is contained in:
1 parent
851c39d827
commit
52b42890d6
34 files changed
+2851
-364
No files matched your search
@@ -163,3 +163,29 @@ pub fn emoji_has(texts : Array[String]) -> Array[Bool] {
|
||||
pub fn emoji_image(text : String, px : Int) -> UInt {
|
||||
@hostraster.emoji_image(text, px)
|
||||
}
|
||||
|
||||
///| Cached emoji availability by sequence string for wasm-side `text_width` calculations.
|
||||
let wasm_emoji_has : Map[String, Bool] = {}
|
||||
|
||||
///|
|
||||
fn wasm_has_emoji(seq : String) -> Bool {
|
||||
match wasm_emoji_has.get(seq) {
|
||||
Some(v) => v
|
||||
None => {
|
||||
let res = @hostraster.emoji_has([seq])
|
||||
let ok = res.length() > 0 && res[0]
|
||||
wasm_emoji_has.set(seq, ok)
|
||||
ok
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
///| Enable inline colour emoji matching for `@renderer.text_width` in the wasm compositor.
|
||||
pub fn install_emoji_text(has_glyph : (Int, Bool, Bool) -> Bool) -> Unit {
|
||||
@renderer.set_emoji_source(
|
||||
fn(chars, start, bold, mono) {
|
||||
@emoji.match_with(chars, start, cp => has_glyph(cp, bold, mono), wasm_has_emoji)
|
||||
},
|
||||
emoji_image,
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user