Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LibvpxVp8Encoder] Allow I420A to be scaled to I420.
In Chromium, the I420ABufferInterface implementation uses the default CropAndScale() implementation which converts to I420 in the process. This should be OK, because we do not encode the alpha channel anyway, so having WebRTC scaling ignore the alpha channel might even be a good thing. Unfortunatety, an if statement in the LibvpxVp8Encoder did not consider I420A and I420 to be the same, resulting in dropping perfectly valid frames. This CL fixes that by considering I420A and I420 "compatible" in a comparison helper function. The problem only happens in this encoder, so only this encoder needs to be fixed. Bug: chromium:1203206 Change-Id: Iec434d4ada897c79e09914cac823148fd5b05e57 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216323 Reviewed-by: Evan Shrubsole <[email protected]> Reviewed-by: Ilya Nikolaevskiy <[email protected]> Commit-Queue: Henrik Boström <[email protected]> Cr-Commit-Position: refs/heads/master@{#33845}
- Loading branch information