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
Diego Biurrun
0d439fbede
dsputil: Split off HuffYUV decoding bits into their own context
...
Also shorten HuffYUV context member names to avoid clutter.
11 years ago
Diego Biurrun
888dcd8675
h264_picture: Remove pointless dsputil.h #include
11 years ago
Diego Biurrun
f1df0a4c08
on2avc: Remove pointless dsputil.h #include
11 years ago
Anton Khirnov
7cc4c9f32f
lavfi/formats: avoid using AV_{PIX,SAMPLE}_FMT_NB
...
Thatt hardcodes the number of formats into lavfi and will break when a
shared lavu is updated, adding new formats.
11 years ago
Anton Khirnov
b03b2d86aa
buffersrc: avoid using AV_PIX_FMT_NB
...
That hardcodes the number of pixel formats into lavfi and will break
when a shared lavu is updated, adding new pixel formats.
11 years ago
Anton Khirnov
a7d070acb5
vf_fieldorder: avoid using AV_PIX_FMT_NB
...
That hardcodes the number of pixel formats into lavfi and will break
when a shared lavu is updated, adding new pixel formats.
11 years ago
Anton Khirnov
862f33c10e
vf_scale: use the pixfmt descriptor API
...
Avoid using AV_PIX_FMT_NB, since that hardcodes the number of pixel
formats into lavfi and will break when a shared lavu is updated, adding
new pixel formats.
11 years ago
Anton Khirnov
45fc73edfe
vf_format: rework format list parsing
...
Avoid using AV_PIX_FMT_NB, since that hardcodes the number of pixel
formats into lavfi and will break when a shared lavu is updated, adding
new pixel formats.
11 years ago
Carl Eugen Hoyos
4d8c28deab
imgutils: make systematic palette opaque.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Nidhi Makhijani
e0d01dc7d7
smoothstream: check malloc calls
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Nidhi Makhijani
8692e6284f
rdt: check malloc calls
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Vittorio Giovara
21f68c2489
avcodec: bump version after rotation api
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years ago
Niels Möller
6b7b8585d7
dca: Convert dca_dmixtable to integers
...
Also include zero in the table, eliminating a special case in the
decoder.
Signed-off-by: Niels Möller <nisse@southpole.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Janne Grunau
c23c96b638
lavf: add av_stream_get_side_data
11 years ago
Janne Grunau
afe1762654
build: export library dependencies in ${name}_FFLIBS
...
Removes an ugly $(if) to avoid conflicts with $(FFLIBS-) in the
top-level MAkefile.
11 years ago
Janne Grunau
132a5711a2
check: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA)
11 years ago
Martin Storsjö
82fc9f4b38
display: Include mathematics.h for fallback definition of NAN
...
This fixes compilation with MSVC.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Vittorio Giovara
853cc025d6
mov: store display matrix in a stream side data
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Vittorio Giovara
bddd8cbf68
Add transformation matrix API.
...
Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and
frame side data (respectively) to describe a display transformation matrix
for linear transformation operations on the decoded video.
Add functions to easily extract a rotation angle from a matrix and
conversely to setup a matrix for a given rotation angle.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Anton Khirnov
9929b3564c
pthread_frame: simplify the code by using new AVPacket API
...
This also handles side data properly.
11 years ago
Anton Khirnov
cdf58f0599
avpacket: fix copying side data in av_packet_copy_props()
...
Side data count is incremented by by calling av_packet_new_side_data()
in the following loop, setting it explicitly results in the resulting
value being twice what it should be.
CC: libav-stable@libav.org
11 years ago
Anton Khirnov
a312f71090
lavf: deprecate now unused AVStream.pts
11 years ago
Anton Khirnov
ed7922faac
mux: drop one of the hacks comprising compute_pkt_fields2()
...
All encoders should output proper timestamps now.
11 years ago
Anton Khirnov
dc40d88625
avconv: do not use poorly defined and undocumented AVStream.pts
...
Use OutputStream.last_mux_dts as an approximation of 'current' output
time instead.
11 years ago
Anton Khirnov
c9f8809ee4
hevc/intra_pred: simplify neighboring sample derivation
11 years ago
Mickaël Raulet
25bb7eaf9e
hevc/intra_pred: drop unnecessary conditions in loops
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Mickaël Raulet
4c390b1ba9
hevc/intra_pred: optimize EXTEND_()*
...
Process 4 pixels at once.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Anton Khirnov
a1c2b48018
hevc: templatize intra_pred
11 years ago
Mickaël Raulet
04db5794cd
hevc: templatize pred_planar
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Anton Khirnov
0ba5299a80
movenc: use the "encoder" metadata tag to write stsd Compressorname
...
This mirrors the demuxer behaviour and avoids accessing
AVCodecContext.codec, which should not be done in muxers.
11 years ago
Anton Khirnov
6656370b85
avconv: set the "encoder" tag when transcoding
11 years ago
Anton Khirnov
d246231e47
wavenc: use codec descriptors to get the codec name
...
Also, return a proper error code.
11 years ago
Anton Khirnov
968a62a9d9
doc/APIchanges: mark the release 10 branch point
11 years ago
Anton Khirnov
33082af756
doc/APIchanges: fill in missing hashes and dates
11 years ago
Anton Khirnov
79f2c426fd
dv: do not set codec timebase
...
It is not supposed to be set from outside of libavcodec.
Set average framerate instead.
11 years ago
Anton Khirnov
93afb6c98d
avconv: set output avg_frame_rate when known
11 years ago
Anton Khirnov
7a5f4f6853
lavf: extend avg_frame_rate documentation.
11 years ago
Anton Khirnov
c3311d472a
avienc: sanitize variable naming in write_header()
...
Do not call an AVCodecContext 'stream', that is highly confusing.
Also, add a local variable for the current AVStream in the loop over all
streams.
11 years ago
Anton Khirnov
ab3fdaa713
yop: only set extradata size after it has been successfully allocated
...
Do not leave a non-zero extradata_size set on failure
11 years ago
Anton Khirnov
b513bf6f69
yuv4mpegdec: do not set coded_frame properties
...
coded_frame is not meant to be changed from outside of lavc, and is not
used for decoding.
Set AVCodecContext.field_order instead.
11 years ago
Anton Khirnov
e4dc1000d7
yuv4mpeg: split the demuxer and muxer into separate files
11 years ago
Anton Khirnov
3ef6c5264b
a64: check that extradata exists before reading from it
11 years ago
Anton Khirnov
b136564909
a64: remove unneeded struct qualifier
11 years ago
Anton Khirnov
d256ed78ff
4xm: allocate extradata properly.
...
Pad it with the required amount of zeros, check for malloc failure.
11 years ago
Anton Khirnov
fd056029f4
lavc: add avcodec_free_context().
...
Right now, the caller has to manually manage some allocated
AVCodecContext fields, like extradata or subtitle_header. This is
fragile and prone to leaks, especially if we want to add more such
fields in the future.
The only reason for this behaviour is so that the AVStream codec context
can be reused for decoding. Such reuse is discouraged anyway, so this
commit is the first step to deprecating it.
11 years ago
Anton Khirnov
e1b66778b6
lavc: remove the locking code in avcodec_close()
...
This function should not modify any global state, so there should be no
reason for any locking.
11 years ago
nu774
584f884090
riff: Pass block_align to estimate frame duration
...
Fix incorrect wSamplesPerBlock(=0) written for ADPCM_IMA_WAV
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Martin Storsjö
34e2ce5dde
hlsenc: Set the default codecs to AAC and H264
...
Most HLS implementation only support these codecs.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Katerina Barone-Adesi
4d25c2bc76
build: Support building using clang-usan and disable-optimization
...
Clang Undefined Behaviour Sanitizer seems to make non-constant constant
expressions, making the compilation fail when they are used within
inline assembly if no optimization is requested.
Add -O1 to the cflags to hide the misbehaviour.
Bug-Id: 683
11 years ago