Re: [libav-devel] [PATCH 3/3] pthread_frame: do not run hwaccel decoding asynchronously unless it's safe

2016-12-07 Thread Anton Khirnov
Quoting Diego Biurrun (2016-12-06 23:20:45) > On Sat, Dec 03, 2016 at 05:34:34PM +0100, Anton Khirnov wrote: > > --- /dev/null > > +++ b/libavcodec/hwaccel.h > > @@ -0,0 +1,24 @@ > > +#ifndef AVCODEC_HWACCEL_H > > +#define AVCODEC_HWACCEL_H > > + > > +#define HWACCEL_CAP_ASYNC_SAFE (1 << 0) >

Re: [libav-devel] [PATCH 3/3] pthread_frame: do not run hwaccel decoding asynchronously unless it's safe

2016-12-06 Thread Diego Biurrun
On Sat, Dec 03, 2016 at 05:34:34PM +0100, Anton Khirnov wrote: > --- /dev/null > +++ b/libavcodec/hwaccel.h > @@ -0,0 +1,24 @@ > +#ifndef AVCODEC_HWACCEL_H > +#define AVCODEC_HWACCEL_H > + > +#define HWACCEL_CAP_ASYNC_SAFE (1 << 0) > + > +#endif /* AVCODEC_HWACCEL_H */ Do you plan to add

Re: [libav-devel] [PATCH 3/3] pthread_frame: do not run hwaccel decoding asynchronously unless it's safe

2016-12-06 Thread Janne Grunau
On 2016-12-03 17:34:34 +0100, Anton Khirnov wrote: > Certain hardware decoding APIs are often not thread-safe, so having the user > access decoded hardware surfaces while the decoder is running in another > thread can cause failures (this is mainly known to happen with DXVA2). > > For such

[libav-devel] [PATCH 3/3] pthread_frame: do not run hwaccel decoding asynchronously unless it's safe

2016-12-03 Thread Anton Khirnov
Certain hardware decoding APIs are often not thread-safe, so having the user access decoded hardware surfaces while the decoder is running in another thread can cause failures (this is mainly known to happen with DXVA2). For such hwaccels, only allow the decoding thread to run while the user is