[libav-devel] [RFC PATCH 3/4] lavc: add Intel libmfx-based MPEG2 encoder

Luca Barbato lu_zero at gentoo.org
Tue Jun 30 20:39:36 CEST 2015


On 30/06/15 20:24, Anton Khirnov wrote:
> ---
>  configure                 |   1 +
>  libavcodec/Makefile       |   1 +
>  libavcodec/allcodecs.c    |   1 +
>  libavcodec/qsv.c          |   2 +
>  libavcodec/qsvenc.c       |  10 ++--
>  libavcodec/qsvenc_mpeg2.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 128 insertions(+), 4 deletions(-)
>  create mode 100644 libavcodec/qsvenc_mpeg2.c
> 
> diff --git a/configure b/configure
> index 6ad813b..f9e46b4 100755
> --- a/configure
> +++ b/configure
> @@ -1879,6 +1879,7 @@ mpeg1video_decoder_select="error_resilience mpeg_er mpegvideo"
>  mpeg1video_encoder_select="aandcttables mpegvideoenc"
>  mpeg2video_decoder_select="error_resilience mpeg_er mpegvideo"
>  mpeg2video_encoder_select="aandcttables mpegvideoenc"
> +mpeg2_qsv_encoder_select="qsvenc"
>  mpeg4_decoder_select="h263_decoder mpeg4video_parser"
>  mpeg4_encoder_select="h263_encoder"
>  msmpeg4v1_decoder_select="h263_decoder"
> diff --git a/libavcodec/Makefile b/libavcodec/Makefile
> index a593ca5..c751729 100644
> --- a/libavcodec/Makefile
> +++ b/libavcodec/Makefile
> @@ -286,6 +286,7 @@ OBJS-$(CONFIG_MPEG1VIDEO_DECODER)      += mpeg12dec.o mpeg12.o mpeg12data.o
>  OBJS-$(CONFIG_MPEG1VIDEO_ENCODER)      += mpeg12enc.o mpeg12.o
>  OBJS-$(CONFIG_MPEG2VIDEO_DECODER)      += mpeg12dec.o mpeg12.o mpeg12data.o
>  OBJS-$(CONFIG_MPEG2VIDEO_ENCODER)      += mpeg12enc.o mpeg12.o
> +OBJS-$(CONFIG_MPEG2_QSV_ENCODER)       += qsvenc_mpeg2.o
>  OBJS-$(CONFIG_MPEG4_DECODER)           += xvididct.o
>  OBJS-$(CONFIG_MSMPEG4V1_DECODER)       += msmpeg4dec.o msmpeg4.o msmpeg4data.o
>  OBJS-$(CONFIG_MSMPEG4V2_DECODER)       += msmpeg4dec.o msmpeg4.o msmpeg4data.o
> diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
> index 329bf17..223c994 100644
> --- a/libavcodec/allcodecs.c
> +++ b/libavcodec/allcodecs.c
> @@ -473,6 +473,7 @@ void avcodec_register_all(void)
>       * above is available */
>      REGISTER_ENCODER(LIBOPENH264,       libopenh264);
>      REGISTER_ENCODER(H264_QSV,          h264_qsv);
> +    REGISTER_ENCODER(MPEG2_QSV,         mpeg2_qsv);
>  

Looks Ok. I guess mpeg2 is fine instead of mpeg2video.

lu



More information about the libav-devel mailing list