| 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 #ifndef MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 scoped_refptr<VASurface> recon_surface; | 66 scoped_refptr<VASurface> recon_surface; |
| 67 // Buffer that will contain output bitstream for this frame. | 67 // Buffer that will contain output bitstream for this frame. |
| 68 VABufferID coded_buffer; | 68 VABufferID coded_buffer; |
| 69 // Reference surfaces required to encode this picture. We keep references | 69 // Reference surfaces required to encode this picture. We keep references |
| 70 // to them here, because we may discard some of them from ref_pic_list* | 70 // to them here, because we may discard some of them from ref_pic_list* |
| 71 // before the HW job is done. | 71 // before the HW job is done. |
| 72 RefPicList reference_surfaces; | 72 RefPicList reference_surfaces; |
| 73 // True if this job will produce a keyframe. Used to report | 73 // True if this job will produce a keyframe. Used to report |
| 74 // to BitstreamBufferReady(). | 74 // to BitstreamBufferReady(). |
| 75 bool keyframe; | 75 bool keyframe; |
| 76 // Captured timestamp in microseconds. |
| 77 int64_t timestamp; |
| 76 | 78 |
| 77 EncodeJob(); | 79 EncodeJob(); |
| 78 ~EncodeJob(); | 80 ~EncodeJob(); |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 // Encoder state. | 83 // Encoder state. |
| 82 enum State { | 84 enum State { |
| 83 kUninitialized, | 85 kUninitialized, |
| 84 kEncoding, | 86 kEncoding, |
| 85 kError, | 87 kError, |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // thread (it's a member of this class). | 260 // thread (it's a member of this class). |
| 259 base::WeakPtr<VaapiVideoEncodeAccelerator> weak_this_; | 261 base::WeakPtr<VaapiVideoEncodeAccelerator> weak_this_; |
| 260 base::WeakPtrFactory<VaapiVideoEncodeAccelerator> weak_this_ptr_factory_; | 262 base::WeakPtrFactory<VaapiVideoEncodeAccelerator> weak_this_ptr_factory_; |
| 261 | 263 |
| 262 DISALLOW_COPY_AND_ASSIGN(VaapiVideoEncodeAccelerator); | 264 DISALLOW_COPY_AND_ASSIGN(VaapiVideoEncodeAccelerator); |
| 263 }; | 265 }; |
| 264 | 266 |
| 265 } // namespace media | 267 } // namespace media |
| 266 | 268 |
| 267 #endif // MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ | 269 #endif // MEDIA_GPU_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ |
| OLD | NEW |