Repository navigation
Releases
Rawr 17U 0.5.1-17u.25
Rawr 17U 0.5.1-17u.25: LOFIC DNG in Ed's 16-bit layout (no magenta in Lightroom), Photo and Video keep their own lens, APV LOG on vivo X300 Ultra
What's new
The LOFIC DNG now follows the layout Ed specified: 16-bit integers with black 1024 and white 65535, which Lightroom reads correctly (no more magenta in dark scenes), with the noise under black kept and lens shading corrected in the values. Also: Photo and Video each keep their own lens, the Renderer recognises LOFIC DNGs in either format, and APV in LOG no longer crashes on the vivo X300 Ultra. LOFIC runs on Anton Tretiakov's (designation_zero on Telegram) X17U LOFIC RAW root module and follows his specification: thanks, Anton.
- LOFIC DNG: the deep shadows no longer turn blue/magenta once the exposure is raised (reported by Internet Explorer on Telegram). The merge cut the noise under black at zero, which lifts the darkest values, the blue channel most; that noise now stays, on a pedestal the DNG's BlackLevel declares. Checked against a multi-frame DNG of the same scene, at ISO 50 and 797.
- LOFIC DNG: lens shading corrected, so the corners are no longer darker and orange in the JPEG and in raw developers. The correction is applied to the values themselves: as a separate map on top of the pedestal, raw developers that apply it before subtracting black turned the corners pink (reported by Internet Explorer).
- LOFIC DNG in Ed's layout: Ed (Rawr's developer) specified on Telegram how a LOFIC DNG should be written so every raw developer reads its black level: 16-bit unsigned integers, each value the merge times a fixed scale plus 1024 with no clamp to black, BlackLevel 1024, WhiteLevel 65535, the merge's saturation 800 under the white level, and BaselineExposure and NoiseProfile rescaled to match. It replaces the 16-bit float file, whose fractional black level Lightroom and darktable dropped, which turned dark scenes magenta (reported and tracked down by Internet Explorer, who confirmed in Lightroom that a whole-number black level removes it). Feedback from Lightroom and darktable users is welcome.
- Renderer: LOFIC DNGs are recognised by their camera model, so the 16-bit ones keep the metering, local tone mapping and denoise of the float ones; the denoise of the brightest areas works again (it had stopped in the previous debug).
- Renderer: on a LOFIC or float DNG, the RAW tab's Sensor CFA layout offers only Auto and Bayer. Picking Quad Bayer 2×2 or 4×4 blocks there failed the render with "Block CFA layouts are not supported for float DNGs"; a block layout saved before is put back to Auto.
- Photo and Video each keep their own lens: switching mode brings back the last lens used in that mode (it used to carry the lens across, e.g. 1x DCG or 50MP from Photo into Video), also after the app is reopened; exposure, white balance and focus are still remembered per camera, as before (requested by Lynette on Telegram).
- APV in LOG: no longer crashes on phones whose APV encoder hands out read-only buffers, as the vivo X300 Ultra does (report, diagnostics and the test there from Aleksander Szymczak on Telegram). The LOG colour fields are now rewritten on a copy of each frame.
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Lenses > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.
Debug build
Debug build of 65776a4. Installs alongside release as Rawr Debug. rawr-remote-wear-debug.apk is its Watch Remote app (Wear OS), the one that pairs with Rawr Debug.
What's new
Nothing new since 0.5.1-17u.25: this build has the same changes as that release.
The LOFIC DNG now follows the layout Ed specified: 16-bit integers with black 1024 and white 65535, which Lightroom reads correctly (no more magenta in dark scenes), with the noise under black kept and lens shading corrected in the values. Also: Photo and Video each keep their own lens, the Renderer recognises LOFIC DNGs in either format, and APV in LOG no longer crashes on the vivo X300 Ultra. LOFIC runs on Anton Tretiakov's (designation_zero on Telegram) X17U LOFIC RAW root module and follows his specification: thanks, Anton.
- LOFIC DNG: the deep shadows no longer turn blue/magenta once the exposure is raised (reported by Internet Explorer on Telegram). The merge cut the noise under black at zero, which lifts the darkest values, the blue channel most; that noise now stays, on a pedestal the DNG's BlackLevel declares. Checked against a multi-frame DNG of the same scene, at ISO 50 and 797.
- LOFIC DNG: lens shading corrected, so the corners are no longer darker and orange in the JPEG and in raw developers. The correction is applied to the values themselves: as a separate map on top of the pedestal, raw developers that apply it before subtracting black turned the corners pink (reported by Internet Explorer).
- LOFIC DNG in Ed's layout: Ed (Rawr's developer) specified on Telegram how a LOFIC DNG should be written so every raw developer reads its black level: 16-bit unsigned integers, each value the merge times a fixed scale plus 1024 with no clamp to black, BlackLevel 1024, WhiteLevel 65535, the merge's saturation 800 under the white level, and BaselineExposure and NoiseProfile rescaled to match. It replaces the 16-bit float file, whose fractional black level Lightroom and darktable dropped, which turned dark scenes magenta (reported and tracked down by Internet Explorer, who confirmed in Lightroom that a whole-number black level removes it). Feedback from Lightroom and darktable users is welcome.
- Renderer: LOFIC DNGs are recognised by their camera model, so the 16-bit ones keep the metering, local tone mapping and denoise of the float ones; the denoise of the brightest areas works again (it had stopped in the previous debug).
- Renderer: on a LOFIC or float DNG, the RAW tab's Sensor CFA layout offers only Auto and Bayer. Picking Quad Bayer 2×2 or 4×4 blocks there failed the render with "Block CFA layouts are not supported for float DNGs"; a block layout saved before is put back to Auto.
- Photo and Video each keep their own lens: switching mode brings back the last lens used in that mode (it used to carry the lens across, e.g. 1x DCG or 50MP from Photo into Video), also after the app is reopened; exposure, white balance and focus are still remembered per camera, as before (requested by Lynette on Telegram).
- APV in LOG: no longer crashes on phones whose APV encoder hands out read-only buffers, as the vivo X300 Ultra does (report, diagnostics and the test there from Aleksander Szymczak on Telegram). The LOG colour fields are now rewritten on a copy of each frame.
Rawr 17U 0.5.1-17u.24
Rawr 17U 0.5.1-17u.24: Ed's adityawarmanfw#171 sharpest base frame, video shutter as a speed (itzdfplayer), TELE tape held sideways
What's new
Ed's adityawarmanfw#171 (full-size multiframe takes the sharpest of the first frames as the base, also on the 15 Ultra's 95mm 50MP HR and HR Q), the video shutter as a speed, and a fix for the TELE tape held sideways.
- Multiframe at full size: the merge base is now the sharpest frame of the first 500 ms instead of the first one, which the shutter press can shake (Ed's adityawarmanfw#171). The 15 Ultra 95mm 50MP HR and HR Q take the same base (in testing).
- Held sideways with the bottom layout kept: with Tele Zoom Always On and an edge style (Wheel, Dial, Rocker), the TELE tape no longer stays over the picture; it opens and closes from the TELE cell.
- Video shutter: reads as a speed by default (1/48 at 24 fps for 180°); Settings > Video > Shutter as an angle shows the angles, in three figures (asked for by itzdfplayer on Telegram). The video shutter tape has a label on every value and shows the value under the index while swiping.
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Lenses > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.
Rawr 17U 0.5.1-17u.23
Rawr 17U 0.5.1-17u.23: 15 Ultra tele at 50 MP merges (HR, HR Q), controls kept under the picture held sideways (KavasCr), settings reorganised
What's new
The 15 Ultra's tele at 50 MP now merges (95mm 50MP HR, and HR Q with Rawr's own remosaic, in testing), the controls stay under the picture held sideways (asked for by KavasCr), and the settings are reorganised. Checked on the Xiaomi 17 Ultra and the Xiaomi 15 Ultra.
Xiaomi 15 Ultra: the 95mm 50MP HR merges (in testing)
- With Rexture on, the 95mm 50MP HR now merges up to 8 frames at 50 MP instead of taking a single photo. The HAL returns each frame in the top-left corner of the 16320x12288 buffer; Ed's full-size burst drops such frames as binned fallbacks, so the fork has its own copy of that burst (
session/SessionCornerBurst.cpp, from the plain path of Ed'sprepareFullSizeBurst) that keeps each 8160x6144 corner and merges the frames at that size. It runs only for lenses with the new photo stream fieldkeepCorner; every other lens takes Ed's burst unchanged (kept apart from his code, as HDR+ Bracketed is). - Tested on a 15 Ultra (25010PN30G): 4 and 8 frames merged (MF4, MF8) at 8160x6144 with the right colours and the full field of view, also handheld and in shade; 4 frames are in within about 0.7 s, and with 8 the viewfinder stops for about a second or less, as for a single photo. The 95mm 50>25 stays a single photo.
- 95mm 50MP HR Q (in testing), a second lens to compare: the same 50 MP and merge, but without
current_modethe HAL returns the tele's raw quad-Bayer in the corner and Rawr remosaics it itself, with Ed's Detail remosaic and per-position fit (photoBlock2,photoPhaseFit, as his Q85 for the vivo X200 Ultra's tele, the same HP9 sensor). Corner-photo lenses keep the photo stream's colour layout for that corner (single photo and burst) instead of the viewfinder's. Tested on a 15 Ultra: single and MF8 photos with the right colours and no quad grid; an 8-frame burst with the remosaic is in within about 3 s. Which of the two looks better is still to be seen on real scenes. - Tried and left out: Ed's separate photo session (adityawarmanfw#136, his suggestion), on the NDK and on Java Camera2 with the use case and operating mode; the 15 Ultra's HAL refuses a session holding only the 8160x6144 output.
Held sideways: the bottom layout kept (asked for by KavasCr on Telegram)
- Settings > Viewfinder & controls > Keep the bottom layout in landscape (on by default): held sideways, the controls stay under the picture as in portrait and their labels turn (exposure tiles, lens buttons, REXTURE, FILM, the look button, the top bar); a long value such as the WB's takes two lines. FILM / LOOK and WB open under the picture as in portrait. Off: the panel beside the picture, as before. PHOTO / VIDEO and the small readout line under the controls stay upright. Checked on the Xiaomi 17 Ultra, held to either side, photo and video.
- The tele's edge controls (Wheel, Dial, Rocker) would run along the top of the picture there: the TELE cell's tape under the picture takes their place. Portrait is unchanged.
Settings reorganised, About on the home
- The controls for photo and video (tap focus, pinch to zoom, tele zoom, Voice Shutter, Watch Remote, grip, ring) move from Photo > Capture to Viewfinder & controls; Storage to System, the Renderer to RAW development. About is on the settings home, with Credits for the people behind the fork's additions. Saved choices are unchanged.
Leitzphone ring
- Reverse the ring (Settings > Viewfinder & controls) is now on by default. A choice already saved stays as it was.
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Lenses > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.
Rawr 17U 0.5.1-17u.22
Rawr 17U 0.5.1-17u.22: Ed's adityawarmanfw#170 chroma lowlight, 15 Ultra tele at 50 MP with a light viewfinder (柴芜), newer texts translated
What's new
Ed's main up to adityawarmanfw#170 (chroma lowlight, merged with the LOFIC noise model), a 50 MP tele with a light viewfinder on the 15 Ultra (asked for by 柴芜, in testing), the newer texts translated, and a fresh install starting on the main camera. Checked on the Xiaomi 17 Ultra and the Xiaomi 15 Ultra.
Xiaomi 15 Ultra: tele at 50 MP with a light viewfinder (in testing)
- 95mm 50MP HR, a new lens in the 15 Ultra's built-in profile (asked for by 柴芜 on Telegram). The profile's 95mm 50MP runs the full 8160x6144 RAW as the viewfinder (High-res live), heavy on the viewfinder and on processing. The HR lens keeps the binned 4080x3072 RAW10 viewfinder at 30 fps and takes each photo through a second output: it asks for the 16320x12288 size, and with
current_mode1 on the still the camera returns its remosaiced 8160x6144 frame in the corner of that buffer, which Rawr keeps. Each photo stops the viewfinder for about a second while the sensor switches mode and back.- Credits: the stream use case 0x80103 and the buffer usage 0x100003 come from an Unspektrawesome lens profile (Main 23mm 50MP 30 FPS: rawStreamUseCase 524547, rawReaderUsage 1048579; docs/xiaomi-17u-50mp.md);
current_mode1 from Ed's 95mm 50MP in the same profile (adityawarmanfw#143). - The 50 MP notes for the 17 Ultra (docs/xiaomi-17u-50mp.md) now map each value to the field of the Unspektrawesome profile export it was read from.
- Tested on a 15 Ultra (25010PN30G): the tele's full field of view at 8160x6144, Bayer colours, repeated photos and lens switches. Without
current_modethe corner stays quad-Bayer (purple); an 8160x6144 photo output fails every still.
- Credits: the stream use case 0x80103 and the buffer usage 0x100003 come from an Unspektrawesome lens profile (Main 23mm 50MP 30 FPS: rawStreamUseCase 524547, rawReaderUsage 1048579; docs/xiaomi-17u-50mp.md);
- The viewfinder of such lenses (a photo output plus a fixed companion) no longer stutters: their results come after the RAW, and the pairer, holding one waiting image, dropped about 30 frames a second. They now keep up to 3 waiting, as the 17 Ultra's LOFIC lens does. The 17 Ultra's Tele 200>50, 200>25 and 200 SF have the same shape and take the same change (checked on the 17 Ultra: their viewfinders no worse).
- "Camera skipped full res - saved at 12 MP" no longer shows over these 50 MP photos: only a corner under 25 MP (a real fall back to the binned readout) counts.
- 95mm 50>25: the same lens with the photo resampled to 25 MP (5768x4344), as the 17 Ultra's 1x 50>25. Tested on the 15 Ultra. No 200 MP on the 15 Ultra's tele this way: asking the sensor's 16320x12288 mode on the still ends in a camera error, so there is no 200>50 or 200>25 there.
First start and notices
- A first start (fresh install) opens on the main camera, the 1x or 23mm, instead of the profile's first lens, the ultra-wide. Once a lens was used, Rawr still starts on the last one.
- The "Camera frames use the CPU copy path" notice shows once per install instead of at every start (on the 15 Ultra every RAW10 lens takes that path).
From Ed's main (adityawarmanfw#170)
- adityawarmanfw#170, chroma lowlight: the RAW denoise takes the lens shading into account (the corners, brightened by the shading correction, are no longer under-denoised), a noise gate for the site chroma and a bias test in the multi-frame output, with their Vulkan tests. Merged with the fork's two-part noise model of the LOFIC lens: both kept. Checked on the Xiaomi 17 Ultra: 1x in normal and low light, Rexture in low light, LOFIC Camera in low light and against the light; clean corners, no crash.
Language: the newer texts translated
- 136 texts added since the translations were made (Photography Kit and Leitzphone ring settings, double tap, surfaces, RAW and APV video, HDR+ Bracketed, voice shutter, watch remote, backup, version and licences, among others) are now translated in all ten bundled languages, machine-made like the base translations (Turkish and Bengali keep their community texts; only what they lacked was added). Corrections welcome through Export / Import language file.
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Lenses > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.
Rawr 17U 0.5.1-17u.21
Rawr 17U 0.5.1-17u.21: lens variant double tap fix, zoom chip from the 1x (rayfon), Russian polished by Vete71ROK
What's new
A small update: the lens variant double tap no longer lost, the zoom chip counted from the 1x (asked for by rayfon, who also asked for the grip zoom), the Russian translation polished by Vete71ROK, and changing exposure, white balance and focus while recording confirmed. Checked on the Xiaomi 17 Ultra. No sync with Ed's main (still up to adityawarmanfw#169; his adityawarmanfw#170, chroma lowlight, waits for a check against the LOFIC noise model).
Lens variant double tap: no longer lost at times
The double tap on the lens in use (Settings > Viewfinder & controls > Double tap for the next variant) sometimes opened the variants instead of stepping to the next one, more often in 16:9 (reported by iG0Lka on a Find X9 Ultra, seen on the 17U too): the button's own double-tap detection was lost whenever the button was rebuilt between the two taps. The lens bar now times the taps itself (300 ms) and opens the variants once no second tap came. A double tap that switches to another lens only switches (it no longer opens that lens's variants), and with the variants open a double tap on the lens button still steps to the next one; a single tap there closes them. Checked on the 17U (16:9 and Full, the 0.6 and the front variants); not yet on a Find X9 Ultra.
Zoom chip: counted from the 1x
The zoom chip at the bottom of the picture now reads the zoom against the 1x, as the stock camera does, instead of the crop of the lens in use (asked for by rayfon, zooming with the Photography Kit grip): it no longer jumps back to 1.0x when the zoom moves onto the 0.6 or the tele. 0.6 x 1.4 reads 0.8x; on the tele that moves its optics it stays up and starts from the focal length in use (4.3x at 100 mm). Front lenses show the crop alone. Checked on the 17U.
Exposure, white balance and focus while recording
Checked on the 17U: changing EV, ISO, shutter, white balance or manual focus while recording changes the video from that moment. LOOK and FILM stay as they were when recording started.
Language: Russian polished by Vete71ROK
- Russian: the community translation by Vete71ROK (Telegram) rewords 84 texts of the machine-made one so they read more naturally (among them FILM, PARAMS, LOOK and MONITORING now in Russian). Texts left empty in the file stay as they were.
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Lenses > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.
Rawr 17U 0.5.1-17u.20
Rawr 17U 0.5.1-17u.20: the redesigned capture screen, LOFIC exposure and multi-frame, digital zoom, zoom like the stock camera
What's new
The capture screen redesign (portrait, held sideways, recording), the LOFIC lens's own exposure and multi-frame stacking, digital zoom, zoom like the stock camera (Photography Kit, Leitzphone ring, while recording), the video codec in the top bar, and the fixes below. Checked on the Xiaomi 17 Ultra. No sync with Ed's main (still up to adityawarmanfw#169; his adityawarmanfw#170 comes next).
LOFIC lens: its own exposure, four frames stacked, the merged picture in the viewfinder, a stripe fix
For the 1x LOFIC lens (needs Anton Tretiakov's X17U LOFIC RAW root module; from his specification and his feedback on the first version: auto exposure, merge point, multi-frame). Anton thanks JohnTheFarmer for MTM (Mod Tile Manager), which sped up the module's development. Measured and checked on a Xiaomi 17 Ultra, 29-30 Nov.
Tested on xiaomi.eu HyperOS builds 309 and 312 only. Users on other builds (HyperOS 4 among them) report that LOFIC does not work there: on builds other than these it may not work.
- Measurements the rest is built on (ISO 50-800): black levels Long 1024 / Short 64; Long read noise 0.88 DN at ISO 50 to 7.56 DN at ISO 800 (about 0.45 + 0.45 x gain, gain = ISO / 50); Short read noise 0.72 DN at every ISO (its gain is fixed, ISO only moves the Long); Long shot noise 0.43 x gain DN^2 per DN; Long/Short gain 207 x gain; the Long is linear up to its clip (ratio to the Short within 0.4% up to 15000 DN at ISO 50, within 1% at ISO 500). The DNG's noise profile and the merge gain use these.
- Merge band 13000-14800 (Long DN above black; was 11000-14000): the Long is used right up to its clip. In the 12000-13000 zone the noise is 15-20% lower, with no step at the transition.
- Exposure at the shutter (Auto): the camera's AE, made for one exposure, left the Short far from full (in daylight about 2.9 EV less than it can hold). In Auto the photo now measures the Long/Short pair it has and takes its own: the shutter is lengthened until the Short's 99.9th percentile sits 0.75 EV under its clip; ISO goes above 50 only if the shutter reached its limit, and only until the Long reaches its clip (ISO 800 at most). Window scene: 1/1244 -> 1/266 at ISO 50 (+2.2 EV). It adds about 0.3 s to the shot. The DNG's BaselineExposure is lowered by the same amount, so the photo is as bright as the viewfinder showed. Manual, S and I are as before.
- The longest shutter comes from the gyroscope (was a fixed 1/30 s): what keeps the picture within 2 pixels at the phone's turn rate in the half second before the shot, never shorter than the camera's own exposure, 1/8 s at most. A steady turn (a pan) counts in full; the shake around it is divided by 4 for the lens stabiliser (2 stops: a cautious figure, not a measured one). The frames of the photo are then compared by how far the phone turned during each one's own exposure, and the steadiest is the one the others are stacked onto (next point). Checked with one frame per photo: resting 1/14 s, hand-held 1/20 s and a slow pan shortened to about 1/33 s, all sharp; a shaken phone shortened down to the camera's own exposure. (Before the frames were chosen, one hand-held photo at 1/20 s came out soft.)
LOFIC_AEin the log says what was measured, asked for and kept. - Multi-frame: four pairs stacked (Anton's suggestion: the Long and the Short stacked with the same alignment). A photo takes 4 consecutive pairs at one exposure (33 ms apart; the burst takes 0.15-0.45 s, in Auto counting its change of exposure), in Auto, Manual, S and I. Each frame is aligned to the steadiest one on the Long, in whole Bayer cells so every pixel keeps its colour: one shift for the frame, one per 256-pixel zone (a hand turns the phone as well as moving it: 16 pixels of difference from corner to corner between frames 0.3 s apart), one per 64-pixel tile; the Short takes the same shift. A frame joins the average only where it agrees with the reference within the noise (over 3x3 cells; on the Short where the Long is clipped), elsewhere the reference stands alone. Measured: noise in flat shadows 0.56 of one frame's (0.50 would be all four frames everywhere); a hand moving through the frame leaves no ghost; fine detail that does not match to the pixel stays the reference's, so it is not softened, and is not denoised either (in a detailed interior about 55% of each extra frame joins). The stack takes 0.5-0.7 s. The DNG's noise profile is divided by the frames averaged.
debug.rawr.lofic_framessets the number (1-8; 1 = one frame, as before),LOFIC_STACKin the log says what each frame's shift was and how much of it joined, anddebug.rawr.lofic_dump 1keeps the pairs of a photo for analysis. Own code (imaging/LoficStack.h), no part of the app's multi-frame merge. - The viewfinder shows the Long and the Short merged (GPU, in the RAW14 unpack, same band as the photo), read as one exposure with a higher white level: highlights above the Long's clip keep their colour instead of clipping to white, up to 3.7 EV above it at ISO 50 (4 EV at most). Still 30 fps (1-4 ms per frame to bring the Short in). The scene meter reads the frame as before, so Rawr AE, the key and the WB sampler are unchanged. With a fixed manual exposure the screen still clips what is brighter than its white.
debug.rawr.lofic_vf_merge 0turns the merge off. - Fix: faint stripes and a colour cast in deep shadows in the LOFIC viewfinder. The GPU RAW14 unpack read the six low bits wrong on the 17U's Adreno whenever their three bytes spanned two 32-bit words: 29% of the pixels, in columns 5, 6, 7, 10 and 11 of every 16. The bits are now read by position; the probe (
debug.rawr.raw10_parity 1, lineRAW14_PARITY) finds no differing pixel. Photos were never affected (they are unpacked on the CPU). - The LOFIC DNG is stored on the Short's scale, with its brightness in BaselineExposure: apps that ignore that tag show it several EV dark (raise the exposure there; nothing is lost).
Digital zoom
- Pinch the viewfinder for up to 16x on the lens in use (Settings > Photo > Capture > Pinch to zoom). Each lens keeps its own zoom; a chip on the viewfinder shows it, and a pinch that ends under 1.05x goes back to 1x. There is no automatic lens change (Rawr's lens switches are not seamless).
- Photos: the JPEG is the zoomed area, resampled (Catmull-Rom); the DNG stays the whole frame, with the zoom in the EXIF DigitalZoomRatio (raw editors treat a DNG crop as the image's edge, so none is written).
- Video (HEVC and APV): the zoom set before recording is recorded and stays fixed during the take (1080p and 4K from a 1522x856 window at 2.5x, Open Gate from 1624x1218, Lanczos resampling); with the grip's or the ring's stock-camera zoom it can also change during the take (below). RAW video is not zoomed (its frames are stored whole). Gyro stabilisation is not available while zoomed.
- Tap focus, spot metering and the face boxes follow the zoomed picture.
Zoom like the stock camera: Photography Kit lever and dial, Leitzphone ring
Asked for by rayfon in the Telegram group: the grip's zoom lever zooming gradually across the lenses, as on the stock camera. Checked on a Xiaomi 17 Ultra Leitzphone with the grip, 30 Nov.
- One zoom across every lens, against the 23 mm main camera: the 0.6x with digital zoom up to 1x, the 1x up to the tele, the tele's optics from 75 to 100 mm (3.2x to 4.3x), then digital zoom on the tele up to 16x of it (68x). At each lens's own zoom the lens changes (the variant each was last left on, as on the lens bar), so the picture jumps a little there, as Rawr's lens changes are not seamless; the lens left behind goes back to 1x.
- Photography Kit: Settings > Viewfinder & controls > Photography Kit > Zoom lever "Zoom like the stock camera" (the new default; the previous choices stay), and Dial "Zoom (all lenses)". Held, the lever zooms 2% every 60 ms (about 6 s from 0.6x to 4.3x); the dial 6% a click. The grip's key events (without USB) follow the same setting.
- Without digital zoom (RAW video, or Pinch to zoom off) the lever changes lens at once and moves the tele's optics, as "Lenses + tele zoom" does.
- While recording (HEVC / APV) the zoom goes on, digitally, on the lens in use (a lens change would restart the session and end the take; on the tele the optics move too): Photography Kit > Zoom while recording, on by default. A recording made so is built to follow the zoom frame by frame (the whole record area demosaiced 1:1 and resampled, each frame's window inside it), so it has no gyro stabilisation and does not take the 17U's fast video path. Off, the zoom stays fixed at the start, as before. Checked at 1080p30 on the 0.6x, 1x and tele.
- Leitzphone ring (asked for by Psychofedex in the Telegram group): on the 17 Ultra Leitzphone the ring around the camera is read too (an optical tracking sensor the system passes only to the stock camera, but any app can read; the same reading as the fork author's Tele Zoom, utalpt/x17u-telezoom). Settings > Viewfinder & controls > Focus ring (only on phones that have it): Zoom like the stock camera (default, about a turn from 0.6x to 4.3x), Manual focus (a turn across the range), EV, Shutter or ISO (12 steps a turn), Tele zoom (half a turn from 75 to 100 mm) or Nothing; speed Fine / Normal / Fast, and Reverse the ring for either hand. Read while the viewfinder is in front.
STOCK_ZOOMandRINGin the log say what each step did.
Capture screen: values under the picture, a panel beside it held sideways, a recording clock
New layout of the compact capture screen (on by default; feedback welcome). adb shell setprop debug.rawr.ui_values_below 0 (then restart the app) brings back the previous layout.
- Portrait. The exposure values (ISO, shutter, EV, WB, focus) are labelled tiles under the picture instea...
Rawr 17U 0.5.1-17u.19
Rawr 17U 0.5.1-17u.19: RAW video (testing), exposures up to 120 s, and three features from apos-fandango's Rawr X14U
What's new
RAW video (testing), long exposures up to 120 s, a separate Video viewfinder resolution, three features from apos-fandango's Rawr X14U, and the debug-build additions below (LOFIC, 1x 50>25, APV, grip, S/I values, Local dynamic range). Checked on the Xiaomi 17 Ultra. No sync with Ed's main (still up to adityawarmanfw#169).
RAW video (testing)
- Settings > Video > Codec: RAW. The camera's RAW frames are kept as the sensor gives them, losslessly compressed (lossless JPEG, LJ92, the same coding as compressed CinemaDNG) and written with the sound to one
.rrawfile in Documents/Rawr RAW. Each frame carries its black and white levels, neutral (white balance), ISO and shutter. - What it records: Open Gate. At 30 fps the whole 4:3 sensor (4096x3072 on the 17U's 1x); above 30 fps the 4:3 Open Gate area of the faster sensor mode, as HEVC and APV record it (3408x2560). The resolution (OPEN) and aspect (Full) buttons are fixed with RAW: crop to 16:9 or any aspect when editing.
- Compression runs on the GPU (Vulkan compute) with the CPU (NEON) as fallback, bit for bit the same; the first frame of every take is decoded back and checked. The camera's frames are copied once, straight into GPU memory, and written on their own thread.
- While recording, the viewfinder shows the camera's own picture (cheaper than developing every RAW frame), in the same place and size as before you press record; scopes are hidden during the take.
- BUFFER nn% next to REC: frames are waiting (for compression or storage). It shows before frames are lost.
- Up to 2 GB of frames wait in memory for compression (about 120 at 60 fps) and 256 MB of compressed data for storage; the file is flushed to storage every 64 MB as it is written, so the phone's write cache does not fill at once (the third 60 s take in a row lost 3.9% of its frames instead of 18%).
- The viewfinder while recording has a gamma 1.8 tone, close to the LOG viewfinder in low light (it is the camera's processed picture; colours can still differ from the RAW).
- Test switches, through adb only (nothing changes without them):
debug.rawr.rawvideo.gpu(0 = CPU compression),debug.rawr.rawvideo.buffermb(256-4096),debug.rawr.rawvideo.writeback(0 = off),debug.rawr.rawvideo.monitorgamma(10-80, 0 = the camera's own tone),debug.rawr.stop_close_ms. - Settings > Video > RAW > CinemaDNG: converts a clip to a folder of DNGs (lossless JPEG as recorded, or uncompressed) and a WAV, for DaVinci Resolve and other editors. A frame the camera skipped is filled with the one before, so picture and sound keep the clip's length.
- Measured on the 17U: 30 fps Open Gate for 20 min 18 s in one take, 36,420 of 36,420 frames, 205 GB, about 5 W, no frame lost. 60 fps: about 2 minutes in a row, then a pause of a few minutes - after about 35 GB written in a row the phone's own storage slows down (whatever the temperature: tested with a cooler at 32 C too); BUFFER warns first.
- Size: about 10 GB a minute at 30 fps, about 17 GB a minute at 60 fps.
Long exposure
- Longest shutter up to 120 s (Settings > Lenses > a lens > Advanced; was 25 s; asked for by dvrn.drmz in the Telegram group). The 17U takes 30, 60 and 120 s exposures in full (120 s: the photo saved 122 s after the press).
- The countdown ends with the photo: on the 17U it kept counting about 25 s after a 30 s photo was saved.
- The notification shown from the press reads Taking photos (it said "Saving photos - Finishing your queued captures" all through the exposure).
Viewfinder
- Settings > Display: Viewfinder Resolution (Photo) and Viewfinder Resolution (Video): Photo keeps High, Video is Fast by default (leaves the GPU to the recording). Translated in the 10 languages.
- Coming back to Rawr (from the gallery, the home screen) the viewfinder no longer stays black for up to 4 s: on the 17U the camera often never reports its session closed when Rawr leaves, and Rawr waited the full 4 s for it (now 1.2 s; the camera is closed anyway).
- Phone turned to the right: the controls' text was upside down (reported by @kavascript). It now turns with the side the phone is turned to.
- S/I Toggle: the switch no longer flashes for a moment while the camera opens on phones without S/I priority of their own; the setting says those phones (the 14 Ultra) need Auto Exposure: Rawr.
From apos-fandango's Rawr X14U
Taken from apos-fandango/rawr-xiaomi14u, credited in the code and commits:
- Tap focus holds for (Settings > Photo > Capture): how long a tapped focus point holds in continuous AF - 2, 4, 6, 10, 20 or 30 s, or until the next tap (4 s by default, as before). From his dd8556f; there it sits with his face options, here it is a setting of its own.
- AF-L holds the lens by distance once it has focused, where the camera reports a calibrated focus distance (some Xiaomi cameras drop an AF lock after 3-4 s and refocus). From his f0b4127 (the native part; his Pro "A" button is part of his layout).
- Full-size photos keep the manual white balance of the viewfinder (the full-size still ran the camera's auto white balance). From his 5d96340.
Dynamic Range: Local (from Steve's v26 patch)
- Settings > Look > Dynamic Range > Photo > Local is shown (Ed's main keeps it hidden): region-by-region exposure fusion, the local tone mapping Steve tuned HDR+ Bracketed with. Wider ranges (Strength up to 5 EV, Highlight protection up to 4 EV; Ed's: 3 and 2) and Shadow detail (0.75 by default; 0 = Ed's guided regression, which smooths dark flat areas), also in the Renderer. Written by Steve. Off and Global stay as in Ed's main, and Global stays the default, so nothing changes unless Local is chosen.
LOFIC on the main camera (Xiaomi 17 Ultra, needs Anton Tretiakov's X17U LOFIC RAW root module)
From Anton Tretiakov's (@designation_zero on Telegram) X17U LOFIC RAW specification and his LOFIC RAW demo app (session keys, the 6 outputs and their order, the setups). Without his module the HAL gives a 16:9 readout with no real LOFIC gain: the lens refuses the shot and says so.
- Settings > Photo > Capture > LOFIC Lens (1x LOFIC) (off by default): a "1x LOFIC" lens in the lens bar, main camera 4:3 30 (sensor mode 5). The viewfinder shows the Long; a photo takes the Long and Short of the same frame and merges them into one float16 DNG (
RAWR_..._LOFIC.dng, 4096x3072), then a JPEG (Ultra HDR) through the Renderer. - Settings > Photo > Capture > LOFIC Camera: a separate screen on Camera2 like Anton's demo, with his three setups (4:3 30, 4:3 59.5, 16:10 60), auto or manual exposure (AE compensation, +3 EV by default), focus, and a status line (sensor mode, fps, exposure count, Long/Short rows).
- The merge: the Long/Short ratio k is measured on every photo (model as fallback); the DNG carries the white balance (AsShotNeutral), BaselineExposure and a NoiseProfile (Long and k x Short), so the Renderer's profiled denoise runs on it.
- The Renderer opens float DNGs (float kept exact, no 16-bit rounding): gain metered from the scene (within 64x), local tone mapping, the brightest part kept at most 2 EV over white. LOFIC JPEGs are queued one after the other.
- After a LOFIC shot the message says the JPEG follows in about 10-15 s; turning the lens on (or opening the LOFIC screen) asks for notifications on Android 13+, for the "JPEG saved" notice.
- Without the module the lens now says so when it opens (Long rows below 3072, the 16:9 readout), not only at the shutter, and no longer shows the "CPU copy path" notice.
- Smooth viewfinder: it drew 3-9 fps from the camera's 30 because each frame's result arrives about a frame after its RAW and the frame was dropped while waiting; up to 3 frames now wait. The packed RAW14 Long is also unpacked on the GPU instead of the CPU. Checked on the 17U: 30 fps, as on the other 1x lenses.
- Adaptive exposure (Device AE): sensor mode 5 is LOFIC without DCG, and at the same ISO and shutter its Long is about 1 stop noisier than the 1x DCG, so in Auto the lens adds up to +1 EV while the Short's brightest part keeps at least 1 EV below its clip (it drops back at once for strong lights); the viewfinder keeps its brightness. Rawr AE already exposes the Long about 2 EV above the device AE in low light, so it is left as it is.
- Settings > Photo > Capture > LOFIC RAW app opens Anton's own LOFIC RAW app, or the module's post when it is not installed.
- Checked on the 17U (daylight window, Long + Short): the lens and the screen give the same results; measured k 94-98% of the model, 4.5 to 5.8 stops above the Long clip, the Long always on the same reader, no crash. Video LOFIC: not yet.
1x 50>25
- A 1x 50>25 lens (main camera): the 50 MP photo (8192x6144) resampled to 25 MP (5792x4344) before it is stored and merged, like the tele's 200>25: faster merges and half-size DNGs; the viewfinder is the 1x 50MP's. New photo output Half (25 MP) in the lens editor (Bayer photo streams only). Checked on the 17U.
APV video (Xiaomi 17 Ultra)
- Settings > Video > Codec: HEVC or APV (shown on phones with a hardware APV encoder). APV (Advanced Professional Video, RFC 9924) records 4:2:2 10-bit, every frame a key frame, on the phone's hardware encoder (c2.qti.apv.encoder on the 17 Ultra), through the same image pipeline, audio, stabilisation data and recovery of interrupted recordings as HEVC. Files are MP4 ('apv1') and open in DaVinci Resolve, FFmpeg and Klipp.
- APV bitrate in bits per pixel per frame (1.0 to 6.0, 3.7 by default), so one value suits 1080p, 4K and Open Gate at any frame rate; the row shows what it gives at 4K30 and 4K60 (3.7: about 0.92 and 1.84 Gb/s), at most 2.1 Gb/s. Files are large: 4K60 at 3.7 is about 13 GB a minute.
- LOG in APV is signalled like LOG in HEVC: colour primarie...
Rawr 17U 0.5.1-17u.18
Rawr 17U 0.5.1-17u.18: Ed's main up to adityawarmanfw#169, HDR+ Bracketed back (Ed's, reworked by Steve) and the S/I Toggle
What's new
Ed's main up to adityawarmanfw#169, HDR+ Bracketed back (Ed's merge, brought back and reworked by Steve, kept apart from Ed's code) and the S/I Toggle. Checked on the Xiaomi 17 Ultra.
From Ed's main (adityawarmanfw#166, adityawarmanfw#168, adityawarmanfw#169)
- adityawarmanfw#168: Rexturation no longer draws dotted lines along clipped and very steep edges.
- adityawarmanfw#166, adityawarmanfw#169: the quad remosaic of 2x2 on-chip-lens sensors (lenses with a 2x2 photo stream and "Correct per-position response") loses its blocky soft edges, lattice, patches and thin-line artifacts. The 17U's 200 MP tele (4x4 blocks) keeps the fork's fast remosaic, so this does not change its photos.
S/I Toggle (asked for by iG0Lka_ru on Telegram)
- Settings > Photo > Capture > S/I Toggle (Off by default): one tap switches between ISO priority (static scenes) and shutter priority (motion), each entered with its own value: ISO Priority Value (ISO 50 by default) and Shutter Priority Value (1/1000 s by default), the nearest the lens offers. Shown as a button in the top bar (long press: back to Auto) or as an S / I tab on the fixed exposure cell (in Auto or Manual an S⇄I tab on the shutter cell; the cell's own tap, double tap and long press stay as they were). Photo mode only. The mode itself is kept across app restarts, as before.
- Checked on the 17U: the switch enters the saved value of each side; a value set by hand on that side is not kept (as asked).
HDR+ Bracketed (Ed's merge, brought back and reworked by Steve in his v26 patch)
- Settings > Photo > Multiframe > Merge Algorithm > HDR+ Bracketed (off by default: the default merge stays Rexture). HDR+ Quality on a ZSL burst metered darker so bright areas (sky, lamps) do not clip, brightened back, plus frames taken right after the shutter: brighter ones for cleaner shadows and darker ones as a highlight layer (hold still until the tick). HDR+ Bracketed was Ed's: he removed it from his main earlier, and Steve brought it back on top of Ed's HDR+ Quality.
- Kept apart from Ed's code so HDR+ Quality and Rexture stay as upstream: the bracket merge runs its own recorder (
HdrBracketRecorder.cpp, a copy of Ed'sHdrPlusRecorder.cppwith Steve's changes), its own burst run (AndroidBurstCoordinatorBracket.cpp) and its own shaders (hdrb_*.comp, including copies of the three alignment shaders Steve changed); its extra GPU memory (highlight layer, per-bin weights) is only reserved for a bracketed burst. The capture side (headroom metering, post-shutter frames, the DNG lift) only runs with HDR+ Bracketed selected. -Prawr.hdrb=falsebuilds without it (native code left out, merge hidden in Settings), for when a sync with Ed's main breaks it before Steve can update it.- Left out of the same patch: the HDR+ (spatial) merge, the multiframe resolution presets, the local tone changes (Shadow detail, wider ranges, visible controls) and the UI rotation for both landscape postures.
- Checked on the 17U at 1x (12.5 MP), same scene: HDR+ Quality gives the same result, memory (504 MB) and merge time in 17u.17 and here; HDR+ Bracketed took its 3 post-shutter frames (1 at -2 EV, 2 at +1 EV), applied the highlight layer, used 541 MB (+37 MB), and matched Steve's own build (same merge figures, same look); back on HDR+ Quality the memory returns to 504 MB. The 200 MP modes work and take longer.
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Lenses > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.
Rawr 17U 0.5.1-17u.17
What's new in 0.5.1-17u.17
- Shutter Sound fix: on phones whose system reports the shutter sound as required, the switch had no effect. Settings > Photo > Capture > Follow System Shutter Rule (shown only on those phones) lets the switch decide. Found and written by Steve.
- Voice Shutter (Settings > Photo > Capture): say "Capture", "Cheese" or "Say cheese" to take a photo. Offline recognizer on the phone, nothing recorded or sent. Only the exact word or phrase fires, so pronunciation matters: "Capture" and "Say cheese" are the most reliable. Written by Steve.
- Watch Remote (Settings > Photo > Capture): the viewfinder and the shutter on a paired Wear OS watch, with the watch app rawr17u-remote-wear-0.5.1-17u.17.apk from this release. Written by Steve.
- The tele opens at 75 mm (3.2x) instead of 100 mm; Settings > Lenses lists its modes as "Tele Normal", "Tele DCG"... (Reset to device default to get the new list if you edited lenses).
Install: separate app "Rawr 17U" (x17u.rawr.camera), next to the official Rawr and the Rawr 17U Debug test build. Each release installs over the previous one. If lenses look wrong after updating: Settings > Capture > Lens > Reset to device default.
Unofficial modified version of Rawr by adityawarmanfw, for the Xiaomi 17 Ultra. Not affiliated with or endorsed by the original author. GPL-3.0-only; full source is attached below and on the xiaomi-17u branch.