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

Side by Side Diff: remoting/codec/audio_encoder_opus.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years 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 | « remoting/codec/audio_decoder_verbatim.h ('k') | remoting/codec/audio_encoder_opus.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 REMOTING_CODEC_AUDIO_ENCODER_OPUS_H_ 5 #ifndef REMOTING_CODEC_AUDIO_ENCODER_OPUS_H_
6 #define REMOTING_CODEC_AUDIO_ENCODER_OPUS_H_ 6 #define REMOTING_CODEC_AUDIO_ENCODER_OPUS_H_
7 7
8 #include "remoting/codec/audio_encoder.h" 8 #include "remoting/codec/audio_encoder.h"
9 9
10 #include <stdint.h>
11
12 #include "base/macros.h"
10 #include "remoting/proto/audio.pb.h" 13 #include "remoting/proto/audio.pb.h"
11 14
12 struct OpusEncoder; 15 struct OpusEncoder;
13 16
14 namespace media { 17 namespace media {
15 class AudioBus; 18 class AudioBus;
16 class MultiChannelResampler; 19 class MultiChannelResampler;
17 } // namespace media 20 } // namespace media
18 21
19 namespace remoting { 22 namespace remoting {
(...skipping 25 matching lines...) Expand all
45 scoped_ptr<media::MultiChannelResampler> resampler_; 48 scoped_ptr<media::MultiChannelResampler> resampler_;
46 scoped_ptr<char[]> resample_buffer_; 49 scoped_ptr<char[]> resample_buffer_;
47 scoped_ptr<media::AudioBus> resampler_bus_; 50 scoped_ptr<media::AudioBus> resampler_bus_;
48 51
49 // Used to pass packet to the FetchBytesToResampler() callback. 52 // Used to pass packet to the FetchBytesToResampler() callback.
50 const char* resampling_data_; 53 const char* resampling_data_;
51 int resampling_data_size_; 54 int resampling_data_size_;
52 int resampling_data_pos_; 55 int resampling_data_pos_;
53 56
54 // Left-over unencoded samples from the previous AudioPacket. 57 // Left-over unencoded samples from the previous AudioPacket.
55 scoped_ptr<int16[]> leftover_buffer_; 58 scoped_ptr<int16_t[]> leftover_buffer_;
56 int leftover_buffer_size_; 59 int leftover_buffer_size_;
57 int leftover_samples_; 60 int leftover_samples_;
58 61
59 DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); 62 DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus);
60 }; 63 };
61 64
62 } // namespace remoting 65 } // namespace remoting
63 66
64 #endif // REMOTING_CODEC_AUDIO_ENCODER_OPUS_H_ 67 #endif // REMOTING_CODEC_AUDIO_ENCODER_OPUS_H_
OLDNEW
« no previous file with comments | « remoting/codec/audio_decoder_verbatim.h ('k') | remoting/codec/audio_encoder_opus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698