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

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

Issue 805273007: Android: Propagate sample rate change to audio decoder job (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved UpdateOutput() back to original location Created 5 years, 11 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_VIDEO_DECODER_JOB_H_ 5 #ifndef MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_
6 #define MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ 6 #define MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "media/base/android/media_decoder_job.h" 10 #include "media/base/android/media_decoder_job.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool render_output, 52 bool render_output,
53 base::TimeDelta current_presentation_timestamp, 53 base::TimeDelta current_presentation_timestamp,
54 const ReleaseOutputCompletionCallback& callback) override; 54 const ReleaseOutputCompletionCallback& callback) override;
55 virtual bool ComputeTimeToRender() const override; 55 virtual bool ComputeTimeToRender() const override;
56 virtual bool IsCodecReconfigureNeeded( 56 virtual bool IsCodecReconfigureNeeded(
57 const DemuxerConfigs& configs) const override; 57 const DemuxerConfigs& configs) const override;
58 virtual bool AreDemuxerConfigsChanged( 58 virtual bool AreDemuxerConfigsChanged(
59 const DemuxerConfigs& configs) const override; 59 const DemuxerConfigs& configs) const override;
60 virtual bool CreateMediaCodecBridgeInternal() override; 60 virtual bool CreateMediaCodecBridgeInternal() override;
61 virtual void CurrentDataConsumed(bool is_config_change) override; 61 virtual void CurrentDataConsumed(bool is_config_change) override;
62 virtual bool UpdateOutputFormat() override; 62 virtual bool UpdateOutputFormat(
63 const base::Closure& config_changed_cb) override;
63 64
64 // Returns true if a protected surface is required for video playback. 65 // Returns true if a protected surface is required for video playback.
65 bool IsProtectedSurfaceRequired(); 66 bool IsProtectedSurfaceRequired();
66 67
67 // Video configs from the demuxer. 68 // Video configs from the demuxer.
68 VideoCodec video_codec_; 69 VideoCodec video_codec_;
69 int config_width_; 70 int config_width_;
70 int config_height_; 71 int config_height_;
71 72
72 // Video output format. 73 // Video output format.
(...skipping 11 matching lines...) Expand all
84 // unit after Flush() and CurrentDataConsumed(true) is guaranteed to be an 85 // unit after Flush() and CurrentDataConsumed(true) is guaranteed to be an
85 // I-frame. 86 // I-frame.
86 bool next_video_data_is_iframe_; 87 bool next_video_data_is_iframe_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(VideoDecoderJob); 89 DISALLOW_COPY_AND_ASSIGN(VideoDecoderJob);
89 }; 90 };
90 91
91 } // namespace media 92 } // namespace media
92 93
93 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ 94 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698