Repository navigation
ESP32-P4-WIFI6 Pico-LCD-1.8: room for the video encoder beside Home - #936
Merged
Merged
Conversation
The display bus queued up to 128 KB of internal RAM for DMA, the P4's default, to send a 40 KB frame. With Home running that left 56 KB of internal RAM in one piece, and castif's H.264 encoder needs 92 KB at 1280 wide, so casting failed at 720p and at 960x544. A 64 KB queue still sends a whole frame in one write and leaves 122 KB in one piece: castif.Cast opens at 1280x720 from Home, and a 720p camera cast ran at 25.6 fps.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the ESP32-P4-WIFI6 (Pico) with the Pico-LCD-1.8, casting at 1280x720 or 960x544 failed from Home with "not enough internal RAM in one piece for the encoder". The display bus queued up to 128 KB of internal RAM for DMA, the P4's default, though a whole 160x128 frame is 40 KB. With Home running, that left 56 KB in one piece, and castif's H.264 encoder needs 92 KB at 1280 wide (69 KB at 960).
This asks the bus for 64 KB (
dma=65536), as the ESP32-P4X-EYE's config already asks for 32 KB. A frame still goes in one queued write.Checked on the board: with Home running, the largest free piece of internal RAM went from 56,320 to 124,928 bytes,
castif.Cast(1280, 720, yuv420=True)opened, and a 720p camera cast to a Roku ran at 25.6 fps. Home and the Roku camera app drew as before in screenshots of the panel.libbuild.py checkandinstallers --checkpass.