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

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

Issue 1481633002: Never reuse a VideoToolbox decompression session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years 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.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 struct Frame { 90 struct Frame {
91 explicit Frame(int32_t bitstream_id); 91 explicit Frame(int32_t bitstream_id);
92 ~Frame(); 92 ~Frame();
93 93
94 // ID of the bitstream buffer this Frame will be decoded from. 94 // ID of the bitstream buffer this Frame will be decoded from.
95 int32_t bitstream_id; 95 int32_t bitstream_id;
96 96
97 // Relative presentation order of this frame (see AVC spec). 97 // Relative presentation order of this frame (see AVC spec).
98 int32_t pic_order_cnt; 98 int32_t pic_order_cnt;
99 99
100 // Nnumber of frames after this one in decode order that can appear before 100 // Whether this frame is an IDR.
101 bool is_idr;
102
103 // Number of frames after this one in decode order that can appear before
101 // before it in presentation order. 104 // before it in presentation order.
102 int32_t reorder_window; 105 int32_t reorder_window;
103 106
104 // Size of the decoded frame. 107 // Size of the decoded frame.
105 // TODO(sandersd): visible_rect. 108 // TODO(sandersd): visible_rect.
106 gfx::Size coded_size; 109 gfx::Size coded_size;
107 110
108 // VideoToolbox decoded image, if decoding was successful. 111 // VideoToolbox decoded image, if decoding was successful.
109 base::ScopedCFTypeRef<CVImageBufferRef> image; 112 base::ScopedCFTypeRef<CVImageBufferRef> image;
110 }; 113 };
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // Declared last to ensure that all weak pointers are invalidated before 261 // Declared last to ensure that all weak pointers are invalidated before
259 // other destructors run. 262 // other destructors run.
260 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 263 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
261 264
262 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 265 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
263 }; 266 };
264 267
265 } // namespace content 268 } // namespace content
266 269
267 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 270 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698