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

Side by Side Diff: content/common/gpu/media/vt_video_decode_accelerator_mac.h

Issue 1707843002: Drop frames until first IDR in VTVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | content/common/gpu/media/vt_video_decode_accelerator_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 base::ScopedCFTypeRef<CMFormatDescriptionRef> format_; 242 base::ScopedCFTypeRef<CMFormatDescriptionRef> format_;
243 base::ScopedCFTypeRef<VTDecompressionSessionRef> session_; 243 base::ScopedCFTypeRef<VTDecompressionSessionRef> session_;
244 media::H264Parser parser_; 244 media::H264Parser parser_;
245 gfx::Size coded_size_; 245 gfx::Size coded_size_;
246 246
247 int last_sps_id_; 247 int last_sps_id_;
248 std::vector<uint8_t> last_sps_; 248 std::vector<uint8_t> last_sps_;
249 std::vector<uint8_t> last_spsext_; 249 std::vector<uint8_t> last_spsext_;
250 int last_pps_id_; 250 int last_pps_id_;
251 std::vector<uint8_t> last_pps_; 251 std::vector<uint8_t> last_pps_;
252 bool config_changed_;
253 bool missing_idr_logged_;
252 media::H264POC poc_; 254 media::H264POC poc_;
253 255
254 // 256 //
255 // Shared state (set up and torn down on GPU thread). 257 // Shared state (set up and torn down on GPU thread).
256 // 258 //
257 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; 259 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_;
258 base::ThreadChecker gpu_thread_checker_; 260 base::ThreadChecker gpu_thread_checker_;
259 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_; 261 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_;
260 base::Thread decoder_thread_; 262 base::Thread decoder_thread_;
261 263
262 // Declared last to ensure that all weak pointers are invalidated before 264 // Declared last to ensure that all weak pointers are invalidated before
263 // other destructors run. 265 // other destructors run.
264 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 266 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
265 267
266 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 268 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
267 }; 269 };
268 270
269 } // namespace content 271 } // namespace content
270 272
271 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 273 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/vt_video_decode_accelerator_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698