Advertisement
Guest User

Untitled

a guest
Sep 29th, 2010
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.50 KB | None | 0 0
  1. /* x264_encoder_invalidate_reference:
  2.  *      An interactive error resilience tool, designed for use in a low-latency one-encoder-few-clients
  3.  *      system.  When the client has packet loss or otherwise incorrectly decodes a frame, the encoder
  4.  *      can be told with this command to "forget" the frame and all frames that depend on it, referencing
  5.  *      only frames that occurred before the loss.  This will force a keyframe if no frames are left to
  6.  *      reference after the aforementioned "forgetting".
  7.  *
  8.  *      It is strongly recommended to use a large i_dpb_size in this case, which allows the encoder to
  9.  *      keep around extra, older frames to fall back on in case more recent frames are all invalidated.
  10.  *      Unlike increasing i_frame_reference, this does not increase the number of frames used for motion
  11.  *      estimation and thus has no speed impact.  It is also recommended to set a very large keyframe
  12.  *      interval, so that keyframes are not used except as necessary for error recovery.
  13.  *
  14.  *      x264_encoder_invalidate_reference is not currently compatible with the use of B-frames or intra
  15.  *      refresh.
  16.  *
  17.  *      In multi-pass encoding, if x264_encoder_invalidate_reference is called differently in each pass,
  18.  *      behavior is undefined.
  19.  *
  20.  *      Should not be called during an x264_encoder_encode, but multiple calls can be made simultaneously.
  21.  *
  22.  *      Returns 0 on success, negative on failure. */
  23. int x264_encoder_invalidate_reference( x264_t *, int64_t pts );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement