| OLD | NEW |
| 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 "media/gpu/v4l2_video_decode_accelerator.h" | 5 #include "media/gpu/v4l2_video_decode_accelerator.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <linux/videodev2.h> | 10 #include <linux/videodev2.h> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 decoder_flushing_(false), | 159 decoder_flushing_(false), |
| 160 resolution_change_reset_pending_(false), | 160 resolution_change_reset_pending_(false), |
| 161 decoder_partial_frame_pending_(false), | 161 decoder_partial_frame_pending_(false), |
| 162 input_streamon_(false), | 162 input_streamon_(false), |
| 163 input_buffer_queued_count_(0), | 163 input_buffer_queued_count_(0), |
| 164 output_streamon_(false), | 164 output_streamon_(false), |
| 165 output_buffer_queued_count_(0), | 165 output_buffer_queued_count_(0), |
| 166 output_dpb_size_(0), | 166 output_dpb_size_(0), |
| 167 output_planes_count_(0), | 167 output_planes_count_(0), |
| 168 picture_clearing_count_(0), | 168 picture_clearing_count_(0), |
| 169 pictures_assigned_(false, false), | 169 pictures_assigned_(base::WaitableEvent::ResetPolicy::AUTOMATIC, |
| 170 base::WaitableEvent::InitialState::NOT_SIGNALED), |
| 170 device_poll_thread_("V4L2DevicePollThread"), | 171 device_poll_thread_("V4L2DevicePollThread"), |
| 171 egl_display_(egl_display), | 172 egl_display_(egl_display), |
| 172 get_gl_context_cb_(get_gl_context_cb), | 173 get_gl_context_cb_(get_gl_context_cb), |
| 173 make_context_current_cb_(make_context_current_cb), | 174 make_context_current_cb_(make_context_current_cb), |
| 174 video_profile_(media::VIDEO_CODEC_PROFILE_UNKNOWN), | 175 video_profile_(media::VIDEO_CODEC_PROFILE_UNKNOWN), |
| 175 output_format_fourcc_(0), | 176 output_format_fourcc_(0), |
| 176 egl_image_format_fourcc_(0), | 177 egl_image_format_fourcc_(0), |
| 177 egl_image_planes_count_(0), | 178 egl_image_planes_count_(0), |
| 178 weak_this_factory_(this) { | 179 weak_this_factory_(this) { |
| 179 weak_this_ = weak_this_factory_.GetWeakPtr(); | 180 weak_this_ = weak_this_factory_.GetWeakPtr(); |
| (...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 Enqueue(); | 2241 Enqueue(); |
| 2241 } | 2242 } |
| 2242 } | 2243 } |
| 2243 | 2244 |
| 2244 void V4L2VideoDecodeAccelerator::ImageProcessorError() { | 2245 void V4L2VideoDecodeAccelerator::ImageProcessorError() { |
| 2245 LOG(ERROR) << "Image processor error"; | 2246 LOG(ERROR) << "Image processor error"; |
| 2246 NOTIFY_ERROR(PLATFORM_FAILURE); | 2247 NOTIFY_ERROR(PLATFORM_FAILURE); |
| 2247 } | 2248 } |
| 2248 | 2249 |
| 2249 } // namespace media | 2250 } // namespace media |
| OLD | NEW |