diff options
author | Scott D Phillips <scott.d.phillips@intel.com> | 2016-06-15 11:25:23 -0700 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-06-15 20:50:20 +0200 |
commit | 57ee937b8cc4b7824e0a837fafb15e213197146c (patch) | |
tree | 3ab610562e9d9e83397646dac681b5fb1cde3010 | |
parent | ad9fcb938639c4384b42155dfbea85393bf73137 (diff) |
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
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_vp9.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c index 74f92d87..0443488f 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c @@ -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 */ |