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

Side by Side Diff: content/common/gpu/media/v4l2_image_processor.cc

Issue 852103002: Revert of Add accelerated video decoder interface, VP8 and H.264 implementations and hook up to V4L2SVDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <fcntl.h> 5 #include <fcntl.h>
6 #include <linux/videodev2.h> 6 #include <linux/videodev2.h>
7 #include <poll.h> 7 #include <poll.h>
8 #include <sys/eventfd.h> 8 #include <sys/eventfd.h>
9 #include <sys/ioctl.h> 9 #include <sys/ioctl.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 V4L2ImageProcessor::OutputRecord::~OutputRecord() { 58 V4L2ImageProcessor::OutputRecord::~OutputRecord() {
59 } 59 }
60 60
61 V4L2ImageProcessor::JobRecord::JobRecord() { 61 V4L2ImageProcessor::JobRecord::JobRecord() {
62 } 62 }
63 63
64 V4L2ImageProcessor::JobRecord::~JobRecord() { 64 V4L2ImageProcessor::JobRecord::~JobRecord() {
65 } 65 }
66 66
67 V4L2ImageProcessor::V4L2ImageProcessor(const scoped_refptr<V4L2Device>& device) 67 V4L2ImageProcessor::V4L2ImageProcessor(scoped_ptr<V4L2Device> device)
68 : input_format_(media::VideoFrame::UNKNOWN), 68 : input_format_(media::VideoFrame::UNKNOWN),
69 output_format_(media::VideoFrame::UNKNOWN), 69 output_format_(media::VideoFrame::UNKNOWN),
70 input_format_fourcc_(0), 70 input_format_fourcc_(0),
71 output_format_fourcc_(0), 71 output_format_fourcc_(0),
72 input_planes_count_(0), 72 input_planes_count_(0),
73 output_planes_count_(0), 73 output_planes_count_(0),
74 child_message_loop_proxy_(base::MessageLoopProxy::current()), 74 child_message_loop_proxy_(base::MessageLoopProxy::current()),
75 device_(device), 75 device_(device.Pass()),
76 device_thread_("V4L2ImageProcessorThread"), 76 device_thread_("V4L2ImageProcessorThread"),
77 device_poll_thread_("V4L2ImageProcessorDevicePollThread"), 77 device_poll_thread_("V4L2ImageProcessorDevicePollThread"),
78 input_streamon_(false), 78 input_streamon_(false),
79 input_buffer_queued_count_(0), 79 input_buffer_queued_count_(0),
80 output_streamon_(false), 80 output_streamon_(false),
81 output_buffer_queued_count_(0), 81 output_buffer_queued_count_(0),
82 device_weak_factory_(this) { 82 device_weak_factory_(this) {
83 } 83 }
84 84
85 V4L2ImageProcessor::~V4L2ImageProcessor() { 85 V4L2ImageProcessor::~V4L2ImageProcessor() {
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 output_record.at_device = false; 719 output_record.at_device = false;
720 if (!output_record.at_client) 720 if (!output_record.at_client)
721 free_output_buffers_.push_back(i); 721 free_output_buffers_.push_back(i);
722 } 722 }
723 output_buffer_queued_count_ = 0; 723 output_buffer_queued_count_ = 0;
724 724
725 return true; 725 return true;
726 } 726 }
727 727
728 } // namespace content 728 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/v4l2_image_processor.h ('k') | content/common/gpu/media/v4l2_slice_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698