Vittorio Giovara
0562887a98
tiffenc: initialize return value
...
'ret' can only be used without initialization if s->height <= 0, which can
only happen if avctx->height <= 0, which is validated elsewhere. Doesn't hurt
to still initialize it though.
CC: libav-stable@libav.org
Bug-Id: CID 732296
10 years ago
Michael Niedermayer
bb5e148299
libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Luca Barbato
c9c7d59b7d
tiff: Use av_mallocz_array
...
CC: libav-stable@libav.org
10 years ago
Christophe Gisquet
0e8bfd3c93
avcodec/tiffenc: properly compute packet size
...
The bytes per row is a better indication of it.
Helps resolving ticket #3874 by fixing ffmpeg's encoder and transforming
the issue in a issue with non-compliant decoders. ffmpeg's one is ok,
but unfortunately, many others aren't handling correctly unusual chroma
samplings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Gabriel Dume
f929ab0569
cosmetics: Write NULL pointer equality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Tristan Matthews
4910684492
tiffenc: fix packet size calculation
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Carl Eugen Hoyos
b91bf48f00
lavc/tiffenc: Enable frame-threading.
11 years ago
Justin Ruggles
a9b046fb0a
tiff: use a better name and enum values for PhotometricInterpretation
...
Also add additional known values and log as missing features.
11 years ago
Carl Eugen Hoyos
59c1023ef5
Consider aspect ratio when writing tiff dpi.
...
TIFFTAG_YRESOLUTION gets now adjusted to sample_aspect_ratio.
11 years ago
Carl Eugen Hoyos
5b1b91cfb8
tiff: Support rgba encoding
11 years ago
Anton Khirnov
f26f71139f
tiffenc: use the AVFrame API properly.
11 years ago
Diego Biurrun
46ce9ded96
tiff: K&R formatting cosmetics
12 years ago
Anton Khirnov
e6c4ac7b5f
pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*
12 years ago
Luca Barbato
c1a02e884a
pixdesc: add av_pix_fmt_get_chroma_sub_sample
...
Deprecate avcodec_get_chroma_sub_sample.
12 years ago
Carl Eugen Hoyos
c673ef1288
Write tiff tag YCbCrPositioning if chroma_sample_location is top-left.
12 years ago
Michael Niedermayer
d50aa006fb
tiffenc: fix integer overflow
...
Fixes CID700699
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
a51540d811
lavc: do not use av_pix_fmt_descriptors directly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Anton Khirnov
50ba57e0ce
lavc: do not use av_pix_fmt_descriptors directly.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Michael Niedermayer
05e5a24f79
tiffenc: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Alex Converse
b92dfb56d4
tiffenc: Check av_malloc() results.
12 years ago
Alex Converse
9bc055e358
tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.
12 years ago
Alex Converse
298ed797e1
tiffenc: Add support for little endian RGB48 and GRAY16
12 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Carl Eugen Hoyos
f3683349ae
Write TIFF Tag ExtraSamples when encoding pix_fmts that contain transparency information.
12 years ago
Carl Eugen Hoyos
5eb532a930
Cosmetics: Reorder pix_fmts in tiffenc.c.
12 years ago
Carl Eugen Hoyos
a5a90fa577
Simplify setting colour space for mono* when encoding tiff.
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Stefano Sabatini
160df9797e
lavc/tiffenc: apply misc doxy fixes
13 years ago
Thomas Kühnel
75abfab6c6
lavc/tiff: add GeoTIFF support to the TIFF decoder
...
Work done for SOCIS 2011.
See thread:
Subject: [libav-devel] [PATCH 2/3] tiff: Add GeoTIFF support to the TIFF decoder
Date: Tue, 4 Oct 2011 00:19:52 +0200
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Paul B Mahol
9b3f9f43a7
tiffenc: use av_fast_padded_malloc(z)
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
ca16f88c75
tiffenc: add .init
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
16a433d68b
tiffenc: PIX_FMT_YUV440P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
a6da14ec3c
tiffenc: PIX_FMT_GRAY8A support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
df548c59f7
tiffenc: PIX_FMT_GRAY16LE support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
1806858fdd
tiffenc: merge common code
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
146d29c744
tiffenc: use av_get_bits_per_pixel() to get bpp
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
82c4abbfe1
tiffenc: use av_pix_fmt_descriptors to set bpp_tab[]
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
e100a259be
tiffenc: simplify calculation of bpp_tab_size
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
1321e6eaa7
tiffenc: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d04956344d
tiffenc: fix out of array read
...
Fixes ticket1112
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
dddd06d5b4
Make tiff-in-mov QuickTime-compatible for more colour-spaces.
...
Fixes ticket #1228 .
13 years ago
Martin Storsjö
1428527581
cosmetics: Clean up the tiffenc pix_fmts declaration to match the style of others
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
3dde147ff9
cosmetics: Consistently place static, inline and av_cold attributes/keywords.
13 years ago
Paul B Mahol
ae2c33b0c2
cosmetics: remove superfluous curly brackets
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
219d8245a0
tiffenc: switch to ff_alloc_packet2().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ea8fc91886
tiffenc: fix return value.
13 years ago