Michael Niedermayer
523da37f4c
cljrenc: 2x2 ordered dither support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
74d9b21340
cljrenc: add AVOption to disable dither
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
43a36ad2ee
cljrenc: Add dither to avoid the banding artifcats caused by the very low
number of bits used to represent brightness levels.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
6b60a4c9c9
cljr: K&R cosmetics
14 years ago
Diego Biurrun
1c45c64c9d
cljr: return a more sensible value when encountering invalid headers
14 years ago
Diego Biurrun
163682fab3
cljr: drop unnecessary emms_c() calls without MMX code
14 years ago
Michael Niedermayer
bef8dfa056
escape130: replace can_safely_read() by get_bits_left()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f7da12350e
escape130: give all av_log() a context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
40d6296095
escape130: The minimum read in and after decode_skip_count() is 4 bits.
Thus we can check for 4 being available.
If the next block is skiped we need 4 bits to encode the skip. If the
next block is not skiped then we need 1 bit for the skip code and
at least 3 bits for the block.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
59d3656f6e
escape130: Check dimensions to be a multiple of the block size.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mashiat Sarker Shakkhar
6d4deecfdf
Pass pointer to integer buffer instead of integer to memcpy
14 years ago
Carl Eugen Hoyos
8ac6469575
Silence a warning when compiling Escape 130 decoder.
Fixes:
libavcodec/escape130.c:177:17: warning: ISO C90 forbids mixed declarations and code
Reviewed-by: Paul B Mahol
14 years ago
Mans Rullgard
bbc10185ee
cljr: remove useless casts
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
baf3b6e594
cljr: group encode/decode parts under single ifdefs
This groups the encode/decode parts under single ifdefs and
eliminates the encode_init() function as it merely calls
common_init(). Also fix whitespace in moved code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
9a1420bfda
cljr: remove stray semicolon
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Paul B Mahol
ca52bae6ec
cljr: add missing return statement in decode_end()
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
31c55c572a
escape130: 10l for myself for not initializing y_base.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
John Brooks
8562d9bd6c
shorten: avoid abort() on unknown audio types
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Paul B Mahol
e93947b7d8
cljr: add encoder
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Michael Niedermayer
06798c6e3b
escape130: Fix y_base handling, this fixes some artifacts, vissible in most videos.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
8ff3d1ccec
escape130: make sure cliping is done on signed values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
0cc9949ead
Mark one colour as transparent in the gif image encoder
if the input palette contains at least one colour
that is more than 50% transparent.
Fixes ticket #715 .
14 years ago
Carl Eugen Hoyos
51d7cd3596
Decode RGB ljpeg to RGB24.
No alpha channel is decoded, the output used to be completely transparent.
14 years ago
Carl Eugen Hoyos
9608e3a182
Support decoding 56 byte BMP Bitmap Information Header.
Fixes ticket #719 .
14 years ago
Anatoliy Wasserman
6778f9d9f2
pthread: fixed thread initialization issues related to thread-safe buffer allocator
Signed-off-by: Anatoliy Wasserman <anatoliy.wasserman@yandex.ru>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
4dccfff9dd
tests/examples: Mark some variables only used within their files as static.
14 years ago
Diego Biurrun
9a5d6c23c5
tests/tools/examples: Replace direct exit() calls by return.
14 years ago
Paul B. Mahol
04a5eaa1a5
cljr: release picture at end of decoding
Otherwise after transcoding from cljr we get: Found 1 unreleased buffers!
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Mans Rullgard
392107ad07
rv40: NEON optimised rv40 qpel motion compensation
Based on patch by Janne Grunau.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mashiat Sarker Shakkhar
c5cd231151
Partially fix CDLMS prediction
14 years ago
Michael Niedermayer
8b85c29463
qtrledec: Fix artifacts in tickets/226/qt_rle_bw.mov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Alexis Ballier
1af91978db
qtrle.c: Fix for ticket #226 .
In 1bpp mode, interpret skip&0x80 as "start a new line" instead of "go to next line", this is almost the same except for the first line which was always skipped before and caused to try to write an extra line at the end of the frame (ticket #226 ).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Hendrik Leppkes
bc057f7592
pcm-mpeg: implement new audio decoding api
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Ronald S. Bultje
8b03d7fe95
w32thread: port fixes to pthread_cond_broadcast() from x264.
14 years ago
Rafaël Carré
7efea2a051
dxva2.h: include d3d9.h to define LPDIRECT3DSURFACE9
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Diego Biurrun
ff159e7816
doxygen: Replace '\' by '@' in Doxygen markup tags.
14 years ago
Diego Biurrun
ee41963f19
cosmetics: drop some completely pointless parentheses
14 years ago
Paul B. Mahol
fc9489f6ad
cljr: simplify CLJRContext
There is no need to have delta, offset and gb in CLJRContext.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Carl Eugen Hoyos
a99dbe014d
Do not ignore full transparency when writing png palette.
This reverts r6689, "Make PNG produce correct 8-bit pictures".
14 years ago
Michael Niedermayer
d9ced9fec6
h264: init prev_frame_num to -1 on init
Fixes Ticket711
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
6287a356e3
h264: Fix memleaks on close, reset more fields
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
ba3bb53bdc
Fix 8BPS RGB32 output, the alpha channel was ignored.
Reviewed-by: Roberto Togni
14 years ago
Konstantin Todorov
4d9ec050a2
Code cleanup - mpegvideo.c - 500-1000line
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Janne Grunau
6c88988866
rv40: NEON optimised weighted prediction
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Janne Grunau
f5c05b9aa5
rv40: NEON optimised chroma MC
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
f054a82727
ARM: move NEON H264 chroma mc to a separate file
This allows sharing code with the rv40 version of these functions.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Janne Grunau
42d32cf53c
rv34: NEON optimised inverse transform functions
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
51177b1fe9
lavc: Mark fields that require av_opt_ptr()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
31f93fc5f8
lavc: Fix sizeof(AVFrame) useability docs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
b9d2b45165
lavc: Document AVFrame av_opt_ptr() relation.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago