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

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

Issue 2258113002: [AVDA] Use InMilliseconds with presentation_timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/android_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 }; 414 };
415 415
416 // Encoded bitstream buffers to be passed to media codec, queued until an 416 // Encoded bitstream buffers to be passed to media codec, queued until an
417 // input buffer is available. 417 // input buffer is available.
418 std::queue<BitstreamRecord> pending_bitstream_records_; 418 std::queue<BitstreamRecord> pending_bitstream_records_;
419 419
420 // A map of presentation timestamp to bitstream buffer id for the bitstream 420 // A map of presentation timestamp to bitstream buffer id for the bitstream
421 // buffers that have been submitted to the decoder but haven't yet produced an 421 // buffers that have been submitted to the decoder but haven't yet produced an
422 // output frame with the same timestamp. Note: there will only be one entry 422 // output frame with the same timestamp. Note: there will only be one entry
423 // for multiple bitstream buffers that have the same presentation timestamp. 423 // for multiple bitstream buffers that have the same presentation timestamp.
424 std::map<base::TimeDelta, int32_t> bitstream_buffers_in_decoder_; 424 std::map<int64_t, int32_t> bitstream_buffers_in_decoder_;
425 425
426 // Keeps track of bitstream ids notified to the client with 426 // Keeps track of bitstream ids notified to the client with
427 // NotifyEndOfBitstreamBuffer() before getting output from the bitstream. 427 // NotifyEndOfBitstreamBuffer() before getting output from the bitstream.
428 std::list<int32_t> bitstreams_notified_in_advance_; 428 std::list<int32_t> bitstreams_notified_in_advance_;
429 429
430 // Backing strategy that we'll use to connect PictureBuffers to frames. 430 // Backing strategy that we'll use to connect PictureBuffers to frames.
431 std::unique_ptr<BackingStrategy> strategy_; 431 std::unique_ptr<BackingStrategy> strategy_;
432 432
433 // Helper class that manages asynchronous OnFrameAvailable callbacks. 433 // Helper class that manages asynchronous OnFrameAvailable callbacks.
434 class OnFrameAvailableHandler; 434 class OnFrameAvailableHandler;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 // WeakPtrFactory for posting tasks back to |this|. 482 // WeakPtrFactory for posting tasks back to |this|.
483 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 483 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
484 484
485 friend class AndroidVideoDecodeAcceleratorTest; 485 friend class AndroidVideoDecodeAcceleratorTest;
486 }; 486 };
487 487
488 } // namespace media 488 } // namespace media
489 489
490 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 490 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/android_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698