OSDN Git Service
Vladimir Pantelic [Wed, 6 Feb 2013 13:35:26 +0000 (14:35 +0100)]
asfdec: read the full Metadata Object, not just aspect ratio information
Use the same get_tag()/get_value() as for the Extended Content Description
but handle the 16 bit vs 32 bit difference for type 2 (BOOL)
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Vladimir Pantelic [Wed, 6 Feb 2013 13:35:25 +0000 (14:35 +0100)]
asfdec: silence a warning
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diego Biurrun [Fri, 8 Feb 2013 23:09:54 +0000 (00:09 +0100)]
mss4, ra288: Remove unused DSPContext local codec context members
Diego Biurrun [Thu, 7 Feb 2013 20:58:48 +0000 (21:58 +0100)]
dsputil: Move fdct function declarations to dct.h
Diego Biurrun [Thu, 7 Feb 2013 23:31:13 +0000 (00:31 +0100)]
dsputil: Move LOCAL_ALIGNED macros to libavutil
Diego Biurrun [Thu, 7 Feb 2013 21:39:26 +0000 (22:39 +0100)]
dsputil: Move WRAPPER8_16_SQ macro to the only place it is used
Diego Biurrun [Thu, 7 Feb 2013 21:37:00 +0000 (22:37 +0100)]
dsputil: Move rnd_avg inline functions to a separate header
Diego Biurrun [Thu, 7 Feb 2013 21:18:07 +0000 (22:18 +0100)]
dsputil: Remove commented-out, unused function declarations
Diego Biurrun [Thu, 7 Feb 2013 20:43:58 +0000 (21:43 +0100)]
dsputil: Move ff_shrink* function declarations to separate header
Diego Biurrun [Thu, 7 Feb 2013 20:33:31 +0000 (21:33 +0100)]
dsputil: Move ff_svq3 function declarations to a separate header
Diego Biurrun [Thu, 7 Feb 2013 20:25:55 +0000 (21:25 +0100)]
dsputil: Move ff_h264_idct function declarations to a separate header
Diego Biurrun [Thu, 7 Feb 2013 21:03:49 +0000 (22:03 +0100)]
dsputil: Move copy_block functions to a separate header
Diego Biurrun [Thu, 7 Feb 2013 20:12:49 +0000 (21:12 +0100)]
dsputil: Drop unused functions copy_block{2|4|16}
Mans Rullgard [Sun, 9 Dec 2012 19:18:47 +0000 (19:18 +0000)]
indeo3: replace use of copy_block4 with put_pixels
The destination is sufficiently aligned for put_pixels here.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Mon, 10 Dec 2012 09:57:10 +0000 (09:57 +0000)]
mjpegdec: use put_pixels instead of copy_block8
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Thu, 7 Feb 2013 20:07:57 +0000 (21:07 +0100)]
dsputil: Move get_penalty_factor() to the only place it is used.
Diego Biurrun [Thu, 7 Feb 2013 20:04:32 +0000 (21:04 +0100)]
dsputil: Move ff_block_permute to mpegvideo_enc
Daniel Kang [Thu, 7 Feb 2013 03:25:12 +0000 (22:25 -0500)]
dsputil: x86: Fix compile error
Accidentally prefixed ff_ with cextern.
Signed-off-by: Martin Storsjö <martin@martin.st>
Daniel Kang [Wed, 6 Feb 2013 18:05:43 +0000 (18:05 +0000)]
dsputil: x86: Convert h263 loop filter to yasm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Anton Khirnov [Sun, 3 Feb 2013 12:13:00 +0000 (13:13 +0100)]
mpegvideo: remove an unused function parameter
Anton Khirnov [Sun, 3 Feb 2013 07:42:02 +0000 (08:42 +0100)]
rv10: improve buffer size check.
Check slice count and input buffer size before constructing a possibly
invalid pointer, not after.
Anton Khirnov [Sat, 2 Feb 2013 16:23:19 +0000 (17:23 +0100)]
error_resilience: remove a useless if() and FIXME
pp_time is never set for h264
Anton Khirnov [Mon, 4 Feb 2013 13:46:55 +0000 (14:46 +0100)]
h264: remove silly macros
They serve no useful purpose and wreak all kind of havoc when h264.h is
included elsewhere.
Anton Khirnov [Sun, 3 Feb 2013 07:32:39 +0000 (08:32 +0100)]
h263: remove an unused parameter from ff_h263_decode_init_vlc
Tim Walker [Tue, 22 Jan 2013 20:53:54 +0000 (21:53 +0100)]
flac: add channel layout masks for streams with 7 or 8 channels.
They were added to the latest FLAC specification:
https://git.xiph.org/?p=flac-website.git;a=commit;h=
65c199a2
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Tim Walker [Tue, 22 Jan 2013 20:53:53 +0000 (21:53 +0100)]
flac: don't check the number of channels before setting the channel layout.
This is unnecessary, as ff_flac_set_channel_layout can handle any number of channels.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Martin Storsjö [Wed, 6 Feb 2013 14:34:39 +0000 (16:34 +0200)]
h264chroma: x86: Fix building with yasm disabled
Signed-off-by: Martin Storsjö <martin@martin.st>
Diego Biurrun [Fri, 18 Jan 2013 22:58:47 +0000 (23:58 +0100)]
rv34: Drop now unnecessary dsputil dependencies
Diego Biurrun [Sat, 19 Jan 2013 02:34:47 +0000 (03:34 +0100)]
dsputil: Separate h264chroma
Anton Khirnov [Wed, 30 Jan 2013 15:37:31 +0000 (16:37 +0100)]
mpegvideo: initialize dummy reference frames.
Do not rely on get_buffer initializing them.
Changes yadif tests (off by one in one border pixel), because yadif
reads from those uninitialized lines.
Anton Khirnov [Wed, 30 Jan 2013 14:04:51 +0000 (15:04 +0100)]
nuv: do not rely on get_buffer() initializing the frame.
Anton Khirnov [Wed, 30 Jan 2013 13:33:53 +0000 (14:33 +0100)]
yop: initialize palette to 0
The FATE sample contains some pixels with value 0, but the palette
stored in the file contains only values from 16 up. Because the default
and cmdutils get_buffer() initialize the data to 0x80, they appear as
gray dots.
After this commit they change to black dots, which is probably still
incorrect but less visible and doesn't rely on get_buffer() initializing
the data.
Anton Khirnov [Wed, 30 Jan 2013 06:15:04 +0000 (07:15 +0100)]
yop: check for input overreads.
CC:libav-stable@libav.org
Anton Khirnov [Wed, 30 Jan 2013 06:00:50 +0000 (07:00 +0100)]
yop: check that extradata is large enough.
CC:libav-stable@libav.org
Kostya Shishkov [Wed, 30 Jan 2013 05:42:17 +0000 (06:42 +0100)]
qtrle: fix the topmost line for 1bit
Signed-off-by: Anton Khirnov <anton@khirnov.net>
CC:libav-stable@libav.org
Kostya Shishkov [Tue, 29 Jan 2013 18:53:04 +0000 (19:53 +0100)]
xxan: properly handle odd heights.
Duplicate the last one or two chroma lines.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
CC:libav-stable@libav.org
Anton Khirnov [Tue, 29 Jan 2013 16:19:08 +0000 (17:19 +0100)]
fraps: fix off-by one bug for version 1.
CC:libav-stable@libav.org
Anton Khirnov [Tue, 29 Jan 2013 11:42:54 +0000 (12:42 +0100)]
aasc: fix output for msrle compression.
The bottom line was invalid before.
CC:libav-stable@libav.org
Anton Khirnov [Tue, 29 Jan 2013 11:24:09 +0000 (12:24 +0100)]
msrledec: check bounds before constructing a possibly invalid pointer,
CC:libav-stable@libav.org
Anton Khirnov [Sat, 26 Jan 2013 21:04:49 +0000 (22:04 +0100)]
cmdutils: remove ansi from the list of broken codecs.
It's not relying on get_buffer() initializing the frame since
99e36ddd3ee57c38e6ca9e240ba518848487f849.
Anton Khirnov [Sat, 26 Jan 2013 21:02:19 +0000 (22:02 +0100)]
cdgraphics: do not rely on get_buffer() initializing the frame.
Setting it to zero (instead of 128, as the default get_buffer() does)
also produces more correctly-looking output.
Anton Khirnov [Sat, 26 Jan 2013 20:10:54 +0000 (21:10 +0100)]
svq1: replace struct svq1_frame_size with an array.
It is used as an array in svq1enc, so this is more correct.
Anton Khirnov [Sat, 26 Jan 2013 19:49:16 +0000 (20:49 +0100)]
vf_yadif: silence a warning.
clang says:
libavfilter/vf_yadif.c:192:28: warning: incompatible pointer types assigning to
'void (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, int, int, int, int, int)'
from 'void (uint16_t *, uint16_t *, uint16_t *, uint16_t *, int, int, int, int, int)'
Diego Biurrun [Tue, 5 Feb 2013 23:44:00 +0000 (00:44 +0100)]
asf: K&R formatting cosmetics
Vladimir Pantelic [Tue, 5 Feb 2013 12:31:43 +0000 (13:31 +0100)]
vc1dec: use codec_id instead of codec_tag for VC1IMAGE
the rest of the code is using codec_id everywhere already
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Luca Barbato [Tue, 5 Feb 2013 21:56:24 +0000 (22:56 +0100)]
sh4: drop unused functions
{avg,put}_pixels4_c are not used.
Diego Biurrun [Tue, 5 Feb 2013 21:26:57 +0000 (22:26 +0100)]
sh4: Fix silly type vs. variable name search and replace typo
Diego Biurrun [Tue, 5 Feb 2013 14:32:24 +0000 (15:32 +0100)]
configure: Group all hwaccels together in a separate variable
Diego Biurrun [Fri, 1 Feb 2013 09:31:59 +0000 (10:31 +0100)]
Add av_cold attributes to arch-specific init functions
Diego Biurrun [Tue, 29 Jan 2013 21:13:55 +0000 (22:13 +0100)]
Use ptrdiff_t instead of int for {avg, put}_pixels line_size parameter.
This avoids SIMD-optimized functions having to sign-extend their
line size argument manually to be able to do pointer arithmetic.
Diego Biurrun [Fri, 1 Feb 2013 12:14:31 +0000 (13:14 +0100)]
avfilter: x86: consistent filenames for filter optimizations
Anton Khirnov [Thu, 31 Jan 2013 19:24:06 +0000 (20:24 +0100)]
mpegvideo: simplify REBASE_PICTURE
Always evaluate to NULL when the source Picture is not located in the
MpegEncContext.picture array. That will only happen for
next/last_picture_ptr when updating the thread context during h264 frame
threaded decoding, where they will point to elements of ref_list. Since
ref_list is not copied during updating the context and is invalid until
it is constructed for the current slice, there is no point in doing
anything complicated with next/last_picture_ptr, as they will get
updated when the ref_list is filled.
Diego Biurrun [Tue, 22 Jan 2013 00:39:37 +0000 (01:39 +0100)]
vf_hqdn3d: x86: Add proper arch optimization initialization
Diego Biurrun [Fri, 1 Feb 2013 09:27:45 +0000 (10:27 +0100)]
Use proper "" quotes for local header #includes
Diego Biurrun [Fri, 1 Feb 2013 00:54:19 +0000 (01:54 +0100)]
ppc: fmtconvert: Drop two unused variables.
Anton Khirnov [Thu, 31 Jan 2013 20:07:34 +0000 (21:07 +0100)]
bink demuxer: set framerate.
Anton Khirnov [Thu, 31 Jan 2013 20:02:06 +0000 (21:02 +0100)]
bink demuxer: check malloc return value
Anton Khirnov [Thu, 31 Jan 2013 19:58:27 +0000 (20:58 +0100)]
bink: fix a check for the first frame.
Packet pts is a very unreliable indicator, use
AVCodecContext.frame_number instead.
Diego Biurrun [Thu, 31 Jan 2013 18:47:22 +0000 (19:47 +0100)]
doc/developer: Drop obsolete MPlayer reference
Diego Biurrun [Thu, 31 Jan 2013 18:37:08 +0000 (19:37 +0100)]
doc/developer: Add ISC license to list of acceptable licenses
Diego Biurrun [Thu, 31 Jan 2013 18:34:37 +0000 (19:34 +0100)]
doc/developer: Add web links for all suggested licenses
Diego Biurrun [Tue, 29 Jan 2013 18:28:07 +0000 (19:28 +0100)]
x86: hpel: Move {avg,put}_pixels16_sse2 to hpeldsp
Diego Biurrun [Wed, 30 Jan 2013 23:50:51 +0000 (00:50 +0100)]
configure: Add a comment indicating why uclibc is checked before glibc
Diego Biurrun [Wed, 30 Jan 2013 23:43:18 +0000 (00:43 +0100)]
configure: Move newlib libc check before mingw libc check
On Cygwin systems MinGW headers can be present if the corresponding
packages have been installed. Since the MinGW libc is checked for
first, this results in newlib getting misdetected as MinGW libc.
Diego Biurrun [Tue, 29 Jan 2013 17:00:34 +0000 (18:00 +0100)]
avisynth: Change demuxer name to avoid conflicts with AVS
Martin Storsjö [Thu, 31 Jan 2013 08:19:57 +0000 (10:19 +0200)]
mpegvideo: Do REBASE_PICTURE with byte pointers
REBASE_PICTURE (more specifically, this half of it) takes a Picture
pointer that points into one larger struct, finds the offset of
that Picture within the struct and finds the corresponding field
within another instance of a similar struct.
The pointer difference "pic - (Picture*)old_ctx" is a value given
in sizeof(Picture) units, and when applied back on
(Picture*)new_ctx gets multiplied back with sizeof(Picture). Many
compilers seem to optimize out this division/multiplication, but
not all do.
GCC 4.2 on OS X doesn't seem to remove the division/multiplication,
therefore the new pointer didn't turn out to point to exactly
the right place in the new struct since it only had sizeof(Picture)
granularity (and the Picture is not aligned on a sizeof(Picture)
boundary within the encompassing struct). This bug has been present
before
47318953d as well - with H264, pointers to h->ref_list[0][0]
pointed to 88 bytes before h->ref_list[0][0] after the rebase. After
shrinking Picture, the difference ended up even larger, making
writes via such a Picture pointer overwrite other fields at random
in H264Context, ending up in crashes later.
This fixes H264 multithreaded decoding on OS X with GCC 4.2.
Signed-off-by: Martin Storsjö <martin@martin.st>
Ronald S. Bultje [Tue, 29 Jan 2013 03:56:55 +0000 (19:56 -0800)]
dsputil: remove unused functions copy_block{2, 4, 8, 16}.
Martin Storsjö [Tue, 29 Jan 2013 17:10:04 +0000 (19:10 +0200)]
movenc: Simplify code by using avio_wb24
Signed-off-by: Martin Storsjö <martin@martin.st>
Luca Barbato [Tue, 29 Jan 2013 13:34:30 +0000 (14:34 +0100)]
bfin: unbreak compilation
Added a missing header file.
Anton Khirnov [Mon, 21 Jan 2013 20:48:49 +0000 (21:48 +0100)]
vf_delogo: fix copying the input frame.
CC:libav-stable@libav.org
Anton Khirnov [Mon, 21 Jan 2013 20:10:54 +0000 (21:10 +0100)]
vf_delogo: fix an uninitialized read.
CC:libav-stable@libav.org
Anton Khirnov [Sat, 19 Jan 2013 08:15:37 +0000 (09:15 +0100)]
h264: remove obsolete comment.
Anton Khirnov [Sun, 13 Jan 2013 16:54:50 +0000 (17:54 +0100)]
mpegvideo: remove some unused variables from Picture.
Anton Khirnov [Mon, 7 Jan 2013 10:39:56 +0000 (11:39 +0100)]
utvideoenc/v410enc: do not set AVFrame.reference.
That field will be deprecated.
Anton Khirnov [Fri, 28 Dec 2012 08:54:29 +0000 (09:54 +0100)]
pthread: make ff_thread_release_buffer idempotent.
I.e. don't do anything on already released frames.
Anton Khirnov [Sat, 5 Jan 2013 10:45:51 +0000 (11:45 +0100)]
mvi: set framerate
This container does not store timestamps and thus supports CFR only.
Anton Khirnov [Thu, 3 Jan 2013 16:19:01 +0000 (17:19 +0100)]
rawdec: use AVPALETTE_SIZE instead of magic constants.
Anton Khirnov [Thu, 27 Dec 2012 08:01:38 +0000 (09:01 +0100)]
mimic: remove a pointless cast.
Anton Khirnov [Sun, 9 Dec 2012 17:55:53 +0000 (18:55 +0100)]
mdec: return meaningful error codes.
Anton Khirnov [Sun, 9 Dec 2012 17:52:55 +0000 (18:52 +0100)]
mdec: cosmetics, reformat
Anton Khirnov [Sun, 9 Dec 2012 17:44:44 +0000 (18:44 +0100)]
mdec: merge mdec_common_init() into decode_init().
There is no point in keeping those two functions separate.
Anton Khirnov [Wed, 21 Nov 2012 13:55:05 +0000 (14:55 +0100)]
eatgv: use fixed-width types where appropriate.
Diego Biurrun [Sat, 26 Jan 2013 11:19:34 +0000 (12:19 +0100)]
x86: Simplify some arch conditionals
Diego Biurrun [Mon, 28 Jan 2013 19:22:54 +0000 (20:22 +0100)]
bfin: Separate VP3 initialization code
Luca Barbato [Mon, 28 Jan 2013 19:19:07 +0000 (20:19 +0100)]
bfin: update VP3 idct
The block must be set to 0.
Michael Niedermayer [Sun, 27 Jan 2013 14:50:26 +0000 (15:50 +0100)]
x86: hpeldsp: Fix a typo, use the right register
This makes the code actually work.
Signed-off-by: Martin Storsjö <martin@martin.st>
Luca Barbato [Mon, 28 Jan 2013 06:24:51 +0000 (07:24 +0100)]
shorten: fix array subscript is below array bounds warning
Incidentally fixes alpha builds.
Daniel Kang [Sun, 27 Jan 2013 20:28:58 +0000 (20:28 +0000)]
dsputil: Fix error by not using redzone and register name
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Michael Niedermayer [Fri, 25 Jan 2013 20:51:25 +0000 (21:51 +0100)]
swscale: GBRP output support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Martin Storsjö [Fri, 25 Jan 2013 21:16:23 +0000 (23:16 +0200)]
arm: vp8: Fix the plain-armv6 version of vp8_luma_dc_wht
This makes the plain-armv6 version use the same registers as the
armv6t2 version above.
This fixes fate-vp8 on plain-armv6 devices.
Signed-off-by: Martin Storsjö <martin@martin.st>
Daniel Kang [Sun, 27 Jan 2013 07:22:54 +0000 (02:22 -0500)]
dsputil: x86: Correct the number of registers used in put_no_rnd_pixels16_l2
put_no_rnd_pixels16_l2 allocated 5 instead of 6 registers.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Daniel Kang [Sun, 27 Jan 2013 07:14:53 +0000 (02:14 -0500)]
dsputil: add missing HAVE_YASM guard
Fix compile error under
"--disable-optimizations --disable-yasm --disable-inline-asm"
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Rémi Denis-Courmont [Sat, 26 Jan 2013 20:47:55 +0000 (22:47 +0200)]
hwaccel: do not offer unsupported pixel formats
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Rémi Denis-Courmont [Sat, 26 Jan 2013 20:47:54 +0000 (22:47 +0200)]
vdpau: add missing pixel format for H.264
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Daniel Kang [Sun, 27 Jan 2013 03:45:43 +0000 (03:45 +0000)]
dsputil: x86: Convert mpeg4 qpel and dsputil avg to yasm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Ronald S. Bultje [Fri, 25 Jan 2013 06:21:12 +0000 (22:21 -0800)]
Move H264/QPEL specific asm from dsputil.asm to h264_qpel_*.asm.
Luca Barbato [Wed, 23 Jan 2013 16:11:42 +0000 (17:11 +0100)]
doc: update the reference for the title
The recent texi2html exports the title as 'fulltitle_no_texi'.
Anton Khirnov [Mon, 7 Jan 2013 06:46:01 +0000 (07:46 +0100)]
mpegvideo_enc: fix indentation in load_input_picture()
Anton Khirnov [Mon, 7 Jan 2013 06:07:20 +0000 (07:07 +0100)]
mpegvideo_enc: do not modify the input frame.
Anton Khirnov [Sun, 6 Jan 2013 15:50:29 +0000 (16:50 +0100)]
mjpegdec: fix indentation