Re: [FFmpeg-devel] [PATCH 08/14] avcodec: add AV_HWACCEL_FLAG_ALLOW_SOFTWARE
On Fri, 15 Dec 2017 15:18:13 +0800 Jun Zhaowrote: > On 2017/12/15 15:03, wbse...@gmail.com wrote: > > From: wang-bin > > > > a hw decoder may have software or hybrid implementation, for example > > videotoolbox hevc. > > the performance may be better than ffmpeg sw decoder. > It's confused, and I think wm4 give a other patch for this case. you can > refer to > https://patchwork.ffmpeg.org/patch/6773/ My patch was just static metadata, so this is different. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH 08/14] avcodec: add AV_HWACCEL_FLAG_ALLOW_SOFTWARE
On 2017/12/15 15:03, wbse...@gmail.com wrote: > From: wang-bin> > a hw decoder may have software or hybrid implementation, for example > videotoolbox hevc. > the performance may be better than ffmpeg sw decoder. It's confused, and I think wm4 give a other patch for this case. you can refer to https://patchwork.ffmpeg.org/patch/6773/ > --- > libavcodec/avcodec.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index ce089b7c4a..6d1f5ee532 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h > @@ -3725,6 +3725,10 @@ typedef struct AVHWAccel { > */ > #define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2) > > +/** > + * Hardware acceleration can use it's software implementation. > + */ > +#define AV_HWACCEL_FLAG_ALLOW_SOFTWARE (1 << 3) > /** > * @} > */ ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH 08/14] avcodec: add AV_HWACCEL_FLAG_ALLOW_SOFTWARE
From: wang-bina hw decoder may have software or hybrid implementation, for example videotoolbox hevc. the performance may be better than ffmpeg sw decoder. --- libavcodec/avcodec.h | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ce089b7c4a..6d1f5ee532 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3725,6 +3725,10 @@ typedef struct AVHWAccel { */ #define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2) +/** + * Hardware acceleration can use it's software implementation. + */ +#define AV_HWACCEL_FLAG_ALLOW_SOFTWARE (1 << 3) /** * @} */ -- 2.15.1 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel