Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-28 Thread Brian Matherly
Sure the 3rd option is much simpler, and since MLT doesn't currently support > 8bit buffers it won't make much difference in the result. A simple patch is in my github's fork: https://github.com/j-b-m/mlt/commit/d8c723130e34da7680b50b47bc31a927ef6414cd It supports both missin

Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-28 Thread Dan Dennedy
On Wed, Mar 28, 2018 at 12:15 AM Jean-Baptiste Mardelle wrote: > On Monday, March 26, 2018 3:44:09 PM CEST, Brian Matherly wrote: > > On 3/26/2018 1:49 AM, Jean-Baptiste Mardelle wrote: > >> On 23.03.2018 18:42, Dan Dennedy wrote: ... > > Hi, > > > I think you have a few options: > > > > 1) Creat

Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-28 Thread Jean-Baptiste Mardelle
On Monday, March 26, 2018 3:44:09 PM CEST, Brian Matherly wrote: On 3/26/2018 1:49 AM, Jean-Baptiste Mardelle wrote: On 23.03.2018 18:42, Dan Dennedy wrote: ... Hi, I think you have a few options: 1) Create a new image type in MLT: mlt_image_yuva444p16 I do not recommend this because it wou

Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-26 Thread Brian Matherly
On 3/26/2018 1:49 AM, Jean-Baptiste Mardelle wrote: On 23.03.2018 18:42, Dan Dennedy wrote: Do not forget to check libavutil version when adding more pixfmts. One more question since I am not very familiar with the avformat / alpha pipeline. The AV_PIX_FMT_YUVA444P10LE uses 10bits for each

Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-25 Thread Jean-Baptiste Mardelle
On 23.03.2018 18:42, Dan Dennedy wrote: Do not forget to check libavutil version when adding more pixfmts. One more question since I am not very familiar with the avformat / alpha pipeline. The AV_PIX_FMT_YUVA444P10LE uses 10bits for each chanel. So I cannot easily create the alpha buffer li

Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-23 Thread Dan Dennedy
Do not forget to check libavutil version when adding more pixfmts. On Fri, Mar 23, 2018 at 6:31 AM Brian Matherly wrote: > > On 3/23/2018 2:47 AM, Jean-Baptiste Mardelle wrote: > > Hi all, > > > > In order to optimize performance, in the qtblend transition (in the qt > > module), I try to detec

Re: [Mlt-devel] Detecting alpha in avformat producer

2018-03-23 Thread Brian Matherly
On 3/23/2018 2:47 AM, Jean-Baptiste Mardelle wrote: Hi all, In order to optimize performance, in the qtblend transition (in the qt module), I try to detect if the top frame in the transition has transparency, and if it doesn't, instead of performing the transition I just return the top frame

[Mlt-devel] Detecting alpha in avformat producer

2018-03-23 Thread Jean-Baptiste Mardelle
Hi all, In order to optimize performance, in the qtblend transition (in the qt module), I try to detect if the top frame in the transition has transparency, and if it doesn't, instead of performing the transition I just return the top frame. However currently, to check if a frame has transpa