Ronald S. Bultje
db431f7efe
h264: add support for decoding planar RGB images.
13 years ago
Michael Niedermayer
c88bdafe25
lavc: translate FF_ER_EXPLODE to AV_EF_EXPLODE|COMPLIANT
...
This is most likely what the user wants.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
f3a29b750a
avcodec: move some AVCodecContext fields to an internal struct.
...
A new field, AVCodecContext.internal is used to hold a new struct
AVCodecInternal, which has private fields that are not codec-specific and are
used by general libavcodec functions.
Moved internal_buffer, internal_buffer_count, and is_copy.
13 years ago
Michael Niedermayer
7fbe87c079
lavc: remove incorrect mapping between semantically incompatible error recognization values and flags.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
02bd11e969
lavc: Add AV_EF flags to restore support for the error_resilience framework in the new API.
...
The existing flags prior to this have a semantically different meaning and cannot be
used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
33feba3abf
Revert "lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()"
...
This commit causes problems for vlc, see https://trac.videolan.org/vlc/ticket/5518
This reverts commit 475fb67d0b
.
13 years ago
Michael Niedermayer
ac3c895d93
Revert "Warn the user if lowres > max_lowres, set lowres to max_lowres and continue"
...
Changing the lowres value is risky because the user application may have a
local copy and not read back into it, or not undo some lowres dependant things.
A patch implementing this in ffplay is already on ffmpeg-dev, so this feature
should be back soon.
This reverts commit 125ea3ee06
.
13 years ago
Martin Storsjö
2d1b6fb72b
avcodec: Allow locking and unlocking an avformat specific mutex
...
This extends the lock manager in avcodec to manage two separate
mutexes via the user-specified lock functions.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
475fb67d0b
lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()
...
this should allow some simplifications in some applications.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
913bc7996e
lavc: fix avcodec_get_type()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
08bef053a0
dirac: fix stride alignment
...
This code was already added by Yuvi in c82cbea68273c6f08c4d0e94fc9fd50bfdea4e2b
It was subsequently lost somehow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e7f008a534
lavc: Map deprecated codec ids to ours so as to maintain compatibility with the fork.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
67341f6a77
lavc: add PIX_FMT_GBR24P to align_dimensions()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Dustin Brody
5ea0001f9e
lavc: translate non-flag-based er options into flag-based ef options at codec open
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Ronald S. Bultje
dc49bf1270
sws/pixfmt/pixdesc: add support for yuv420p9le/be.
13 years ago
Anton Khirnov
0842d58998
lavc: use avpriv_ prefix for ff_toupper4.
...
It's used in lavf.
13 years ago
Steven Walters
27237d524e
w32threads: support for frame multithreading
...
Replace our incomplete w32threads implementation with x264's pthreads
w32threads wrapper.
Relicensed to LGPL with kind permission by Pegasys Inc.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Michael Niedermayer
b93cb8383f
lavc: add ff_init_buffer_info()
...
Fixes seeking per fileposition in ffplay.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d97efd7f87
libx264: support 9- and 10-bit output.
13 years ago
Justin Ruggles
6326afd5e9
avcodec: reject audio packets with NULL data and non-zero size
...
There is no valid reason the user should ever send such packets in the
first place, but the documentation for CODEC_CAP_DELAY states that the
codec is guaranteed not to get a NULL packet unless that capability is
set. That isn't true without preventing this case.
13 years ago
Jean First
125ea3ee06
Warn the user if lowres > max_lowres, set lowres to max_lowres and continue
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
9ff6d0791b
adpcmenc: Set bits_per_coded_sample
13 years ago
Anton Khirnov
9ecfbb3e57
lavc/utils: move avcodec_init() higher in the file.
...
Fixes build on next major bump.
13 years ago
Elvis Presley
5554de13b2
ProRes Decoder
...
Signed-off-by: Elvis Presley <elvis@e.p>
13 years ago
Michael Niedermayer
838e36635a
avcodec: move "thread emulation" warning to common code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
d2d7b7134f
lavc: use av_get_media_type_string and avcodec_get_name in avcodec_string.
13 years ago
Nicolas George
b3be9f4a88
lavc: add a table of all codecs names.
...
The table is automatically generated from the definition of enum CodecID in
avcodec.h and contains the name of all known codecs, even those for which no
encoder nor decoder exists or is enabled.
The table is queried using the avcodec_get_name function.
If CONFIG_SMALL is true, the table is not compiled in; the avcodec_get_name
looks for names in the list of available decoders and encoders.
13 years ago
Anton Khirnov
bca06e77e1
lavc: add avcodec_get_type() for mapping codec_id -> type.
13 years ago
Baptiste Coudurier
1d36fb13b0
lavc: fix parentheses placement in avcodec_open2().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
7221139ba0
lavc: make avcodec_init() static on next bump.
...
It's called from avcodec_register() anyway, so there's no reason for it
to be public.
13 years ago
Baptiste Coudurier
d5d74cf530
100l: fix parentheses placement when checking for ret < 0
13 years ago
Stefano Sabatini
fdd130a213
prefer "SAR" over "PAR" in av_dump_format()
...
"SAR" (Sample Aspect Ratio) is globally preferred over "PAR" (Pixel
Aspect Ratio), although the two terms share the same semantics.
For example the corresponding AVStream field is called
sample_aspect_ratio, and libavfilter has a filter named setsar.
Therefore prefer the term "SAR" over "PAR" in the
libavformat/utils.c:dump_stream_format() and avcodec_string() output
for avoiding confusion.
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
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
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Jason Garrett-Glaser
da55ee6ccc
Add new yuv444 pixfmts to avcodec_align_dimensions2
...
Fixes draw_edges crashes with high-bit-depth 4:4:4 decoding.
14 years ago
Diego Biurrun
bb00b15f9e
avutil: Remove unused arbitrary precision integer code.
14 years ago
Justin Ruggles
e6c52cee54
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
...
av_get_bits_per_sample_fmt() is deprecated.
14 years ago
Ronald S. Bultje
ceff045dbe
utils.c: fix crash with threading enabled.
14 years ago
Anton Khirnov
367732832f
lavf,lavc: free avoptions in a generic way.
...
It's simpler and less error-prone.
Fixes some memleaks along the way.
14 years ago
Stefano Sabatini
94bed8e582
Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().
...
This fixes warnings about avcodec_get_pix_fmt_name() being deprecated.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Alexander Strange
6a9c859444
H264/MPEG frame-level multi-threading.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Alexander Strange
a54dceb26a
Merge remote-tracking branch 'ffmpeg-mt/master'
...
* ffmpeg-mt/master:
Update todo
The maximum buffer size needs to be 33, not 32
merged-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
ami_stuff
7a54edaa16
Fail when lowres value is lower than 0
...
The attached patch fixes the crash which happens when user passes lowres value lower than 0 to FFplay.
ffplay -lowres -1 test.mpg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
af2f797099
partial revert of 01d3ebaf21
...
Fixes ffplay
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
1bc81bf981
avcodec_find_decoder: prefer non experimental decoders.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
94eadee7ef
Merge/split side data.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
01d3ebaf21
AVFrame: only set parameters from AVCodecContext in decode_video*() when no frame reordering is used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a3bc7a9ebf
avcodec_default_get_buffer: init picture parameters.
...
Fixes multithreading regression introduced in 64c06615d2
Fixes ticket197
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
5c511ad4ce
swscale: extend YUV422p support to 10bits depth
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago