Loading aidl/android/media/InterpolatorConfig.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import android.media.InterpolatorType; * {@hide} */ parcelable InterpolatorConfig { InterpolatorType type; InterpolatorType type = InterpolatorType.CUBIC; /** For cubic interpolation, the boundary conditions in slope. */ float firstSlope; float lastSlope; Loading aidl/android/media/VolumeShaperConfiguration.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -24,10 +24,10 @@ import android.media.VolumeShaperConfigurationType; * {@hide} */ parcelable VolumeShaperConfiguration { VolumeShaperConfigurationType type; VolumeShaperConfigurationType type = VolumeShaperConfigurationType.ID; int id; /** Bitmask, indexed by VolumeShaperConfigurationOptionFlag. */ int optionFlags; double durationMs; InterpolatorConfig interpolatorConfig; @nullable InterpolatorConfig interpolatorConfig; // null if type == ID } include/media/Interpolator.h +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ public: using InterpolatorType = media::InterpolatorType; explicit Interpolator( InterpolatorType interpolatorType = InterpolatorType::LINEAR, InterpolatorType interpolatorType = InterpolatorType::CUBIC, bool cache = true) : mCache(cache) , mFirstSlope(0) Loading include/media/VolumeShaper.h +6 −3 Original line number Diff line number Diff line Loading @@ -302,7 +302,8 @@ public: if (mType != TYPE_ID) { parcelable->optionFlags = getOptionFlagsAsAidl(); parcelable->durationMs = getDurationMs(); Interpolator<S, T>::writeToConfig(&parcelable->interpolatorConfig); parcelable->interpolatorConfig.emplace(); // create value in std::optional Interpolator<S, T>::writeToConfig(&*parcelable->interpolatorConfig); } } Loading @@ -319,7 +320,9 @@ public: ? NO_ERROR : setOptionFlagsFromAidl(parcelable.optionFlags) ?: setDurationMs(parcelable.durationMs) ?: Interpolator<S, T>::readFromConfig(parcelable.interpolatorConfig) ?: !parcelable.interpolatorConfig // check std::optional for value ? BAD_VALUE // must be nonnull. : Interpolator<S, T>::readFromConfig(*parcelable.interpolatorConfig) ?: checkCurve(); } Loading media/codec2/hidl/plugin/DefaultFilterPlugin.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -105,4 +105,13 @@ bool DefaultFilterPlugin::isFilteringEnabled(const std::shared_ptr<C2ComponentIn return mPlugin->isFilteringEnabled(intf); } c2_status_t DefaultFilterPlugin::queryParamsForPreviousComponent( const std::shared_ptr<C2ComponentInterface> &intf, std::vector<std::unique_ptr<C2Param>> *params) { if (mInit != OK) { return C2_NO_INIT; } return mPlugin->queryParamsForPreviousComponent(intf, params); } } // namespace android Loading
aidl/android/media/InterpolatorConfig.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import android.media.InterpolatorType; * {@hide} */ parcelable InterpolatorConfig { InterpolatorType type; InterpolatorType type = InterpolatorType.CUBIC; /** For cubic interpolation, the boundary conditions in slope. */ float firstSlope; float lastSlope; Loading
aidl/android/media/VolumeShaperConfiguration.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -24,10 +24,10 @@ import android.media.VolumeShaperConfigurationType; * {@hide} */ parcelable VolumeShaperConfiguration { VolumeShaperConfigurationType type; VolumeShaperConfigurationType type = VolumeShaperConfigurationType.ID; int id; /** Bitmask, indexed by VolumeShaperConfigurationOptionFlag. */ int optionFlags; double durationMs; InterpolatorConfig interpolatorConfig; @nullable InterpolatorConfig interpolatorConfig; // null if type == ID }
include/media/Interpolator.h +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ public: using InterpolatorType = media::InterpolatorType; explicit Interpolator( InterpolatorType interpolatorType = InterpolatorType::LINEAR, InterpolatorType interpolatorType = InterpolatorType::CUBIC, bool cache = true) : mCache(cache) , mFirstSlope(0) Loading
include/media/VolumeShaper.h +6 −3 Original line number Diff line number Diff line Loading @@ -302,7 +302,8 @@ public: if (mType != TYPE_ID) { parcelable->optionFlags = getOptionFlagsAsAidl(); parcelable->durationMs = getDurationMs(); Interpolator<S, T>::writeToConfig(&parcelable->interpolatorConfig); parcelable->interpolatorConfig.emplace(); // create value in std::optional Interpolator<S, T>::writeToConfig(&*parcelable->interpolatorConfig); } } Loading @@ -319,7 +320,9 @@ public: ? NO_ERROR : setOptionFlagsFromAidl(parcelable.optionFlags) ?: setDurationMs(parcelable.durationMs) ?: Interpolator<S, T>::readFromConfig(parcelable.interpolatorConfig) ?: !parcelable.interpolatorConfig // check std::optional for value ? BAD_VALUE // must be nonnull. : Interpolator<S, T>::readFromConfig(*parcelable.interpolatorConfig) ?: checkCurve(); } Loading
media/codec2/hidl/plugin/DefaultFilterPlugin.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -105,4 +105,13 @@ bool DefaultFilterPlugin::isFilteringEnabled(const std::shared_ptr<C2ComponentIn return mPlugin->isFilteringEnabled(intf); } c2_status_t DefaultFilterPlugin::queryParamsForPreviousComponent( const std::shared_ptr<C2ComponentInterface> &intf, std::vector<std::unique_ptr<C2Param>> *params) { if (mInit != OK) { return C2_NO_INIT; } return mPlugin->queryParamsForPreviousComponent(intf, params); } } // namespace android