Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1107)

Side by Side Diff: media/gpu/vaapi_video_decode_accelerator.cc

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/gpu/vaapi_video_decode_accelerator.h" 5 #include "media/gpu/vaapi_video_decode_accelerator.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 671 }
672 pictures_.clear(); 672 pictures_.clear();
673 673
674 // And ask for a new set as requested. 674 // And ask for a new set as requested.
675 DVLOG(1) << "Requesting " << requested_num_pics_ 675 DVLOG(1) << "Requesting " << requested_num_pics_
676 << " pictures of size: " << requested_pic_size_.ToString(); 676 << " pictures of size: " << requested_pic_size_.ToString();
677 677
678 message_loop_->PostTask( 678 message_loop_->PostTask(
679 FROM_HERE, 679 FROM_HERE,
680 base::Bind(&Client::ProvidePictureBuffers, client_, requested_num_pics_, 680 base::Bind(&Client::ProvidePictureBuffers, client_, requested_num_pics_,
681 1, requested_pic_size_, VaapiPicture::GetGLTextureTarget())); 681 PIXEL_FORMAT_UNKNOWN, 1, requested_pic_size_,
Pawel Osciak 2016/05/18 07:32:31 In ToT we have a new kOutputPictureFormat constant
682 VaapiPicture::GetGLTextureTarget()));
682 } 683 }
683 684
684 void VaapiVideoDecodeAccelerator::Decode( 685 void VaapiVideoDecodeAccelerator::Decode(
685 const media::BitstreamBuffer& bitstream_buffer) { 686 const media::BitstreamBuffer& bitstream_buffer) {
686 DCHECK_EQ(message_loop_, base::MessageLoop::current()); 687 DCHECK_EQ(message_loop_, base::MessageLoop::current());
687 688
688 TRACE_EVENT1("Video Decoder", "VAVDA::Decode", "Buffer id", 689 TRACE_EVENT1("Video Decoder", "VAVDA::Decode", "Buffer id",
689 bitstream_buffer.id()); 690 bitstream_buffer.id());
690 691
691 if (bitstream_buffer.id() < 0) { 692 if (bitstream_buffer.id() < 0) {
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 return vaapi_pic->dec_surface(); 1768 return vaapi_pic->dec_surface();
1768 } 1769 }
1769 1770
1770 // static 1771 // static
1771 media::VideoDecodeAccelerator::SupportedProfiles 1772 media::VideoDecodeAccelerator::SupportedProfiles
1772 VaapiVideoDecodeAccelerator::GetSupportedProfiles() { 1773 VaapiVideoDecodeAccelerator::GetSupportedProfiles() {
1773 return VaapiWrapper::GetSupportedDecodeProfiles(); 1774 return VaapiWrapper::GetSupportedDecodeProfiles();
1774 } 1775 }
1775 1776
1776 } // namespace media 1777 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698