mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-13 05:00:11 +08:00
76 lines
3.4 KiB
C++
76 lines
3.4 KiB
C++
/*
|
|
* This file is auto-generated. DO NOT MODIFY.
|
|
* Using: /home/iscle/Android/Sdk/build-tools/35.0.1/aidl --lang=ndk -o generated -h generated/include --structured --stability=vintf --min_sdk_version=31 -I hardware_interfaces/common/aidl/aidl_api/android.hardware.common/current/ -I hardware_interfaces/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/ -I hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.common/current/ -I hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.effect/current/ -I system_hardware_interfaces/media/aidl_api/android.media.audio.common.types/current/ -I system_hardware_interfaces/media/aidl_api/android.media.audio.eraser.types/current/ hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.common/current/android/hardware/audio/common/AudioOffloadMetadata.aidl
|
|
*/
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <android/binder_interface_utils.h>
|
|
#include <android/binder_parcelable_utils.h>
|
|
#include <android/binder_to_string.h>
|
|
#include <aidl/android/media/audio/common/AudioChannelLayout.h>
|
|
#ifdef BINDER_STABILITY_SUPPORT
|
|
#include <android/binder_stability.h>
|
|
#endif // BINDER_STABILITY_SUPPORT
|
|
|
|
namespace aidl {
|
|
namespace android {
|
|
namespace hardware {
|
|
namespace audio {
|
|
namespace common {
|
|
class AudioOffloadMetadata {
|
|
public:
|
|
typedef std::false_type fixed_size;
|
|
static const char* descriptor;
|
|
|
|
int32_t sampleRate = 0;
|
|
::aidl::android::media::audio::common::AudioChannelLayout channelMask;
|
|
int32_t averageBitRatePerSecond = 0;
|
|
int32_t delayFrames = 0;
|
|
int32_t paddingFrames = 0;
|
|
|
|
binder_status_t readFromParcel(const AParcel* parcel);
|
|
binder_status_t writeToParcel(AParcel* parcel) const;
|
|
|
|
inline bool operator==(const AudioOffloadMetadata& _rhs) const {
|
|
return std::tie(sampleRate, channelMask, averageBitRatePerSecond, delayFrames, paddingFrames) == std::tie(_rhs.sampleRate, _rhs.channelMask, _rhs.averageBitRatePerSecond, _rhs.delayFrames, _rhs.paddingFrames);
|
|
}
|
|
inline bool operator<(const AudioOffloadMetadata& _rhs) const {
|
|
return std::tie(sampleRate, channelMask, averageBitRatePerSecond, delayFrames, paddingFrames) < std::tie(_rhs.sampleRate, _rhs.channelMask, _rhs.averageBitRatePerSecond, _rhs.delayFrames, _rhs.paddingFrames);
|
|
}
|
|
inline bool operator!=(const AudioOffloadMetadata& _rhs) const {
|
|
return !(*this == _rhs);
|
|
}
|
|
inline bool operator>(const AudioOffloadMetadata& _rhs) const {
|
|
return _rhs < *this;
|
|
}
|
|
inline bool operator>=(const AudioOffloadMetadata& _rhs) const {
|
|
return !(*this < _rhs);
|
|
}
|
|
inline bool operator<=(const AudioOffloadMetadata& _rhs) const {
|
|
return !(_rhs < *this);
|
|
}
|
|
|
|
static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
|
|
inline std::string toString() const {
|
|
std::ostringstream _aidl_os;
|
|
_aidl_os << "AudioOffloadMetadata{";
|
|
_aidl_os << "sampleRate: " << ::android::internal::ToString(sampleRate);
|
|
_aidl_os << ", channelMask: " << ::android::internal::ToString(channelMask);
|
|
_aidl_os << ", averageBitRatePerSecond: " << ::android::internal::ToString(averageBitRatePerSecond);
|
|
_aidl_os << ", delayFrames: " << ::android::internal::ToString(delayFrames);
|
|
_aidl_os << ", paddingFrames: " << ::android::internal::ToString(paddingFrames);
|
|
_aidl_os << "}";
|
|
return _aidl_os.str();
|
|
}
|
|
};
|
|
} // namespace common
|
|
} // namespace audio
|
|
} // namespace hardware
|
|
} // namespace android
|
|
} // namespace aidl
|