Chromium Code Reviews
DescriptionMotown: Video renderer library code
We don't currently have a good way to get video frames into Mozart under
the covers, so an application that wants to render video essentially
needs to *be* a video renderer. This CL adds library code that makes
that easy. This should go away once Motown and Mozart have come to
terms. There are three new classes:
1) VideoRenderer, which implements MediaRenderer, MediaConsumer,
MediaTimelineControlSite and TimelineConsumer and coughs up RGBA
video with pretty good synchronization.
2) VideoConverter, which converts YV12 payloads produced by Motown into
interleaved RGBA. This should be done by the GPU one day. It involves
a 64MB colorspace conversion table that's built at runtime. Yay!
It's hacky but temporary.
3) VideoPacketLayout, which understands how the 'planar' data in video
packet payloads is laid out. This is largely lifted from
services/media/framework/types/video_stream_type.*. The code
duplication should go away once the conversion is done on the GPU.
R=kulakowski@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/97eb9c38342b0646097e30f07dd7309452dca363
Patch Set 1 #Patch Set 2 : Fix empty packet detection. #
Total comments: 11
Patch Set 3 : Fixes per feedback. #
Messages
Total messages: 9 (3 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||