Documentation
¶
Overview ¶
Package vp9test makes the VP9 frames libvpx codes none of, out of the ones it does, for tests of what reads and decodes them: frames that show a frame again, hidden intra-only frames, and key frames that code a frame context of their own.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Headers ¶
func Headers(t *testing.T, packets [][]byte) [][]vp9.FrameHeader
Headers reads the headers of the frames in each of packets, a stream from its first key frame.
func KeyContext ¶
KeyContext is key, a shown profile 0 key frame, coding context for its frame_context_idx: a field libvpx writes 0 in and reads nothing from, a key frame decoding from context 0 and saving to it whatever the field says.
func ShowExisting ¶
ShowExisting is a profile 0 frame that shows the frame in reference frame slot: a frame marker, the profile and show_existing_frame, then the slot.
Types ¶
type IntraOnly ¶
IntraOnly is the header of a hidden intra-only frame made of a key frame: whether it is error resilient, which resets every frame context; else its reset_frame_context; its refresh_frame_flags; and the frame_context_idx it codes, which is the context a reset_frame_context of 2 resets and no more: the frame decodes from context 0 and saves to it, as every intra frame does.
func (IntraOnly) Of ¶
Of turns key, a shown profile 0 key frame, into the hidden intra-only frame to says, which decodes to the key frame's picture where frame context 0 is the default one when it decodes: an intra-only frame's compressed header and tiles are coded as a key frame's, and of the uncompressed header only what comes before the frame size differs. A key frame that is error resilient codes neither refresh_frame_context nor frame_parallel_decoding_mode, which an intra-only frame that is not takes as that mode implies them.