Description[cast] Force 4:2:0 pixel formats in H264VideoToolboxEncoder.
On some platforms, notably the iOS simulator, VideoToolbox compression
sessions vend 4:2:2 pixel buffers by default. This is not supported by
the VideoFrame-CVPixelBuffer integration code.
This patch forces VideoToolbox to vend I420 or NV12 buffers. For
encoders that natively support those formats, this effectively changes
nothing. For encoders that do not, VideoToolbox will convert submitted
frames to whatever format the encoder wants.
In practice, this is a defensive patch that also allows testing iOS cast
streaming on the iOS simulator.
BUG=450804
R=miu, hclam
Committed: https://crrev.com/8813c543acf046b68183d32ef5321bce882db586
Cr-Commit-Position: refs/heads/master@{#313103}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add <vector> include #Patch Set 3 : Rebase #Messages
Total messages: 15 (5 generated)
|