mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
decoder: vp9: Update comment about context resets
Clarify that vaapi context resets are never needed for vp9, but that ensure_context() needs called when the size increases so that new surfaces can be allocated. Signed-off-by: Scott D Phillips <scott.d.phillips@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=767474
This commit is contained in:
parent
ad9fcb9386
commit
57ee937b8c
1 changed files with 4 additions and 3 deletions
|
@ -600,9 +600,10 @@ parse_frame_header (GstVaapiDecoderVp9 * decoder, const guchar * buf,
|
|||
return get_status (result);
|
||||
|
||||
/* Unlike other decoders, vp9 decoder doesn't need to reset the
|
||||
* whole context and surfaces for each resolution change. context
|
||||
* reset only needed if resolution of any frame is greater than
|
||||
* what actullay configured. There are streams where a bigger
|
||||
* whole context and surfaces for each resolution change. Calling
|
||||
* ensure_context() again is only needed if the resolution of any frame
|
||||
* is greater than what was previously configured, so that new, larger
|
||||
* surfaces can be allocated. There are streams where a bigger
|
||||
* resolution set in ivf header or webm header but actual resolution
|
||||
* of all frames are less. Also it is possible to have inter-prediction
|
||||
* between these multi resolution frames */
|
||||
|
|
Loading…
Reference in a new issue