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

Commit b424c09f authored by Lajos Molnar's avatar Lajos Molnar Committed by Android (Google) Code Review
Browse files

Merge "codec2: add CORRECTED and CORRUPT flags to work item" into sc-dev

parents 4450fca8 af37a391
Loading
Loading
Loading
Loading
+27 −2
Original line number Diff line number Diff line
@@ -144,11 +144,36 @@ struct C2FrameData {
         * component for the input frame.
         */
        FLAG_INCOMPLETE = (1 << 3),
        /**
         * This frame has been corrected due to a bitstream error. This is a hint, and in most cases
         * can be ignored. This flag can be set by components on their output to signal the clients
         * that errors may be present but the frame should be used nonetheless. It can also be set
         * by clients to signal that the input frame has been corrected, but nonetheless should be
         * processed.
         */
        FLAG_CORRECTED = (1 << 4),
        /**
         * This frame is corrupt due to a bitstream error. This is similar to FLAG_CORRECTED,
         * with the exception that this is a hint that downstream components should not process this
         * frame.
         * <p>
         * If set on the input by the client, the input is likely non-processable and should be
         * handled similarly to uncorrectable bitstream error detected. For components that operat
         * on whole access units, this flag can be propagated to the output. Other components should
         * aim to detect access unit boundaries to determine if any part of the input frame can be
         * processed.
         * <p>
         * If set by the component, this signals to the client that the output is non-usable -
         * including possibly the metadata that may also be non-usable; -- however, the component
         * will try to recover on successive input frames.
         */
        FLAG_CORRUPT = (1 << 5),

        /**
         * This frame contains only codec-specific configuration data, and no actual access unit.
         *
         * \deprecated pass codec configuration with using the \todo codec-specific configuration
         * info together with the access unit.
         * \deprecated pass codec configuration with using the C2InitData info parameter together
         *             with the access unit.
         */
        FLAG_CODEC_CONFIG  = (1u << 31),
    };