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
Diego Biurrun
e873c03ac7
misc Doxygen markup improvements
14 years ago
Diego Biurrun
c68fafe0d2
doxygen: eliminate Qt-style doxygen syntax
14 years ago
Sjoerd Simons
f32fd31858
g722: Change bits per sample to 4
Earlier, bits per sample was defined as 8, since
bits_per_coded_sample was used to indicate whether to ignore
the lower bits of the codeword, having values 6, 7 or 8.
g722 encodes 2 samples into one byte codeword, therefore the
bits per sample is 4. By changing this, the generated timestamps
for streams encoded with g722 become correct.
This makes timestamp generation for g722 data correct (both when
encoding and when demuxing from raw g722 files).
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
6fcbb0f553
g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample
This avoids using bits_per_coded_sample for this information.
bits_per_coded_sample should be 4 for this codec normally,
since two samples are encoded into one 8 bit codeword.
In principle, this might be info that needs to be passed from
a demuxer, and in that case, a private AVOption isn't the best
choice, but no such samples are available at the moment, so
that use case is purely theoretical at the moment.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
fef411ef3b
lavc: Add a AVClass for AVFrames.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
0bafe04917
api-example: update to use avcodec_decode_audio4()
14 years ago
Chris Berov
dc6d043050
adpcmenc: cosmetics: pretty-printing
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Chris Berov
541d083a40
ac3dec: cosmetics: pretty-printing
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Paul B. Mahol
eda8731285
shorten: remove dead initialization
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Reimar Döffinger
7679bd6e60
roqvideodec: set AVFrame reference before reget_buffer.
Otherwise it might return a write-only frame which would break
decoding completely.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago