Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf42c01f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "codec2: add audio encoder input frame size" am: cc9eee46 am: ef58af7e

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1425828

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If01c89c950ca18036e4826decea118ddccb8a1f6
parents 1c9c1e58 ef58af7e
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ enum C2ParamIndexKind : C2Param::type_index_t {
    kParamIndexDrcEffectType, // drc, enum
    kParamIndexDrcOutputLoudness, // drc, float (dBFS)
    kParamIndexDrcAlbumMode, // drc, enum
    kParamIndexAudioFrameSize, // int

    /* ============================== platform-defined parameters ============================== */

@@ -1973,6 +1974,17 @@ constexpr char C2_PARAMKEY_DRC_ALBUM_MODE[] = "coding.drc.album-mode";
        C2StreamDrcOutputLoudnessTuning;
constexpr char C2_PARAMKEY_DRC_OUTPUT_LOUDNESS[] = "output.drc.output-loudness";

/**
 * Audio frame size in samples.
 *
 * Audio encoders can expose this parameter to signal the desired audio frame
 * size that corresponds to a single coded access unit.
 * Default value is 0, meaning that the encoder accepts input buffers of any size.
 */
typedef C2StreamParam<C2Info, C2Uint32Value, kParamIndexAudioFrameSize>
        C2StreamAudioFrameSizeInfo;
constexpr char C2_PARAMKEY_AUDIO_FRAME_SIZE[] = "raw.audio-frame-size";

/* --------------------------------------- AAC components --------------------------------------- */

/**