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

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

Issue 2923913003: Invalidate DXVA IMFTransform on Flush()
Patch Set: Created 3 years, 6 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 | media/gpu/dxva_video_decode_accelerator_win.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
7 7
8 #include <d3d11_1.h> 8 #include <d3d11_1.h>
9 #include <d3d9.h> 9 #include <d3d9.h>
10 #include <initguid.h> 10 #include <initguid.h>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 const gfx::ColorSpace& color_space); 231 const gfx::ColorSpace& color_space);
232 232
233 // Processes pending output samples by copying them to available picture 233 // Processes pending output samples by copying them to available picture
234 // slots. 234 // slots.
235 void ProcessPendingSamples(); 235 void ProcessPendingSamples();
236 236
237 // Helper function to notify the accelerator client about the error. 237 // Helper function to notify the accelerator client about the error.
238 void StopOnError(VideoDecodeAccelerator::Error error); 238 void StopOnError(VideoDecodeAccelerator::Error error);
239 239
240 // Transitions the decoder to the uninitialized state. The decoder will stop 240 // Transitions the decoder to the uninitialized state. The decoder will stop
241 // accepting requests in this state. 241 // accepting requests in this state. When invalidating for a config change,
242 void Invalidate(); 242 // only the decoder needs to be destroyed - other things can stick around.
243 void Invalidate(bool for_config_change);
243 244
244 // Stop and join on the decoder thread. 245 // Stop and join on the decoder thread.
245 void StopDecoderThread(); 246 void StopDecoderThread();
246 247
247 // Notifies the client that the input buffer identifed by input_buffer_id has 248 // Notifies the client that the input buffer identifed by input_buffer_id has
248 // been processed. 249 // been processed.
249 void NotifyInputBufferRead(int input_buffer_id); 250 void NotifyInputBufferRead(int input_buffer_id);
250 251
251 // Notifies the client that the decoder was flushed. 252 // Notifies the client that the decoder was flushed.
252 void NotifyFlushDone(); 253 void NotifyFlushDone();
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 589
589 // Function pointer for the MFCreateDXGIDeviceManager API. 590 // Function pointer for the MFCreateDXGIDeviceManager API.
590 static CreateDXGIDeviceManager create_dxgi_device_manager_; 591 static CreateDXGIDeviceManager create_dxgi_device_manager_;
591 592
592 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); 593 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator);
593 }; 594 };
594 595
595 } // namespace media 596 } // namespace media
596 597
597 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 598 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698