// VP8 Set Reference Frame // ======================= // // This is an example demonstrating how to overwrite the VP8 encoder's // internal reference frame. In the sample we set the last frame to the // current frame. If this is done at a cut scene it will avoid a keyframe. // This technique could be used to bounce between two cameras. // // Note that the decoder would also have to set the reference frame to the // same value on the same frame, or the video will become corrupt. // // Usage // ----- // This example adds a single argument to the `simple_encoder` example, // which specifies the frame number to update the reference frame on. // The parameter is parsed as follows: // // // Extra Variables // --------------- // This example maintains the frame number passed on the command line // in the `update_frame_num` variable. // // // Configuration // ------------- // // The reference frame is updated on the frame specified on the command // line. // // Observing The Effects // --------------------- // Use the `simple_encoder` example to encode a sample with a cut scene. // Determine the frame number of the cut scene by looking for a generated // key-frame (indicated by a 'K'). Supply that frame number as an argument // to this example, and observe that no key-frame is generated.
res = vpx_codec_enc_config_default(encoder->codec_interface(), &cfg, 0); if (res)
die("Failed to get default codec config: %s", vpx_codec_err_to_string(res));
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.