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

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

Issue 2661423002: VTVDA: Optimize pic_order_cnt_type == 2. (Closed)
Patch Set: Change POC of MMCO5 frame to 0. Created 3 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
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 MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ 5 #ifndef MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_
6 #define MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ 6 #define MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 struct Frame { 95 struct Frame {
96 explicit Frame(int32_t bitstream_id); 96 explicit Frame(int32_t bitstream_id);
97 ~Frame(); 97 ~Frame();
98 98
99 // Associated bitstream buffer. 99 // Associated bitstream buffer.
100 int32_t bitstream_id; 100 int32_t bitstream_id;
101 101
102 // Slice header information. 102 // Slice header information.
103 bool has_slice = false; 103 bool has_slice = false;
104 bool is_idr = false; 104 bool is_idr = false;
105 bool has_mmco5 = false;
105 int32_t pic_order_cnt = 0; 106 int32_t pic_order_cnt = 0;
106 int32_t reorder_window = 0; 107 int32_t reorder_window = 0;
107 108
108 // Clean aperture size, as computed by CoreMedia. 109 // Clean aperture size, as computed by CoreMedia.
109 gfx::Size image_size; 110 gfx::Size image_size;
110 111
111 // Decoded image, if decoding was successful. 112 // Decoded image, if decoding was successful.
112 base::ScopedCFTypeRef<CVImageBufferRef> image; 113 base::ScopedCFTypeRef<CVImageBufferRef> image;
113 }; 114 };
114 115
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Declared last to ensure that all weak pointers are invalidated before 278 // Declared last to ensure that all weak pointers are invalidated before
278 // other destructors run. 279 // other destructors run.
279 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 280 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
280 281
281 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 282 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
282 }; 283 };
283 284
284 } // namespace media 285 } // namespace media
285 286
286 #endif // MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ 287 #endif // MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/vt_video_decode_accelerator_mac.cc » ('j') | media/gpu/vt_video_decode_accelerator_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698