| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include <CoreVideo/CoreVideo.h> | 7 #include <CoreVideo/CoreVideo.h> |
| 8 #include <OpenGL/CGLIOSurface.h> | 8 #include <OpenGL/CGLIOSurface.h> |
| 9 #include <OpenGL/gl.h> | 9 #include <OpenGL/gl.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 CMTime presentation_time_stamp, | 243 CMTime presentation_time_stamp, |
| 244 CMTime presentation_duration) { | 244 CMTime presentation_duration) { |
| 245 VTVideoDecodeAccelerator* vda = | 245 VTVideoDecodeAccelerator* vda = |
| 246 reinterpret_cast<VTVideoDecodeAccelerator*>(decompression_output_refcon); | 246 reinterpret_cast<VTVideoDecodeAccelerator*>(decompression_output_refcon); |
| 247 vda->Output(source_frame_refcon, status, image_buffer); | 247 vda->Output(source_frame_refcon, status, image_buffer); |
| 248 } | 248 } |
| 249 | 249 |
| 250 VTVideoDecodeAccelerator::Task::Task(TaskType type) : type(type) { | 250 VTVideoDecodeAccelerator::Task::Task(TaskType type) : type(type) { |
| 251 } | 251 } |
| 252 | 252 |
| 253 VTVideoDecodeAccelerator::Task::Task(const Task& other) = default; |
| 254 |
| 253 VTVideoDecodeAccelerator::Task::~Task() { | 255 VTVideoDecodeAccelerator::Task::~Task() { |
| 254 } | 256 } |
| 255 | 257 |
| 256 VTVideoDecodeAccelerator::Frame::Frame(int32_t bitstream_id) | 258 VTVideoDecodeAccelerator::Frame::Frame(int32_t bitstream_id) |
| 257 : bitstream_id(bitstream_id), | 259 : bitstream_id(bitstream_id), |
| 258 pic_order_cnt(0), | 260 pic_order_cnt(0), |
| 259 is_idr(false), | 261 is_idr(false), |
| 260 reorder_window(0) { | 262 reorder_window(0) { |
| 261 } | 263 } |
| 262 | 264 |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 SupportedProfile profile; | 1145 SupportedProfile profile; |
| 1144 profile.profile = supported_profile; | 1146 profile.profile = supported_profile; |
| 1145 profile.min_resolution.SetSize(16, 16); | 1147 profile.min_resolution.SetSize(16, 16); |
| 1146 profile.max_resolution.SetSize(4096, 2160); | 1148 profile.max_resolution.SetSize(4096, 2160); |
| 1147 profiles.push_back(profile); | 1149 profiles.push_back(profile); |
| 1148 } | 1150 } |
| 1149 return profiles; | 1151 return profiles; |
| 1150 } | 1152 } |
| 1151 | 1153 |
| 1152 } // namespace content | 1154 } // namespace content |
| OLD | NEW |