<div dir="ltr"><div class="gmail_default" style="font-size:small">OK, picked up this last patch. GG has read this email and is going to look at the patch. Will let you know, hopefully. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 15, 2020 at 11:05 AM Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Updated a bit ....<br>
<br>
<a href="https://www.dpreview.com/forums/post/5394197" rel="noreferrer" target="_blank">https://www.dpreview.com/forums/post/5394197</a> - see for LZW patent, I tested rgba-float <br>
project rendering one frame into LZW-compressed tiff, and it worked, at least <br>
I can see image/alpha in GIMP (2.10.18).<br>
<br>
I wonder how many tiff readers today ready to deal with lzma2 compressed tiffs?<br>
<br>
I wonder if I should try to add png compression level to GUI :}<br>
<br>
---------- Пересланное сообщение ----------<br>
<br>
Тема: filetiff patch<br>
Дата: Воскресенье 15 марта 2020<br>
Отправитель: Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com" target="_blank">randrianasulu@gmail.com</a>><br>
Получатель: "Cinelerra.GG" <<a href="mailto:cin@lists.cinelerra-gg.org" target="_blank">cin@lists.cinelerra-gg.org</a>><br>
<br>
I tried few more compression schemas from libtiff 4.0.10 tiff.h:<br>
<br>
#define TIFFTAG_COMPRESSION 259 /* data compression technique */<br>
#define COMPRESSION_NONE 1 /* dump mode */<br>
#define COMPRESSION_CCITTRLE 2 /* CCITT modified Huffman RLE */<br>
#define COMPRESSION_CCITTFAX3 3 /* CCITT Group 3 fax encoding */<br>
#define COMPRESSION_CCITT_T4 3 /* CCITT T.4 (TIFF 6 name) */<br>
#define COMPRESSION_CCITTFAX4 4 /* CCITT Group 4 fax encoding */<br>
#define COMPRESSION_CCITT_T6 4 /* CCITT T.6 (TIFF 6 name) */<br>
#define COMPRESSION_LZW 5 /* Lempel-Ziv & Welch */<br>
#define COMPRESSION_OJPEG 6 /* !6.0 JPEG */<br>
#define COMPRESSION_JPEG 7 /* %JPEG DCT compression */<br>
#define COMPRESSION_T85 9 /* !TIFF/FX T.85 JBIG compression */<br>
#define COMPRESSION_T43 10 /* !TIFF/FX T.43 colour by layered JBIG compression */<br>
#define COMPRESSION_NEXT 32766 /* NeXT 2-bit RLE */<br>
#define COMPRESSION_CCITTRLEW 32771 /* #1 w/ word alignment */<br>
#define COMPRESSION_PACKBITS 32773 /* Macintosh RLE */<br>
#define COMPRESSION_THUNDERSCAN 32809 /* ThunderScan RLE */<br>
/* codes 32895-32898 are reserved for ANSI IT8 TIFF/IT <<a href="mailto:dkelly@apago.com" target="_blank">dkelly@apago.com</a>) */<br>
#define COMPRESSION_IT8CTPAD 32895 /* IT8 CT w/padding */<br>
#define COMPRESSION_IT8LW 32896 /* IT8 Linework RLE */<br>
#define COMPRESSION_IT8MP 32897 /* IT8 Monochrome picture */<br>
#define COMPRESSION_IT8BL 32898 /* IT8 Binary line art */<br>
/* compression codes 32908-32911 are reserved for Pixar */<br>
#define COMPRESSION_PIXARFILM 32908 /* Pixar companded 10bit LZW */<br>
#define COMPRESSION_PIXARLOG 32909 /* Pixar companded 11bit ZIP */<br>
#define COMPRESSION_DEFLATE 32946 /* Deflate compression */<br>
#define COMPRESSION_ADOBE_DEFLATE 8 /* Deflate compression,<br>
as recognized by Adobe */<br>
/* compression code 32947 is reserved for Oceana Matrix <<a href="mailto:dev@oceana.com" target="_blank">dev@oceana.com</a>> */<br>
#define COMPRESSION_DCS 32947 /* Kodak DCS encoding */<br>
#define COMPRESSION_JBIG 34661 /* ISO JBIG */<br>
#define COMPRESSION_SGILOG 34676 /* SGI Log Luminance RLE */<br>
#define COMPRESSION_SGILOG24 34677 /* SGI Log 24-bit packed */<br>
#define COMPRESSION_JP2000 34712 /* Leadtools JPEG2000 */<br>
#define COMPRESSION_LERC 34887 /* ESRI Lerc codec: <a href="https://github.com/Esri/lerc" rel="noreferrer" target="_blank">https://github.com/Esri/lerc</a> */<br>
/* compression codes 34887-34889 are reserved for ESRI */<br>
#define COMPRESSION_LZMA 34925 /* LZMA2 */<br>
#define COMPRESSION_ZSTD 50000 /* ZSTD: WARNING not registered in Adobe-maintained registry */<br>
#define COMPRESSION_WEBP 50001 /* WEBP: WARNING not registered in Adobe-maintained registry */<br>
<br>
Sadly, only deflate worked with 32-bit floating point session.<br>
<br>
Others complained like<br>
FileTIFF: Compression scheme 32908 scanline encoding is not implemented.<br>
<br>
Also, GIMP complained a bit, but allow me to open image anyway:<br>
<br>
tiff_io_warning: [TIFFReadDirectory] Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.<br>
tiff_io_warning: [TIFFReadDirectory] Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.<br>
tiff_io_warning: [TIFFReadDirectory] Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.<br>
tiff_io_warning: [TIFFReadDirectory] Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.<br>
bps: 32<br>
load_contiguous<br>
bytes_per_pixel: 16, format: 16<br>
<br>
Probably for other compression schemas differet, non-scanline method of calling libtiff must be used?<br>
<br>
Also, a bit of nipicking (?) but Cinelerra doesn' show single-frame rendering correctly in stats:<br>
<br>
** rendered 0 frames in 14.170 secs, 0.000 fps<br>
Render::render_single: Session finished.<br>
** rendered 355 frames in 249.619 secs, 1.422 fps<br>
Render::render_single: Session finished.<br>
** rendered 0 frames in 3.640 secs, 0.000 fps<br>
<br>
Shouldn't it be 1 frame, at least?<br>
<br>
<br>
<br>
<br>
<br>
-------------------------------------------------------<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>