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

Side by Side Diff: media/video/gpu_memory_buffer_video_frame_pool.cc

Issue 2370453003: 12-bit vp9 video support (Closed)
Patch Set: typO Created 4 years, 2 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
« no previous file with comments | « media/test/pipeline_integration_test.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/video/gpu_memory_buffer_video_frame_pool.h" 5 #include "media/video/gpu_memory_buffer_video_frame_pool.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <GLES2/gl2ext.h> 8 #include <GLES2/gl2ext.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 case PIXEL_FORMAT_RGB24: 373 case PIXEL_FORMAT_RGB24:
374 case PIXEL_FORMAT_RGB32: 374 case PIXEL_FORMAT_RGB32:
375 case PIXEL_FORMAT_MJPEG: 375 case PIXEL_FORMAT_MJPEG:
376 case PIXEL_FORMAT_MT21: 376 case PIXEL_FORMAT_MT21:
377 case PIXEL_FORMAT_YUV420P9: 377 case PIXEL_FORMAT_YUV420P9:
378 case PIXEL_FORMAT_YUV422P9: 378 case PIXEL_FORMAT_YUV422P9:
379 case PIXEL_FORMAT_YUV444P9: 379 case PIXEL_FORMAT_YUV444P9:
380 case PIXEL_FORMAT_YUV420P10: 380 case PIXEL_FORMAT_YUV420P10:
381 case PIXEL_FORMAT_YUV422P10: 381 case PIXEL_FORMAT_YUV422P10:
382 case PIXEL_FORMAT_YUV444P10: 382 case PIXEL_FORMAT_YUV444P10:
383 case PIXEL_FORMAT_YUV420P12:
384 case PIXEL_FORMAT_YUV422P12:
385 case PIXEL_FORMAT_YUV444P12:
383 case PIXEL_FORMAT_UNKNOWN: 386 case PIXEL_FORMAT_UNKNOWN:
384 frame_ready_cb.Run(video_frame); 387 frame_ready_cb.Run(video_frame);
385 return; 388 return;
386 } 389 }
387 390
388 const gfx::Size coded_size = CodedSize(video_frame, output_format_); 391 const gfx::Size coded_size = CodedSize(video_frame, output_format_);
389 // Acquire resources. Incompatible ones will be dropped from the pool. 392 // Acquire resources. Incompatible ones will be dropped from the pool.
390 FrameResources* frame_resources = 393 FrameResources* frame_resources =
391 GetOrCreateFrameResources(coded_size, output_format_); 394 GetOrCreateFrameResources(coded_size, output_format_);
392 if (!frame_resources) { 395 if (!frame_resources) {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 } 768 }
766 769
767 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame( 770 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame(
768 const scoped_refptr<VideoFrame>& video_frame, 771 const scoped_refptr<VideoFrame>& video_frame,
769 const FrameReadyCB& frame_ready_cb) { 772 const FrameReadyCB& frame_ready_cb) {
770 DCHECK(video_frame); 773 DCHECK(video_frame);
771 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb); 774 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb);
772 } 775 }
773 776
774 } // namespace media 777 } // namespace media
OLDNEW
« no previous file with comments | « media/test/pipeline_integration_test.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698