Justin Ruggles
82cea7cb6c
ac3enc: prefer passing AC3EncodeContext rather than AVCodecContext
14 years ago
Justin Ruggles
f501157e53
ac3enc: fix memleak
14 years ago
Ronald S. Bultje
cdc5a3a194
mpeg1video: add CODEC_CAP_SLICE_THREADS.
14 years ago
Alex Converse
a58858d60d
lavf: Cleanup try_decode_frame() logic.
...
This fixes AAC playback in ffplay.
14 years ago
Diego Biurrun
028216b2c2
h264: move decode_mb_skip() from h264.h to h.264_mvpred.h
...
This resolves a circular dependency between the headers.
14 years ago
Reimar Döffinger
896e59758a
Move resetting of channels, sample_rate back to av_find_stream_info.
...
Resetting it on codec init would incorrectly clear the values
if av_find_stream_info was already run before, in particular
breaking ffplay.
This fixes trac tickets #213 and #262 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
14 years ago
Diego Biurrun
828e207337
dnxhdenc: Replace a forward declaration by the proper #include.
14 years ago
Ronald S. Bultje
c90a2538a0
h264: move h264_mvpred.h include.
...
Fixes the following compile error with darwin/gcc-4.2.1:
In file included from libavcodec/error_resilience.c:33:
libavcodec/h264.h: In function ‘decode_mb_skip’:
libavcodec/h264.h:773: error: ‘always_inline’ function could not be inlined in call to ‘pred_pskip_motion’: the function body must appear before caller
libavcodec/h264.h:1334: error: called from here
14 years ago
Jason Garrett-Glaser
b5bbc84fe2
H.264: add filter_mb_fast support for >8-bit decoding
...
Much faster high bit depth deblocking.
14 years ago
Jason Garrett-Glaser
f6b7f72461
H.264: avoid redundant alpha/beta calculations in loopfilter
14 years ago
Jason Garrett-Glaser
a4f6be86d6
H.264: optimize intra/inter loopfilter decision
14 years ago
Ronald S. Bultje
d1cf459119
vp8/mt: flush worker thread, not application thread context, on seek.
...
This prevents a crash when seeking.
14 years ago
Ronald S. Bultje
5eafc8b466
mt: proper locking around release_buffer calls.
...
This fixes a crash when seeking in some webm files with many
threads (e.g. 8).
14 years ago
Michael Niedermayer
a8c2ff2c3c
Revert "lavc: remove a half-working attempt at different defaults for audio/video codecs."
...
This reverts commit 18c007ba37
.
14 years ago
Jean-Baptiste Kempf
58ef4ecff8
DxVA2: unbreak build after [ 657ccb5ac7
]
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mans Rullgard
1765aacb17
hwaccel: unbreak build
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
657ccb5ac7
Eliminate FF_COMMON_FRAME macro.
...
FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied
to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
14 years ago
Mans Rullgard
11043d80f6
ARM: use const macro to define constant data in asm
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
39c2a6bf44
bitdepth: simplify FUNC/FUNCC macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
710b8df949
dsputil: remove ff_emulated_edge_mc macro used in one place
...
This macro can cause problems in conjunction with the bitdepth
template expansion. It was presumably added to keep source
compatibility when high bitdepth support was added. However,
emulated_edge_mc is a dsputil pointer and should not be called
directly, so there is little reason to keep such a macro.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
0f6fc8660e
9/10-bit: simplify clipping macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
84626b364b
lavc: add support for codec-specific defaults.
14 years ago
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
14 years ago
Anton Khirnov
18c007ba37
lavc: remove a half-working attempt at different defaults for audio/video codecs.
...
It should be replaced with proper per-codec defaults.
14 years ago
Anton Khirnov
9b83919f44
ac3dec: add a drc_scale private option
...
Deprecate corresponding AVCodecContext option.
This is the first test of decoder private options.
14 years ago
Anton Khirnov
0b950fe240
lavc: introduce avcodec_open2() as a replacement for avcodec_open().
...
Adds support for decoder-private options and makes setting other options
simpler.
14 years ago
Jason Garrett-Glaser
7f7dc4fb55
H.264: fix filter_mb_fast with 4:4:4 + 8x8dct
14 years ago
Frank Barchard
f98c9fb27d
mpeg1video: don't abort if thread_count is too high.
...
Instead, just decrease it to a valid value and use that.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Joakim Plate
a7d3a51dd1
cosmetic: reindent of dxva2 zigzag workaround
14 years ago
Joakim Plate
6dabe0f74a
Added ability to enable workaround for dxva2 decoding using older ATI cards
...
The workaround need to be enabled per pci id which can not
be detected inside ffmpeg. So this adds a flag that enabled
the alternate behavior.
14 years ago
Diego Biurrun
d8dbe20241
libxvid: Add const qualifier to silence compiler warning.
...
libavcodec/libxvidff.c:752: warning: initialization discards qualifiers from pointer target type
14 years ago
Jason Garrett-Glaser
6a2176aac0
H.264: improve qp_thresh check
...
Eliminate redundant check in filter_mb_fast, consider bit depth in calculating qp_thresh.
14 years ago
Jason Garrett-Glaser
99b6d2c065
H.264: use fill_rectangle in CABAC decoding
14 years ago
Jason Garrett-Glaser
298e52c99c
H.264: Remove redundant hl_motion_16/8 code
14 years ago
Jason Garrett-Glaser
ef0c594801
H.264: merge fill_rectangle into P-SKIP MV prediction, to match B-SKIP
14 years ago
Jason Garrett-Glaser
5136ba7c69
H.264: faster P-SKIP decoding
...
Inline the relevant parts of fill_decode_caches into P-SKIP mv prediction to
avoid calling the whole thing.
14 years ago
Jason Garrett-Glaser
bbdd52ed34
H.264: av_always_inline some more functions
...
These weren't getting inlined all the time in all gcc versions.
14 years ago
Daniel Kang
c0483d0c7a
H.264: Add x86 assembly for 10-bit H.264 predict functions
...
Mainly ported from 8-bit H.264 predict.
Some code ported from x264. LGPL ok by author.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
bda168d2b0
mp3enc: write a xing frame containing number of frames in the file
14 years ago
Mans Rullgard
ecf86e1a97
dnxhd: prettify tables
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
51915cfa47
flashsv: inline copy_region() into flashsv_decode_frame()
14 years ago
Diego Biurrun
91fe776913
flashsv: improve some variable names
14 years ago
Diego Biurrun
8886d75263
libschroedingerdec: Remove write-only variable.
...
libavcodec/libschroedingerdec.c:211:23: warning: variable 'format' set but not used
14 years ago
Diego Biurrun
357d0d8fc7
libgsm: Drop const qualifier to silence compiler warning.
...
libavcodec/libgsm.c:148: warning: passing argument 2 of ‘gsm_decode’ discards qualifiers from pointer target type
/usr/include/gsm/gsm.h:68: note: expected ‘gsm_byte *’ but argument is of type ‘const uint8_t *’
14 years ago
Diego Biurrun
b0058bda78
libvo-amrwbenc: Add braces to shut up gcc warning.
...
libavcodec/libvo-amrwbenc.c:37:5: warning: missing braces around initializer
14 years ago
Kostya
df64da3b1e
bink: pass Bink version to audio decoder through extradata instead of codec_tag.
...
This is needed because not all players (e.g. MPlayer) are able to distinguish
two different Bink audio decoders when codec_tag is set.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Diego Biurrun
dc90031038
flashsv: improve some comments and fix some wrong ones
14 years ago
Diego Biurrun
a082e68030
flashsv: Eliminate redundant variable indirection.
...
As a positive side-effect, this gets rid of the following warning:
libavcodec/flashsv.c:190:38: warning: assignment discards ‘const’ qualifier from pointer target type
14 years ago
Diego Biurrun
ecf026f1aa
flashsv: set reference frame type to full frame
14 years ago
Diego Biurrun
bc35ab3f7d
flashsv: replace bitstream description by a link to the specification
...
An official specification now exists and it is both more detailed and easier to
understand than the incomplete notes available here. Also remove ideas on how
to implement an encoder; these notes are already present in the encoder.
14 years ago