Michael Niedermayer
edc34c937b
avcodec/utils: Check the return code of av_image_fill_linesizes()
...
Fixes CID1271741
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timothy Gu
0ab25dac2f
cinepakenc: Stop using AVPicture
9 years ago
Andreas Cadhalpun
916da13d6d
cfhd: fix off-by-one error in level check
...
This fixes out-of-bounds writes causing segmentation faults.
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Reviewed-by: Kieran Kunhya <kierank@obe.tv>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Hendrik Leppkes
5fc310f7ca
dca: add emms_c after usage of AV_COPY128
...
Similar to AV_ZERO128, AV_COPY128 can use MMX instructions in x86
9 years ago
Hendrik Leppkes
0b1972d409
dca: add emms_c after AV_ZERO128 macros
...
AV_ZERO64/128 can use MMX on x86.
Reviewed-By: James Almer <jamrial@gmail.com>
9 years ago
Timothy Gu
dd57b316c1
diracdsp_mmx: Fix some more indentations
9 years ago
Timothy Gu
f5e2b8de55
diracdsp_mmx: Fix indentation
9 years ago
Timothy Gu
838abfc1d7
x86: vc1dsp: Convert vc1_inv_trans_*_dc to NASM format
9 years ago
Derek Buitenhuis
792a5cefbe
mpeg12dec: Export GOP timecodes as side data
...
The codec context field was rightly deprecated, and the data
may change per-frame.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
James Almer
77b5b95247
avcodec/dca_core: rename get_vlc function
...
Fixes compilation with TRACE enabled
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Kieran Kunhya
bdd8e02b72
avcodec/cfhd: Make sure we have an end of header tag before allocating a frame.
...
Fixes tickets #5208 and #5209
9 years ago
Hendrik Leppkes
f85cc3bf12
hevc: set profile based on the profile compatibility flags if needed
...
This fixes retrieving a valid profile for many of the FATE conformance samples,
allowing them to be properly decoded by the HWAccel after adding a profile check.
9 years ago
Stephen Hutchinson
70742e599b
libx265: Enable 12-bit encoding
...
The configure detection is bumped to X265_BUILD >= 68,
since API version 68 corresponds with the x265 1.8
release tarball. The warnings inside x265 about
12-bit being experimental were removed prior to API
version 72 a short time later. At this time of
writing, X265_BUILD is at version 80.
12-bit support in the HEVC standard was approved in
October 2014 as part of HEVC Version 2 and published
in January 2015:
http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=12296
http://www.itu.int/rec/T-REC-H.265-201410-S
https://hevc.hhi.fraunhofer.de/rext
Reveiwed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timothy Gu
180f9a0958
all: Make header guard names consistent
9 years ago
Michael Niedermayer
3c8e95ab5d
avcodec/flacenc: Fix prediction_order parameter
...
Fixes regression
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Derek Buitenhuis
e9eb8b3ba2
flacenc: Restore defaults and range for {min,max}_prediction_order
...
This was broken in 243df1351d
.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
foo86
ae5b2c5250
avcodec/dca: add new decoder based on libdcadec
9 years ago
foo86
0930b2dd1f
avcodec/dca: add generic defines
9 years ago
foo86
5b1b536e2b
avcodec/synth_filter: add more filters
9 years ago
foo86
8984806a51
avcodec/synth_filter: fix whitespace
9 years ago
foo86
4a53b83691
avcodec/dca: add math helpers and fixed point DCT
9 years ago
foo86
9a0a3bbeaa
avcodec/dca: add more tables
9 years ago
foo86
64f6d17b40
avcodec/dca: add REV1AUX sync word
9 years ago
foo86
4608996772
avcodec/dca: remove old decoder
...
Remove all files and functions which are not going to be reused,
and disable all functions and FATE tests temporarily which will be.
9 years ago
Paul B Mahol
b4af7d68fe
avcodec/fraps: remove superfluous "Fraps:" from av_log
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
6ffac5d33d
avcodec/rawdec: Switch to monowhite if there is no palette & bpp=1
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Kieran Kunhya
32bf4a72e3
avcodec: Add forgotten minor bump, add Changelog and add Cineform to general.texi
9 years ago
Kieran Kunhya
3485332bf9
avcodec: Cineform HD Decoder
...
Decodes YUV 4:2:2 10-bit and RGB 12-bit files.
Older files with more subbands, skips, Bayer, alpha not supported.
Alpha requires addition of GBRAP12 pixel format.
9 years ago
Carl Eugen Hoyos
31f5fa21b0
lavc/exr: Move setting SAR down.
...
Fixes a theoretical issue if the resolution attribute is written
behind the aspect attribute.
9 years ago
Carl Eugen Hoyos
d391feff54
lavc/v210dec: Allow odd width.
...
The rightmost column is not decoded correctly.
Fixes a part of ticket #5195 .
9 years ago
Clément Bœsch
54ab90c05b
lavc/utils: fix instanciate/instantiate typo
9 years ago
Stephen Hutchinson
0dd201d947
libx265: Remove experimental flag when encoding 4:2:2 and 4:4:4
...
4:2:2 and 4:4:4 support in the HEVC standard was approved in
October 2014 as part of HEVC Version 2 and published in
January 2015:
http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=12296
http://www.itu.int/rec/T-REC-H.265-201410-S
https://hevc.hhi.fraunhofer.de/rext
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Kieran Kunhya
e07e88cd82
avcodec: Remove libvo-aacenc support.
...
The internal encoder is superior to libvo-aacenc.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
9 years ago
Timothy Gu
9ba54c1b82
avcodec: Remove libaacplus
...
TODO: bump minor
It's inferior in quality to fdk-aac and has an arguably more problematic
license.
As early as 2012, a HydrogenAudio user reported:
> It has however one huge advantage: much better quality at low bitrates than
> faac and libaacplus.
(https://hydrogenaud.io/index.php?PHPSESSID=ckiq394pdglka0kj2fin6ij8t7&topic=95989.msg804633#msg804633 )
I myself have made a few spectrograms for a comparison of the two
encoders as well. The FDK output is consistently better than the
libaacplus one, in all bitrates I tested.
libaacplus license is 3GPP + LGPLv2. 3GPP copyright notice is completely
proprietory, as follows:
> No part may be reproduced except as authorized by written permission.
>
> The copyright and the foregoing restriction extend to reproduction in
> all media.
>
> © 2008, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC).
>
> All rights reserved.
(The latest 26410-d00 zip from 3GPP has the same notice, but the copyright
year is changed to 2015)
The copyright part of the FDK AAC license (section 2) is a copyleft
license that permits redistribution under certain conditions (and
therefore the LGPL + libfdk-aac combination is not prohibited by
configure):
> Redistribution and use in source and binary forms, with or without
> modification, are permitted without payment of copyright license fees
> provided that you satisfy the following conditions:
>
> You must retain the complete text of this software license in
> redistributions of the FDK AAC Codec or your modifications thereto in
> source code form.
>
> You must retain the complete text of this software license in the
> documentation and/or other materials provided with redistributions of
> the FDK AAC Codec or your modifications thereto in binary form.
>
> You must make available free of charge copies of the complete source
> code of the FDK AAC Codec and your modifications thereto to recipients
> of copies in binary form.
>
> The name of Fraunhofer may not be used to endorse or promote products
> derived from this library without prior written permission.
>
> You may not charge copyright license fees for anyone to use, copy or
> distribute the FDK AAC Codec software or your modifications thereto.
>
> Your modified versions of the FDK AAC Codec must carry prominent
> notices stating that you changed the software and the date of any
> change. For modified versions of the FDK AAC Codec, the term
> "Fraunhofer FDK AAC Codec Library for Android" must be replaced by the
> term "Third-Party Modified Version of the Fraunhofer FDK AAC Codec
> Library for Android."
9 years ago
James Almer
5893e87537
avcodec/proresdec_lgpl: use av_mod_uintp2
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
1bb3b90db8
avcodec/pngdec: use av_mod_uintp2
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
8514f6dcfd
avcodec/amrwbdec: use av_mod_uintp2
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
6cc156793d
avcodec/dvaudio: add missing header include
...
Should fix make checkheaders
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Mats Peterson
b34c9d1b9d
lavc/rawdec: Use AV_PIX_FMT_PAL8 for raw 1 bpp video in AVI
...
From
https://msdn.microsoft.com/en-us/library/windows/desktop/dd318229%28v=vs.85%29.aspx :
"If biCompression equals BI_RGB and the bitmap uses 8 bpp or less, the
bitmap has a color table immediatelly following the BITMAPINFOHEADER
structure. The color table consists of an array of RGBQUAD values. The
size of the array is given by the biClrUsed member. If biClrUsed is
zero, the array contains the maximum number of colors for the given
bitdepth; that is, 2^biBitCount colors."
Nothing about "monochrome" here. Unfortunately, pal8 to monow conversion
seems a bit flaky, but that's another story.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
2d163cbdab
avcodec/huffyuvenc: Remove duplicate include
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timothy Gu
e74378aa8c
amrwbdec_mips: Add missing ff_ prefix
9 years ago
Timothy Gu
44304ae322
all: Add missing header guards
9 years ago
Vittorio Giovara
b340bd8a58
libx264: Make sure to preserve default option values
...
The private options chromaoffset, sc_threshold, and noise_reduction
were set to 0 rather than -1, and were always initializing values
in libx264 rather than letting the library use its default.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
cb06be6136
avcodec/libx264: Fix sc_threshold after 30c1bdb87c
...
After the merge the default threshold was unconditionally overwritten
A similar fix was written by Vittorio Giovara, but i didnt see that before
i wrote this and it also doesnt apply cleanly
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Derek Buitenhuis
1a2d6055be
avcodec/frame_thread_encoder: Check the private option for huffy's context modelling
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
James Almer
c792528970
x86/imdct36: use extractps inside the STORE macro
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
wm4
14a90c9ef0
mmaldec: limit internal buffering
...
This uses a new MMAL feature, which limits the number of extra frames
that can be buffered within the decoder. VIDEO_MAX_NUM_CALLBACKS can
be defined as positive or negative number. Positive numbers are
absolute, and can lead to deadlocks if the user underestimates the
number of required buffers. Negative numbers specify the number of extra
buffers, e.g. -1 means no extra buffer, (-1-N) means N extra buffers.
Set a gratuitous default of -11 (N=10). This is much lower than the
firmware default, which appears to be 96.
This is backwards compatible, but needs a symbol only present in newer
firmware headers. (It's an enum item, so it requires a check in
configure.)
9 years ago
wm4
7b1b53f3a4
mmaldec: support MPEG-4
...
I guess this means part 2 in both cases. Not sure which profiles exactly
are actually supported properly.
9 years ago
wm4
d27a12cb09
mmaldec: print the MMAL format FourCC automatically
...
Slight simplification. The result is the same. Also, change the
wording of the message as requested in patch review.
9 years ago
Derek Buitenhuis
e8c5d5f429
snow: Move scenechange_threshold to a private option
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago