feat(libwebrtc): implement I420BufferInterface::ToI420 and GetI420 and VideoFrameBuffer::GetMappedFrameBuffer #17273
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17273"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T16:53:16Z.
What
Implements three libwebrtc exports that threw, adapted from
api/video/video_frame_buffer.cc(identical at M127 and M134):webrtc::I420BufferInterface::ToI420()returns the buffer in a newscoped_refptrafter adding a reference through the buffer'sAddRef(vtable slot 0);I420BufferInterface::GetI420() constreturnsthis;VideoFrameBuffer::GetMappedFrameBuffer(ArrayView<Type>)checks throughtype()(slot 4) that the buffer is native, as itsRTC_CHECKdoes, and returns an emptyscoped_refptr. The slots follow the declaration order ofref_count.handvideo_frame_buffer.h, the same at both revisions. The unmeasured parts are indocs/dev/debt/libwebrtc.md.Tested
Linux:
suite.py feat/libwebrtc-i420-buffer-interface-defaultsat4ef720247c: CTest 4814/4814 passed; conventions passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)