Skip to content

fix(toxav): remove extra copy of video frame on encode#2900

Draft
Green-Sky wants to merge 1 commit into
TokTok:masterfrom
Green-Sky:toxav_remove_img_copy_encode
Draft

fix(toxav): remove extra copy of video frame on encode#2900
Green-Sky wants to merge 1 commit into
TokTok:masterfrom
Green-Sky:toxav_remove_img_copy_encode

Conversation

@Green-Sky
Copy link
Copy Markdown
Member

@Green-Sky Green-Sky commented Mar 28, 2025

Tested and works, but there might be alignment issues and other stuff.

I think we don't have alignment issues. I took a quick look at libvpx and arm neon loads and stores are unaligned, the avx code uses unaligned loads and stores. The example code also uses a mix of 1, 16 and 32 byte alignments.


Profiling flame graph of tomato sending 1080p@30hz with the removed section circled:
tomato_Image_2025-03-28_10-19-48 630


This change is Reviewable

@github-actions github-actions Bot added the bug Bug fix for the user, not a fix to a build script label Mar 28, 2025
@zoff99 zoff99 added the toxav Audio/video label Mar 30, 2025
@iphydf iphydf added this to the v0.2.22 milestone Apr 2, 2025
@Green-Sky Green-Sky force-pushed the toxav_remove_img_copy_encode branch from fa015c7 to 6cc2b37 Compare May 16, 2025 09:17
@Green-Sky Green-Sky modified the milestones: v0.2.22, v0.2.23 Sep 30, 2025
@Green-Sky Green-Sky force-pushed the toxav_remove_img_copy_encode branch from 6cc2b37 to 9505c70 Compare October 8, 2025 09:45
@Green-Sky Green-Sky force-pushed the toxav_remove_img_copy_encode branch 2 times, most recently from 07b7a06 to 1828c53 Compare January 1, 2026 18:12
@Green-Sky Green-Sky force-pushed the toxav_remove_img_copy_encode branch from 1828c53 to c9cdae0 Compare January 11, 2026 13:39
@Green-Sky Green-Sky force-pushed the toxav_remove_img_copy_encode branch from c9cdae0 to 9ed2fa8 Compare February 1, 2026 13:23
@Green-Sky Green-Sky modified the milestones: v0.2.23, v0.2.24 Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix for the user, not a fix to a build script toxav Audio/video

Development

Successfully merging this pull request may close these issues.

3 participants