/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
// Decode With Drops Example // ========================= // // This is an example utility which drops a series of frames, as specified // on the command line. This is useful for observing the error recovery // features of the codec. // // Usage // ----- // This example adds a single argument to the `simple_decoder` example, // which specifies the range or pattern of frames to drop. The parameter is // parsed as follows: // // Dropping A Range Of Frames // -------------------------- // To drop a range of frames, specify the starting frame and the ending // frame to drop, separated by a dash. The following command will drop // frames 5 through 10 (base 1). // // $ ./decode_with_drops in.ivf out.i420 5-10 // // // Dropping A Pattern Of Frames // ---------------------------- // To drop a pattern of frames, specify the number of frames to drop and // the number of frames after which to repeat the pattern, separated by // a forward-slash. The following command will drop 3 of 7 frames. // Specifically, it will decode 4 frames, then drop 3 frames, and then // repeat. // // $ ./decode_with_drops in.ivf out.i420 3/7 // // // Extra Variables // --------------- // This example maintains the pattern passed on the command line in the // `n`, `m`, and `is_range` variables: // // // Making The Drop Decision // ------------------------ // The example decides whether to drop the frame based on the current // frame number, immediately before decoding the frame.
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-04-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.