Re: [FFmpeg-devel] [PATCH 2/2] swscale: add P010 input support

2016-01-07 Thread Michael Niedermayer
On Thu, Jan 07, 2016 at 12:11:22PM +0100, Hendrik Leppkes wrote: > --- > libswscale/input.c| 53 > +++ > libswscale/swscale_unscaled.c | 4 +++- > libswscale/utils.c| 2 ++ > 3 files changed, 58 insertions(+), 1 deletion(-) LGTM i

Re: [FFmpeg-devel] [PATCH 2/2] swscale: add P010 input support

2016-01-07 Thread wm4
On Thu, 7 Jan 2016 13:38:13 +0100 Hendrik Leppkes wrote: > On Thu, Jan 7, 2016 at 1:31 PM, Carl Eugen Hoyos wrote: > > Hendrik Leppkes gmail.com> writes: > > > >> Because that doesn't work. bits per raw sample is not > >> taken into account when pixel formats are negotiated > > > > But that

Re: [FFmpeg-devel] [PATCH 2/2] swscale: add P010 input support

2016-01-07 Thread Hendrik Leppkes
On Thu, Jan 7, 2016 at 1:11 PM, Carl Eugen Hoyos wrote: > Hendrik Leppkes gmail.com> writes: > >> Microsoft specifically described the format to alias >> to P016 with less precision for simplicity, however I >> opted to convert to "true" 10-bit in sws by shifting >> so format selection algorithms

Re: [FFmpeg-devel] [PATCH 2/2] swscale: add P010 input support

2016-01-07 Thread Hendrik Leppkes
On Thu, Jan 7, 2016 at 12:44 PM, Christophe Gisquet wrote: > Hi, > > 2016-01-07 12:11 GMT+01:00 Hendrik Leppkes : >> +static void p010LEToY_c(uint8_t *dst, const uint8_t *src, const uint8_t >> *unused1, >> +const uint8_t *unused2, int width, uint32_t *unused) >> +{ >> +

Re: [FFmpeg-devel] [PATCH 2/2] swscale: add P010 input support

2016-01-07 Thread Christophe Gisquet
Hi, 2016-01-07 12:11 GMT+01:00 Hendrik Leppkes : > +static void p010LEToY_c(uint8_t *dst, const uint8_t *src, const uint8_t > *unused1, > +const uint8_t *unused2, int width, uint32_t *unused) > +{ > +int i; > +for (i = 0; i < width; i++) { > +AV_WN16(dst +