Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-12-14 Thread Michael Niedermayer
On Wed, Dec 14, 2016 at 08:46:28AM +0100, Paul B Mahol wrote: > On 12/14/16, Michael Niedermayer wrote: > > On Tue, Dec 13, 2016 at 10:23:48PM +0100, Martin Vignali wrote: > >> 2016-11-24 21:35 GMT+01:00 Martin Vignali : > >> > >> > Hello > >> > > >> > New patchs in attach > >> > > >> > I changed

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-12-13 Thread Paul B Mahol
On 12/14/16, Michael Niedermayer wrote: > On Tue, Dec 13, 2016 at 10:23:48PM +0100, Martin Vignali wrote: >> 2016-11-24 21:35 GMT+01:00 Martin Vignali : >> >> > Hello >> > >> > New patchs in attach >> > >> > I changed the dimensions check, the check is now : >> > --

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-12-13 Thread Michael Niedermayer
On Tue, Dec 13, 2016 at 10:23:48PM +0100, Martin Vignali wrote: > 2016-11-24 21:35 GMT+01:00 Martin Vignali : > > > Hello > > > > New patchs in attach > > > > I changed the dimensions check, the check is now : > > > > if ((s->height > 3) && (s->avctx->s

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-12-13 Thread Martin Vignali
2016-11-24 21:35 GMT+01:00 Martin Vignali : > Hello > > New patchs in attach > > I changed the dimensions check, the check is now : > > if ((s->height > 3) && (s->avctx->strict_std_compliance > > FF_COMPLIANCE_EXPERIMENTAL)) { > av_log(s->avctx,

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-25 Thread Martin Vignali
Hello > > If you want to maintain this code, then please add yourself to the > MAINTAINER file too > I'm not very familiar with git. So it's probably not a good idea to be a maintainer. But i can take a look for patch on psd (and exr) if need. Martin _

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-24 Thread Michael Niedermayer
On Thu, Nov 24, 2016 at 09:35:42PM +0100, Martin Vignali wrote: > Hello > > New patchs in attach > > I changed the dimensions check, the check is now : > > if ((s->height > 3) && (s->avctx->strict_std_compliance > > FF_COMPLIANCE_EXPERIMENTAL)) { >

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-24 Thread Martin Vignali
Hello New patchs in attach I changed the dimensions check, the check is now : if ((s->height > 3) && (s->avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL)) { av_log(s->avctx, AV_LOG_ERROR, "Height > 3 is experimental

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Michael Niedermayer
On Tue, Nov 22, 2016 at 12:15:16AM +0100, Martin Vignali wrote: > Hello, > > 2016-11-21 23:16 GMT+01:00 Moritz Barsnick : > > > On Mon, Nov 21, 2016 at 21:44:55 +0100, Martin Vignali wrote: > > > +avpriv_request_sample(s->avctx, "ZIP without predictor > > compression"); > > > +ret

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Lou Logan
On Tue, 22 Nov 2016 01:21:08 +0100, Carl Eugen Hoyos wrote: > If an application writes psd files with width or height > 3 (or, > horribile dictu, Adobe changes the limits), we want to decode > such images (unless strict strict was set). We shouldn't be encouraging theoretical random broken cr

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Carl Eugen Hoyos
2016-11-22 0:57 GMT+01:00 Andreas Cadhalpun : > On 20.11.2016 17:57, Martin Vignali wrote: +s->height = bytestream2_get_be32(&s->gb); + +if ((s->height < 1) || (s->height > 3)) { >>> >>> Why 3? >>> ff_set_dimensions already checks for sane dimensions. >>> >> >> Follo

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Andreas Cadhalpun
On 20.11.2016 17:57, Martin Vignali wrote: >>> Support uncompress and rle compression in Image Data Section. >> ^ >> decompression >> > > Not sure i understand, do you mean : > Support uncompress and rle decompression in Image Data Section. > ? > Because currently, the psd reader, can ma

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Martin Vignali
Hello, 2016-11-21 23:16 GMT+01:00 Moritz Barsnick : > On Mon, Nov 21, 2016 at 21:44:55 +0100, Martin Vignali wrote: > > +avpriv_request_sample(s->avctx, "ZIP without predictor > compression"); > > +return AVERROR_PATCHWELCOME; > > +break; > > +case 3: > > +avpr

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Moritz Barsnick
On Mon, Nov 21, 2016 at 21:44:55 +0100, Martin Vignali wrote: > +avpriv_request_sample(s->avctx, "ZIP without predictor compression"); > +return AVERROR_PATCHWELCOME; > +break; > +case 3: > +avpriv_request_sample(s->avctx, "ZIP with predictor compression"); > +

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Rostislav Pehlivanov
On 21 November 2016 at 21:47, Ronald S. Bultje wrote: > Hi, > > On Mon, Nov 21, 2016 at 4:40 PM, Rostislav Pehlivanov > > wrote: > > > On 21 November 2016 at 20:44, Martin Vignali > > wrote: > > > > > Hello, > > > > > > New patchs in attach. > > > Correction have been made followings comments f

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Ronald S. Bultje
Hi, On Mon, Nov 21, 2016 at 4:40 PM, Rostislav Pehlivanov wrote: > On 21 November 2016 at 20:44, Martin Vignali > wrote: > > > Hello, > > > > New patchs in attach. > > Correction have been made followings comments from Andreas and Carl. > > > > @Rotislav : thanks for your answer. > > > > Martin

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Rostislav Pehlivanov
On 21 November 2016 at 20:44, Martin Vignali wrote: > Hello, > > New patchs in attach. > Correction have been made followings comments from Andreas and Carl. > > @Rotislav : thanks for your answer. > > Martin > > ___ > ffmpeg-devel mailing list > ffmpeg

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Martin Vignali
Hello, New patchs in attach. Correction have been made followings comments from Andreas and Carl. @Rotislav : thanks for your answer. Martin From d923d4e8031fae4fa87cab39b431d055d2744ffe Mon Sep 17 00:00:00 2001 From: Martin Vignali Date: Mon, 21 Nov 2016 21:39:07 +0100 Subject: [PATCH 1/2] lib

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Nicolas George
Le primidi 1er frimaire, an CCXXV, wm4 a écrit : > I do not understand this. Please explain why requesting features is > against policy or not useful. Please stop your passive-aggressive flame bait. signature.asc Description: Digital signature ___ ffmp

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread wm4
On Mon, 21 Nov 2016 13:08:37 +0100 Carl Eugen Hoyos wrote: > 2016-11-21 13:06 GMT+01:00 wm4 : > > On Mon, 21 Nov 2016 12:48:31 +0100 > > Carl Eugen Hoyos wrote: > > > >> 2016-11-21 12:04 GMT+01:00 wm4 : > >> > On Mon, 21 Nov 2016 07:36:44 + > >> > >> > Can we get support for .doc and

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Carl Eugen Hoyos
2016-11-21 13:06 GMT+01:00 wm4 : > On Mon, 21 Nov 2016 12:48:31 +0100 > Carl Eugen Hoyos wrote: > >> 2016-11-21 12:04 GMT+01:00 wm4 : >> > On Mon, 21 Nov 2016 07:36:44 + >> >> > Can we get support for .doc and .html too? I think these would be great >> > features. >> >> Maybe such comments are

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread wm4
On Mon, 21 Nov 2016 12:48:31 +0100 Carl Eugen Hoyos wrote: > 2016-11-21 12:04 GMT+01:00 wm4 : > > On Mon, 21 Nov 2016 07:36:44 + > > > Can we get support for .doc and .html too? I think these would be great > > features. > > Maybe such comments are not against our policy (that you reque

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread Carl Eugen Hoyos
2016-11-21 12:04 GMT+01:00 wm4 : > On Mon, 21 Nov 2016 07:36:44 + > Can we get support for .doc and .html too? I think these would be great > features. Maybe such comments are not against our policy (that you requested so much), in any case they are not useful. Carl Eugen ___

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-21 Thread wm4
On Mon, 21 Nov 2016 07:36:44 + Rostislav Pehlivanov wrote: > On 20 November 2016 at 17:05, Kieran Kunhya wrote: > > > I object to this patch for the reasons Rostislav outlined.. > > > > Kieran > > ___ > > ffmpeg-devel mailing list > > ffmpeg-devel

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Rostislav Pehlivanov
On 20 November 2016 at 17:05, Kieran Kunhya wrote: > I object to this patch for the reasons Rostislav outlined.. > > Kieran > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > I actually don't

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Carl Eugen Hoyos
2016-11-20 18:05 GMT+01:00 Kieran Kunhya : > I object to this patch for the reasons Rostislav outlined.. Since this version of the decoder does not only support uncompressed images, I don't think the "reasons" are still valid. Iirc, FFmpeg does not support all features of practically every standa

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Carl Eugen Hoyos
2016-11-20 18:04 GMT+01:00 Martin Vignali : >> >> > I doesn't find a planar, for YA, so there is now two way to store data >> > one for YA, and one for Gray and GBR. >> >> Sorry, I don't understand this sentence... > > Not sure i understand what is your question. > I use planar for RGB and Gray, bu

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Martin Vignali
> However, all the rle samples seem to not decode entirely correct, instead > containing blue/white rectangular areas. > > > Sorry, forget to answer to that. The white/blue rect have been add by me to the sample file, in order to "enable" the rle compression of photoshop. So i think, the conversion

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Martin Vignali
Hello, 2016-11-20 18:05 GMT+01:00 Kieran Kunhya : > I object to this patch for the reasons Rostislav outlined.. > Thanks for saying this now. I answer to Rotislav in July. No answer from him from this moment, and the answers from other people, doesn't seems to go in the same way. Martin

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Martin Vignali
> > > I doesn't find a planar, for YA, so there is now two way to store data > > one for YA, and one for Gray and GBR. > > Sorry, I don't understand this sentence... > Not sure i understand what is your question. I use planar for RGB and Gray, bu for YA, i doesn't find a planar something like YAP

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Kieran Kunhya
I object to this patch for the reasons Rostislav outlined.. Kieran ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Martin Vignali
> > Subject: [PATCH 1/2] libavcodec : add decoder for Photoshop PSD image > file. > > ^ > image file*s* and no dot at the end > > > Decode the Image Data Section (who contain merge picture). > ^ > (which contains merged pictures) > > > Support RGB/A and Grayscale/

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-20 Thread Carl Eugen Hoyos
2016-11-18 18:27 GMT+01:00 Martin Vignali : >> Did you see AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_GBRP16 >> and AV_PIX_FMT_GBRAP16? >> > > New patch in attach use AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, > AV_PIX_FMT_GBRP16BE > and AV_PIX_FMT_GBRAP16BE for RGB mode > I doesn't find a planar, for

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-19 Thread Andreas Cadhalpun
On 18.11.2016 18:27, Martin Vignali wrote: > From c41e6c79ed42478a1658c8922d19c832d3a89424 Mon Sep 17 00:00:00 2001 > From: Martin Vignali > Date: Fri, 18 Nov 2016 18:18:20 +0100 > Subject: [PATCH 1/2] libavcodec : add decoder for Photoshop PSD image file.

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-18 Thread Martin Vignali
> > Can you share a few small samples? > I'd like to fuzz test this decoder a bit. > > You can find sample here : https://we.tl/BHKIQCDZZm Martin ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-18 Thread Andreas Cadhalpun
On 18.11.2016 18:27, Martin Vignali wrote: > From c41e6c79ed42478a1658c8922d19c832d3a89424 Mon Sep 17 00:00:00 2001 > From: Martin Vignali > Date: Fri, 18 Nov 2016 18:18:20 +0100 > Subject: [PATCH 1/2] libavcodec : add decoder for Photoshop PSD image file. > > Decode the Image Data Section (who c

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-11-18 Thread Martin Vignali
Hello, Did you see AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_GBRP16 > and AV_PIX_FMT_GBRAP16? > New patch in attach use AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_GBRP16BE and AV_PIX_FMT_GBRAP16BE for RGB mode I doesn't find a planar, for YA, so there is now two way to store data one for

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-10-24 Thread Carl Eugen Hoyos
2016-10-24 22:21 GMT+02:00 Martin Vignali : > Hello, > > In attach new patchs. > /* reorganize uncompress data. Each channel is stored one after the other */ (Sorry if I misread the code.) Did you see AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_GBRP16 and AV_PIX_FMT_GBRAP16? And the more I thin

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-10-24 Thread Martin Vignali
Hello, In attach new patchs. I tested with zzuf using zzuf -c -s0:1 -r0.01 ./ffmpeg -i inFile -f null - on one sample and with zzuf -c -s0:5000 -r0.01 ./ffmpeg -i inFile -f null on 10 others samples Martin From 37a7ee0fb3b32336c5376f85f1caeafb03f9c0e5 Mon Sep 17 00:00:00 2001 From: Mart

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-08-06 Thread Michael Niedermayer
On Fri, Aug 05, 2016 at 01:05:38PM +0200, Martin Vignali wrote: [...] > > > > did you test this code with a fuzzer ? > > > > No i didn't know how to do that. there are many fuzzers, an older one is: zzuf -c -s0: -r0.01 ./ffmpeg -i someinputfile -f null - see the zzuf manual page for mor inform

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-08-05 Thread Martin Vignali
> > > > +static int decode_header(PSDContext * s) > > +{ > > +int signature, version, color_mode, len_section, compression; > > +int ret = 0; > > + > > +if (bytestream2_get_bytes_left(&s->gb) < 30) {/* File header > section + color map data section length */ > > +av_log(s->avctx

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-08-05 Thread Michael Niedermayer
On Thu, Aug 04, 2016 at 05:00:27PM +0200, Martin Vignali wrote: > > > > I think you should fail probe with less than 26 bytes > > or are there smaller files that can be valid ? > > > > > > Fix > > > > > this is not based on git master > > > > New patch in attach > > Martin [...] > +static int

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-08-04 Thread Martin Vignali
> > I think you should fail probe with less than 26 bytes > or are there smaller files that can be valid ? > > > Fix > > this is not based on git master > New patch in attach Martin From 7af7660813e2abe7174d12fef80f9198ee612192 Mon Sep 17 00:00:00 2001 From: Martin Vignali Date: Thu, 4 Aug 2016

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-08-02 Thread Michael Niedermayer
On Tue, Jul 26, 2016 at 03:07:37PM +0200, Martin Vignali wrote: > Sorry, forgot one out of array issue in the previous patch > > Correct patch in attach > > Martin > Makefile |1 + > allformats.c |1 + > img2dec.c| 33 + > 3 files changed, 35 in

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-26 Thread Martin Vignali
Sorry, forgot one out of array issue in the previous patch Correct patch in attach Martin From 99c60ace42f29b681fc8e5729f4b0081a204cfe5 Mon Sep 17 00:00:00 2001 From: Martin Vignali Date: Tue, 26 Jul 2016 15:05:57 +0200 Subject: [PATCH 1/2] libavformat : add Photoshop PSD file. --- libavformat

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-25 Thread Martin Vignali
2016-07-25 2:46 GMT+02:00 Michael Niedermayer : > On Sun, Jul 24, 2016 at 03:21:00PM +0200, Martin Vignali wrote: > > > breaks fate > > > > > > make: *** [fate-filter-metadata-ebur128] Error 1 > > > --- - 2016-07-23 18:50:11.633752058 +0200 > > > +++ tests/data/fate/probe-format-roundup14142

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Michael Niedermayer
On Sun, Jul 24, 2016 at 03:21:00PM +0200, Martin Vignali wrote: > > breaks fate > > > > make: *** [fate-filter-metadata-ebur128] Error 1 > > --- - 2016-07-23 18:50:11.633752058 +0200 > > +++ tests/data/fate/probe-format-roundup14142016-07-23 > > 18:50:10.913635588 +0200 > > @@ -1 +1 @@ > > -m

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Martin Vignali
2016-07-24 16:36 GMT+02:00 Moritz Barsnick : > On Sun, Jul 24, 2016 at 15:21:00 +0200, Martin Vignali wrote: > > Subject: [PATCH] libavcodec : add decoder for .psd image file. > [...] > > +- Psd Decoder > [...] > > +@item PSD @tab @tab X > > +@tab Photoshop > [...] > > +.lon

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Moritz Barsnick
On Sun, Jul 24, 2016 at 15:21:00 +0200, Martin Vignali wrote: > Subject: [PATCH] libavcodec : add decoder for .psd image file. [...] > +- Psd Decoder [...] > +@item PSD @tab @tab X > +@tab Photoshop [...] > +.long_name = NULL_IF_CONFIG_SMALL("Photoshop file"), ".psd", "psd",

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-24 Thread Martin Vignali
> breaks fate > > make: *** [fate-filter-metadata-ebur128] Error 1 > --- - 2016-07-23 18:50:11.633752058 +0200 > +++ tests/data/fate/probe-format-roundup14142016-07-23 > 18:50:10.913635588 +0200 > @@ -1 +1 @@ > -mpeg > +psd_pipe > Test probe-format-roundup1414 failed. Look at > tests/data/fat

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-23 Thread Michael Niedermayer
On Sat, Jul 23, 2016 at 04:37:19PM +0200, Martin Vignali wrote: > Hello, > > New patch in attach. > > - add support for RLE compression (who can be use by Photoshop and After > Effects) > > RLE samples can be found here : > https://we.tl/LCQLqwuvZ4 > > - fix trouble with not even width. > - mod

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-23 Thread Martin Vignali
Hello, New patch in attach. - add support for RLE compression (who can be use by Photoshop and After Effects) RLE samples can be found here : https://we.tl/LCQLqwuvZ4 - fix trouble with not even width. - modification of the probe function, but i'm not sure of mine for this - cosmetics fix. Co

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Thomas Volkert
On 09.07.2016 19:37, Martin Vignali wrote: You're right, this is a very complex file format, with lot of features. indeed.. But i disagree, with the idea, that this decoder have no interest. The "useful question", highly depend of the point of view. I write this decoder, because i sometime nee

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Martin Vignali
Thanks for your comments @James Almer : MKTAG, is maybe more comprehensive, than the 32i value. Modify locally @Carl Eugen Hoyos : > > +{ AV_CODEC_ID_EXR, MKTAG('p', 's', 'd', ' ') }, /* Psd */ > > What produces such files? > I think i do a mistake here. Remove locally > psd_probe(

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Paul B Mahol
On 7/9/16, Rostislav Pehlivanov wrote: > On 9 July 2016 at 16:29, Martin Vignali wrote: > >> Hello, >> >> In attach patch to add decoding of .psd file (Photoshop file). >> >> PSD file can contain merge layers data at the end of the file (Image Data >> Section) >> >> This patch add support for thi

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Rostislav Pehlivanov
On 9 July 2016 at 16:29, Martin Vignali wrote: > Hello, > > In attach patch to add decoding of .psd file (Photoshop file). > > PSD file can contain merge layers data at the end of the file (Image Data > Section) > > This patch add support for this kind of files, using uncompress data Image > Data

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Paul B Mahol
On 7/9/16, Martin Vignali wrote: > Hello, > > In attach patch to add decoding of .psd file (Photoshop file). > > PSD file can contain merge layers data at the end of the file (Image Data > Section) > > This patch add support for this kind of files, using uncompress data Image > Data Section > > Su

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread James Almer
On 7/9/2016 1:09 PM, James Almer wrote: > On 7/9/2016 12:29 PM, Martin Vignali wrote: >> +static int psd_probe(AVProbeData *p) >> +{ >> +const uint8_t *b = p->buf; >> + >> +if (AV_RL32(b) == 1397768760) > > if (AV_RL32(b) == MKTAG('S','P','B','8')) > MKTAG('8','B','P','S'), sorry. Also,

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Carl Eugen Hoyos
Martin Vignali gmail.com> writes: > psd_probe() Please also test for version (and color mode) and increase the probe score / if easily possible, don't detect things that are immediately rejected by the decoder. And don't remove the empty line from Changelog... > +{ AV_CODEC_ID_EXR,

Re: [FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread James Almer
On 7/9/2016 12:29 PM, Martin Vignali wrote: > Hello, > > In attach patch to add decoding of .psd file (Photoshop file). > > PSD file can contain merge layers data at the end of the file (Image Data > Section) > > This patch add support for this kind of files, using uncompress data Image > Data S

[FFmpeg-devel] libavcodec : add psd image file decoder

2016-07-09 Thread Martin Vignali
Hello, In attach patch to add decoding of .psd file (Photoshop file). PSD file can contain merge layers data at the end of the file (Image Data Section) This patch add support for this kind of files, using uncompress data Image Data Section Support Gray/A, and RGB/A with 8b or 16 bits by channe