Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add support for Screen Content Coding (SCC) extension
       [not found] <20200928082102.1312258-1-haihao.xiang@intel.com>
@ 2021-12-29  5:52 ` Xiang, Haihao
  0 siblings, 0 replies; only message in thread
From: Xiang, Haihao @ 2021-12-29  5:52 UTC (permalink / raw)
  To: ffmpeg-devel

> -----Original Message-----
> From: Xiang, Haihao <haihao.xiang@intel.com>
> Sent: Monday, September 28, 2020 16:21
> To: ffmpeg-devel@ffmpeg.org
> Cc: Xiang, Haihao <haihao.xiang@intel.com>
> Subject: [FFmpeg-devel][PATCH] lavc/qsvenc: add support for Screen Content
> Coding (SCC) extension
> 
> This patch adds support for SCC encoding on ICL+ platform
> 
> Sample pipeline:
> ffmpeg -init_hw_device qsv=qsv:hw -f lavfi -i testsrc -vf \
> "format=nv12,hwupload=extra_hw_frames=64,format=qsv" -c:v hevc_qsv \
> -profile:v scc -low_power 1 out.h265
> ---
>  libavcodec/qsvenc.c      | 3 +++
>  libavcodec/qsvenc_hevc.c | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
> index 1ed8f5d973..29750735e0 100644
> --- a/libavcodec/qsvenc.c
> +++ b/libavcodec/qsvenc.c
> @@ -69,6 +69,9 @@ static const struct {
>      { MFX_PROFILE_HEVC_MAINSP,                  "mainsp"                },
>      { MFX_PROFILE_HEVC_REXT,                    "rext"                  },
>  #endif
> +#if QSV_VERSION_ATLEAST(1, 32)
> +    { MFX_PROFILE_HEVC_SCC,                     "scc"                   },
> +#endif
>  };
> 
>  static const char *print_profile(mfxU16 profile)
> diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
> index 347f30655e..663f21439f 100644
> --- a/libavcodec/qsvenc_hevc.c
> +++ b/libavcodec/qsvenc_hevc.c
> @@ -241,6 +241,9 @@ static const AVOption options[] = {
>      { "main10",  NULL, 0, AV_OPT_TYPE_CONST, { .i64 =
> MFX_PROFILE_HEVC_MAIN10  }, INT_MIN, INT_MAX,     VE, "profile" },
>      { "mainsp",  NULL, 0, AV_OPT_TYPE_CONST, { .i64 =
> MFX_PROFILE_HEVC_MAINSP  }, INT_MIN, INT_MAX,     VE, "profile" },
>      { "rext",    NULL, 0, AV_OPT_TYPE_CONST, { .i64 =
> MFX_PROFILE_HEVC_REXT    }, INT_MIN, INT_MAX,     VE, "profile" },
> +#if QSV_VERSION_ATLEAST(1, 32)
> +    { "scc",     NULL, 0, AV_OPT_TYPE_CONST, { .i64 =
> MFX_PROFILE_HEVC_SCC     }, INT_MIN, INT_MAX,     VE, "profile" },
> +#endif
> 
>      { "gpb", "1: GPB (generalized P/B frame); 0: regular P frame",
> OFFSET(qsv.gpb), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, VE},
> 
> --

Will apply 

-Haihao

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-29  5:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200928082102.1312258-1-haihao.xiang@intel.com>
2021-12-29  5:52 ` [FFmpeg-devel] [PATCH] lavc/qsvenc: add support for Screen Content Coding (SCC) extension Xiang, Haihao

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git