Mirko Bonadei 7120742701 Adding NOLINT for typedefs.h and common_types.h
Now that we have moved WebRTC from src/webrtc to src/, common_types.h
and typedefs.h are triggering a cpplint error.

The cpplint complaint is:
Include the directory when naming .h files  [build/include] [4]

This CL disables the error but we have to remove these two headers
from the root directory.

NOPRESUBMIT=true

Bug: webrtc:5876
Change-Id: I08e1b69aadcc4b28ab83bf25e3819d135d41d333
Reviewed-on: https://webrtc-review.googlesource.com/1577
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@google.com>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19859}
2017-09-15 13:03:51 +00:00

69 lines
2.0 KiB
C++

/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef VOICE_ENGINE_CODER_H_
#define VOICE_ENGINE_CODER_H_
#include <memory>
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/acm2/codec_manager.h"
#include "modules/audio_coding/acm2/rent_a_codec.h"
#include "modules/audio_coding/include/audio_coding_module.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc {
class AudioFrame;
class AudioCoder : public AudioPacketizationCallback {
public:
explicit AudioCoder(uint32_t instance_id);
~AudioCoder();
int32_t SetEncodeCodec(const CodecInst& codec_inst);
int32_t SetDecodeCodec(const CodecInst& codec_inst);
int32_t Decode(AudioFrame* decoded_audio,
uint32_t samp_freq_hz,
const int8_t* incoming_payload,
size_t payload_length);
int32_t PlayoutData(AudioFrame* decoded_audio, uint16_t samp_freq_hz);
int32_t Encode(const AudioFrame& audio,
int8_t* encoded_data,
size_t* encoded_length_in_bytes);
protected:
int32_t SendData(FrameType frame_type,
uint8_t payload_type,
uint32_t time_stamp,
const uint8_t* payload_data,
size_t payload_size,
const RTPFragmentationHeader* fragmentation) override;
private:
std::unique_ptr<AudioCodingModule> acm_;
acm2::CodecManager codec_manager_;
acm2::RentACodec rent_a_codec_;
CodecInst receive_codec_;
uint32_t encode_timestamp_;
int8_t* encoded_data_;
size_t encoded_length_in_bytes_;
uint32_t decode_timestamp_;
};
} // namespace webrtc
#endif // VOICE_ENGINE_CODER_H_