Enum Vp8References
The references a VP8 inter frame may predict from.
[Flags]
public enum Vp8References
Fields
All = Last | Golden | AlternateAll three.
Alternate = 4The alternate frame.
Golden = 2The golden frame.
Last = 1The last frame.
None = 0None: every macroblock is intra.
Examples
// 4:2:0 pictures of one size, here decoded from a clip; Egami.Video writes WebM and IVF and plans the frames for you.
using Vp8StreamEncoder encoder = new(pictures[0].Width, pictures[0].Height);
for (int i = 0; i < pictures.Count; i++)
{
Vp8FramePlan plan = new()
{
KeyFrame = i % 30 == 0, // a key frame a second at 30 frames a second
RefreshGolden = i % 10 == 0, // and a golden frame to fall back on every tenth
Quality = 70,
};
Vp8EncodedFrame frame = encoder.Encode(pictures[i], plan);
packets.Add(frame.Data.ToArray()); // a WebM block or an IVF frame; frame.LumaPsnr says how close it came
}