| 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 "content/common/gpu/media/vaapi_video_encode_accelerator.h" | 5 #include "content/common/gpu/media/vaapi_video_encode_accelerator.h" |
| 6 | 6 |
| 7 #include <string.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 11 #include "base/numerics/safe_conversions.h" | 13 #include "base/numerics/safe_conversions.h" |
| 12 #include "content/common/gpu/media/h264_dpb.h" | 14 #include "content/common/gpu/media/h264_dpb.h" |
| 13 #include "media/base/bind_to_current_loop.h" | 15 #include "media/base/bind_to_current_loop.h" |
| 14 #include "third_party/libva/va/va_enc_h264.h" | 16 #include "third_party/libva/va/va_enc_h264.h" |
| 15 | 17 |
| 16 #define DVLOGF(level) DVLOG(level) << __FUNCTION__ << "(): " | 18 #define DVLOGF(level) DVLOG(level) << __FUNCTION__ << "(): " |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 } | 1057 } |
| 1056 | 1058 |
| 1057 VaapiVideoEncodeAccelerator::EncodeJob::EncodeJob() | 1059 VaapiVideoEncodeAccelerator::EncodeJob::EncodeJob() |
| 1058 : coded_buffer(VA_INVALID_ID), keyframe(false) { | 1060 : coded_buffer(VA_INVALID_ID), keyframe(false) { |
| 1059 } | 1061 } |
| 1060 | 1062 |
| 1061 VaapiVideoEncodeAccelerator::EncodeJob::~EncodeJob() { | 1063 VaapiVideoEncodeAccelerator::EncodeJob::~EncodeJob() { |
| 1062 } | 1064 } |
| 1063 | 1065 |
| 1064 } // namespace content | 1066 } // namespace content |
| OLD | NEW |