[Spice-devel] [spice-gtk] Add support for VP9

Victor Toso victortoso at redhat.com
Tue Jan 31 07:16:32 UTC 2017


Hi,

On Wed, Jan 04, 2017 at 11:46:21AM +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

Looks fine!
Acked-by: Victor Toso <victortoso at redhat.com>

> ---
>  configure.ac              | 2 +-
>  src/channel-display-gst.c | 2 ++
>  src/channel-display.c     | 6 ++++++
>  3 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index f3e7f8d..aa60e91 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -69,7 +69,7 @@ AC_CHECK_LIBM
>  AC_SUBST(LIBM)
>  
>  AC_CONFIG_SUBDIRS([spice-common])
> -PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.12.12])
> +PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.12.13])
>  
>  COMMON_CFLAGS='-I${top_builddir}/spice-common/ -I${top_srcdir}/spice-common/ ${SPICE_PROTOCOL_CFLAGS}'
>  AC_SUBST(COMMON_CFLAGS)
> diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
> index f52299f..6ace86f 100644
> --- a/src/channel-display-gst.c
> +++ b/src/channel-display-gst.c
> @@ -77,6 +77,8 @@ static struct {
>       */
>      { "h264parse ! avdec_h264", "" },
>  
> +    /* SPICE_VIDEO_CODEC_TYPE_VP9 */
> +    { "vp9dec", "caps=video/x-vp9" },
>  };
>  
>  G_STATIC_ASSERT(G_N_ELEMENTS(gst_opts) == SPICE_VIDEO_CODEC_TYPE_ENUM_END);
> diff --git a/src/channel-display.c b/src/channel-display.c
> index 709b3d2..7506863 100644
> --- a/src/channel-display.c
> +++ b/src/channel-display.c
> @@ -736,6 +736,12 @@ static void spice_display_channel_reset_capabilities(SpiceChannel *channel)
>      } else {
>          SPICE_DEBUG("GStreamer does not support the h264 codec");
>      }
> +    if (gstvideo_has_codec(SPICE_VIDEO_CODEC_TYPE_VP9)) {
> +        spice_channel_set_capability(SPICE_CHANNEL(channel),
> +                                     SPICE_DISPLAY_CAP_CODEC_VP9);
> +    } else {
> +        SPICE_DEBUG("GStreamer does not support the vp9 codec");
> +    }
>  }
>  
>  static void destroy_surface(gpointer data)
> -- 
> 2.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170131/e9a91bee/attachment.sig>


More information about the Spice-devel mailing list