James Almer
3000183732
avcodec/pngenc: don't return a value in a void function
...
Should fix compilation failures with strict compilers
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
b0a2aee408
png: Use libavutil's crc functions instead of zlib's
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
d759844863
apng: Add a basic APNG encoder
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
3c912391dd
avcodec/png: Clearly separate encoding header and frames
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
749fbfd081
png: Clear up the calculation of max packet size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
9573737dfb
png: Only init zlib once
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
e7ba79dc4e
png: Calculate pixel format information only once
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
68ede913d0
png: Return slightly more meaningful error codes
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
fe57514f8a
png: Minor whitespace change and added missing comment
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Donny Yang
5904d039ce
png: Use av_freep() instead of av_free()
...
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Kevin Wheatley
86b59e6a50
avutil: Extract gamma determination from PNG encoder for future use. Adds private avpriv_get_gamma_from_trc() function to libavutil.
...
Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
f6f1e2b3be
avcodec/pngenc: Remove outer () from macro
...
The macro is implemented as a do{}while()
enclosing this is () appears to be a GNU extension (6.1 Statements and Declarations in Expressions)
the () is also unneeded and wrong as the macro returns no
value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7c9e7bd425
avcodec/pngenc: replace round by lrint()
...
Avoids passing double to AV_WB32()
Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Niklas Haas
888a33c070
lavc/pngenc: Support writing colorspace tags.
...
These are defined in http://www.w3.org/TR/PNG/#11addnlcolinfo .
10 years ago
Carl Eugen Hoyos
c6a36f6931
lavc/pngenc: Support encoding ya16be.
10 years ago
Diego Biurrun
5735552f1f
pngenc: Drop pointless pointer cast in png_write_row()
11 years ago
Diego Biurrun
512f3ffe9b
dsputil: Split off HuffYUV encoding bits into their own context
...
Also shorten HuffYUV context member names to avoid clutter.
11 years ago
Carl Eugen Hoyos
cccac7654f
png: Support rgb48 and rgba64 encoding
11 years ago
Vittorio Giovara
c598b569fb
png: K&R formatting cosmetics
11 years ago
Clément Bœsch
57ec555e8e
avcodec/pngenc: fix invalid read in sub filter.
...
First pixel was computed based on invalid address read, and then
corrected by the following memcpy. After the commit, it's not computed
anymore, and memcpy fills the appropriate area.
Fixes Ticket #3387
11 years ago
Anton Khirnov
78c6c9d6c1
pngenc: use the AVFrame API properly.
11 years ago
Diego Biurrun
b2bed9325d
cosmetics: Group .name and .long_name together in codec/format declarations
11 years ago
Paul B Mahol
7d7b4e8d5c
avcodec/png: remove obsolete comments
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Ian Taylor
46dee21a32
png: allow encoding 16-bit grayscale
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Diego Biurrun
2832ea26f3
Remove commented-out debug #define cruft
12 years ago
Andrey Utkin
bc63a76083
pngenc: Add 'dpi', 'dpm' options
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Carl Eugen Hoyos
fe1de12faf
Remove two anonymous arrays.
...
Fixes compilation of pngenc.c and flvdec.c with PGC 13.4-0.
12 years ago
Carl Eugen Hoyos
c4dc6c4c86
Fix bits_per_coded_sample when encoding png with frame-level multithreading.
...
Fixes ticket #2290 .
12 years ago
Diego Biurrun
511cf612ac
miscellaneous typo fixes
12 years ago
Paul B Mahol
f58f90238f
pngenc: write sample aspect ratio
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Ben Jackson
616ef2e8bd
lavc/pngenc: Enable frame threading for PNG encodes
...
Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Paul B Mahol
a09ae4ef65
Remove duplicated png and mng signatures.
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
65efc66d8e
pngenc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
37f1a7d51d
Make png-in-mov QuickTime-compatible for more colour-spaces.
...
Reported and tested by ami_stuff.
See ticket #1191 .
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
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
afc0cc22e1
pngenc: make max_packet_size 64bit check check it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
677df4d2ef
pngenc: better upper bound for encoded frame size.
...
Fixes encoding very large pictures.
Thanks to Костя for providing the formula.
13 years ago
Michael Niedermayer
5c6c62543c
pngenc: switch to ff_alloc_packet2().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
15db6a9590
pngenc: Fix incorrect mask used for interlaced mode.
...
Fixes Ticket1109
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
309d8ec19b
pngenc: allocate packets that have some chance of being large enough.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
08630d25a2
png: make .long_name more descriptive
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Anton Khirnov
83c7fe3245
pngenc: switch to encode2().
13 years ago
Martin Storsjö
9cf0841ef3
dsputil: Add ff_ prefix to the dsputil*_init* functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
f94ce3bcab
Support rgb48 and rgba64 png encoding.
13 years ago
Carl Eugen Hoyos
107f55cb01
Simplify RGB32 png encoding.
13 years ago
Carl Eugen Hoyos
fdc013da78
Support gray16 png encoding.
13 years ago
Carl Eugen Hoyos
ed10ca4c76
Support gray8a png encoding.
13 years ago