Commit e784fd32 authored by bbudge@chromium.org's avatar bbudge@chromium.org

Pepper: Fix texture color format in VideoDecoderShim.

The RGB pixel components are flipped in the software decoder
implementation.

Also add latency calculation to example plugin.
Flip picture vertically (it was upside down).

BUG=281689

Review URL: https://codereview.chromium.org/346543002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278237 0039d316-1c4b-4281-b951-d872f2087c98
parent 5015a072
......@@ -256,8 +256,8 @@ void VideoDecoderShim::DecoderImpl::OnOutputComplete(
scoped_ptr<PendingFrame> pending_frame;
if (!frame->end_of_stream()) {
pending_frame.reset(new PendingFrame(decode_id_, frame->coded_size()));
// Convert the VideoFrame pixels to ARGB.
libyuv::I420ToARGB(frame->data(media::VideoFrame::kYPlane),
// Convert the VideoFrame pixels to ABGR to match VideoDecodeAccelerator.
libyuv::I420ToABGR(frame->data(media::VideoFrame::kYPlane),
frame->stride(media::VideoFrame::kYPlane),
frame->data(media::VideoFrame::kUPlane),
frame->stride(media::VideoFrame::kUPlane),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment