Re: [libav-devel] [PATCH] qsv/hevcdec: Load hw plugin by default on non-windows os
On 22/11/2017 02:55, Li, Zhong wrote: Ping? Is there any dependency to apply this patch? I can push it if Maxym is too busy. lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] qsv/hevcdec: Load hw plugin by default on non-windows os
Ping? Is there any dependency to apply this patch? > -Original Message- > From: libav-devel [mailto:libav-devel-boun...@libav.org] On Behalf Of > Maxym Dmytrychenko > Sent: Saturday, November 11, 2017 3:19 AM > To: libav development > Subject: Re: [libav-devel] [PATCH] qsv/hevcdec: Load hw plugin by default on > non-windows os > > agree, will commit it shortly > > On Fri, Nov 10, 2017 at 7:43 PM, Luca Barbato > wrote: > > > On 10/11/2017 09:03, Zhong Li wrote: > > > >> Software plugin is not available on Linux, Only works on Windows. > >> Similar changes have been applied to qsv hevc encoder by > >> b05128f3c953bd66483e697d60a2e7e45ee9cfa0. > >> > >> Signed-off-by: Zhong Li > >> --- > >> libavcodec/qsvdec_h2645.c | 8 +++- > >> 1 file changed, 7 insertions(+), 1 deletion(-) > >> > >> > > Sounds good :) > > > > lu > > > > ___ > > libav-devel mailing list > > libav-devel@libav.org > > https://lists.libav.org/mailman/listinfo/libav-devel > ___ > libav-devel mailing list > libav-devel@libav.org > https://lists.libav.org/mailman/listinfo/libav-devel ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] qsv/hevcdec: Load hw plugin by default on non-windows os
agree, will commit it shortly On Fri, Nov 10, 2017 at 7:43 PM, Luca Barbato wrote: > On 10/11/2017 09:03, Zhong Li wrote: > >> Software plugin is not available on Linux, Only works on Windows. >> Similar changes have been applied to qsv hevc encoder by >> b05128f3c953bd66483e697d60a2e7e45ee9cfa0. >> >> Signed-off-by: Zhong Li >> --- >> libavcodec/qsvdec_h2645.c | 8 +++- >> 1 file changed, 7 insertions(+), 1 deletion(-) >> >> > Sounds good :) > > lu > > ___ > libav-devel mailing list > libav-devel@libav.org > https://lists.libav.org/mailman/listinfo/libav-devel ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] qsv/hevcdec: Load hw plugin by default on non-windows os
On 10/11/2017 09:03, Zhong Li wrote: Software plugin is not available on Linux, Only works on Windows. Similar changes have been applied to qsv hevc encoder by b05128f3c953bd66483e697d60a2e7e45ee9cfa0. Signed-off-by: Zhong Li --- libavcodec/qsvdec_h2645.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) Sounds good :) lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
[libav-devel] [PATCH] qsv/hevcdec: Load hw plugin by default on non-windows os
Software plugin is not available on Linux, Only works on Windows. Similar changes have been applied to qsv hevc encoder by b05128f3c953bd66483e697d60a2e7e45ee9cfa0. Signed-off-by: Zhong Li --- libavcodec/qsvdec_h2645.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c index f95ef3e..a87e816 100644 --- a/libavcodec/qsvdec_h2645.c +++ b/libavcodec/qsvdec_h2645.c @@ -171,6 +171,12 @@ static void qsv_decode_flush(AVCodecContext *avctx) ff_qsv_decode_flush(avctx, &s->qsv); } +#if defined(_WIN32) +#define LOAD_PLUGIN_DEFAULT LOAD_PLUGIN_HEVC_SW +#else +#define LOAD_PLUGIN_DEFAULT LOAD_PLUGIN_HEVC_HW +#endif + #define OFFSET(x) offsetof(QSVH2645Context, x) #define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM @@ -178,7 +184,7 @@ static void qsv_decode_flush(AVCodecContext *avctx) static const AVOption hevc_options[] = { { "async_depth", "Internal parallelization depth, the higher the value the higher the latency.", OFFSET(qsv.async_depth), AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 0, INT_MAX, VD }, -{ "load_plugin", "A user plugin to load in an internal session", OFFSET(load_plugin), AV_OPT_TYPE_INT, { .i64 = LOAD_PLUGIN_HEVC_SW }, LOAD_PLUGIN_NONE, LOAD_PLUGIN_HEVC_HW, VD, "load_plugin" }, +{ "load_plugin", "A user plugin to load in an internal session", OFFSET(load_plugin), AV_OPT_TYPE_INT, { .i64 = LOAD_PLUGIN_DEFAULT }, LOAD_PLUGIN_NONE, LOAD_PLUGIN_HEVC_HW, VD, "load_plugin" }, { "none", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = LOAD_PLUGIN_NONE }, 0, 0, VD, "load_plugin" }, { "hevc_sw", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = LOAD_PLUGIN_HEVC_SW }, 0, 0, VD, "load_plugin" }, { "hevc_hw", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = LOAD_PLUGIN_HEVC_HW }, 0, 0, VD, "load_plugin" }, -- 1.8.3.1 ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel