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

Side by Side Diff: media/base/android/audio_decoder_job.h

Issue 898843002: Use cached Key frames to avoid browser seek (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_BASE_ANDROID_AUDIO_DECODER_JOB_H_ 5 #ifndef MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_
6 #define MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ 6 #define MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // MediaDecoderJob implementation. 42 // MediaDecoderJob implementation.
43 virtual void ReleaseOutputBuffer( 43 virtual void ReleaseOutputBuffer(
44 int output_buffer_index, 44 int output_buffer_index,
45 size_t size, 45 size_t size,
46 bool render_output, 46 bool render_output,
47 base::TimeDelta current_presentation_timestamp, 47 base::TimeDelta current_presentation_timestamp,
48 const ReleaseOutputCompletionCallback& callback) override; 48 const ReleaseOutputCompletionCallback& callback) override;
49 virtual bool ComputeTimeToRender() const override; 49 virtual bool ComputeTimeToRender() const override;
50 virtual bool AreDemuxerConfigsChanged( 50 virtual bool AreDemuxerConfigsChanged(
51 const DemuxerConfigs& configs) const override; 51 const DemuxerConfigs& configs) const override;
52 virtual bool CreateMediaCodecBridgeInternal() override; 52 virtual MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override;
53 virtual void OnOutputFormatChanged() override; 53 virtual void OnOutputFormatChanged() override;
54 54
55 // Helper method to set the audio output volume. 55 // Helper method to set the audio output volume.
56 void SetVolumeInternal(); 56 void SetVolumeInternal();
57 57
58 void ResetTimestampHelper(); 58 void ResetTimestampHelper();
59 59
60 // Audio configs from the demuxer. 60 // Audio configs from the demuxer.
61 AudioCodec audio_codec_; 61 AudioCodec audio_codec_;
62 int num_channels_; 62 int num_channels_;
(...skipping 13 matching lines...) Expand all
76 76
77 // Object to calculate the current audio timestamp for A/V sync. 77 // Object to calculate the current audio timestamp for A/V sync.
78 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; 78 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob); 80 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob);
81 }; 81 };
82 82
83 } // namespace media 83 } // namespace media
84 84
85 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ 85 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/android/audio_decoder_job.cc » ('j') | media/base/android/media_decoder_job.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698