Timothy Gu
ec234ccea4
mem: Order function prototypes semantically
2016-08-02 15:17:31 -07:00
Timothy Gu
1fcf243216
mathematics: Make function prototypes identical to definitions
...
Doxygen gets confused by this.
2016-08-02 09:01:09 -07:00
Carl Eugen Hoyos
5aede05120
lavu/hwcontext_vaapi: Fix compilation if VA_FOURCC_ABGR is not defined.
...
Fixes ticket #5484 .
2016-08-02 17:07:41 +02:00
Timothy Gu
39211cb9aa
murmur3: Add Doxygen documentation
...
The interface has been stable for some time now.
2016-08-02 07:50:44 -07:00
Timothy Gu
0a7a4e33f3
avutil: Add detailed Doxygen description to a few hashes
2016-08-02 07:48:21 -07:00
Timothy Gu
19d7098c9e
avutil: Group hash functions separately in Doxygen
2016-08-02 07:48:08 -07:00
Timothy Gu
04da20e58f
dynarray: Change AV_ to FF_ for AV_DYNARRAY_ADD
...
The header is not installed and the macro isn't used outside libavutil,
so it is obviously privat to libavutil. Make the name reflect that.
2016-07-31 10:19:03 -07:00
Timothy Gu
22df70e9ed
doxygen: Add a note on libavutil's modular nature
2016-07-29 19:01:40 -07:00
Zhao Zhili
65b2feb890
avutil/mem: fix memleak
...
The original code assumes av_realloc() will free ptr if size is zero.
The assumes is incorrect now.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-07-28 12:09:05 +02:00
James Almer
fb91850fe1
avutil/frame: access avframe fields directly in get_frame_defaults()
...
The accessors are needed only from outside libavutil.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-07-25 17:37:18 -03:00
Kacper Michajłow
69630f4d30
libavutil/opt: Small bugfix in example.
...
Fix const corectness and zero init the struct. This example code would actually crash when initializing string.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-07-24 00:41:15 +02:00
Zhao Zhili
450cf400fc
avutil/mem: fix wrong comment
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-07-18 22:52:36 +02:00
Ronald S. Bultje
f0a2b6249b
vp9: add 16x16 idct avx2 (8-bit).
...
checkasm --bench, 10k runs, for *_add_${bpc}_${sub_idct}_${opt}, shows
that it's about 1.65x as fast as the AVX version for the full IDCT, and
similar speedups for the sub-IDCTs:
nop: 24.6
vp9_inv_dct_dct_16x16_add_8_1_c: 6444.8
vp9_inv_dct_dct_16x16_add_8_1_sse2: 638.6
vp9_inv_dct_dct_16x16_add_8_1_ssse3: 484.4
vp9_inv_dct_dct_16x16_add_8_1_avx: 661.2
vp9_inv_dct_dct_16x16_add_8_1_avx2: 311.5
vp9_inv_dct_dct_16x16_add_8_2_c: 6665.7
vp9_inv_dct_dct_16x16_add_8_2_sse2: 646.9
vp9_inv_dct_dct_16x16_add_8_2_ssse3: 455.2
vp9_inv_dct_dct_16x16_add_8_2_avx: 521.9
vp9_inv_dct_dct_16x16_add_8_2_avx2: 304.3
vp9_inv_dct_dct_16x16_add_8_4_c: 7022.7
vp9_inv_dct_dct_16x16_add_8_4_sse2: 647.4
vp9_inv_dct_dct_16x16_add_8_4_ssse3: 467.1
vp9_inv_dct_dct_16x16_add_8_4_avx: 446.1
vp9_inv_dct_dct_16x16_add_8_4_avx2: 297.0
vp9_inv_dct_dct_16x16_add_8_8_c: 6800.4
vp9_inv_dct_dct_16x16_add_8_8_sse2: 598.6
vp9_inv_dct_dct_16x16_add_8_8_ssse3: 465.7
vp9_inv_dct_dct_16x16_add_8_8_avx: 440.9
vp9_inv_dct_dct_16x16_add_8_8_avx2: 290.2
vp9_inv_dct_dct_16x16_add_8_16_c: 6626.6
vp9_inv_dct_dct_16x16_add_8_16_sse2: 599.5
vp9_inv_dct_dct_16x16_add_8_16_ssse3: 475.0
vp9_inv_dct_dct_16x16_add_8_16_avx: 469.9
vp9_inv_dct_dct_16x16_add_8_16_avx2: 286.4
2016-07-11 10:14:58 -04:00
Marton Balint
593987810e
avutil/parseutils: dont assume standard time when parsing a timestamp
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-07-11 01:06:23 +02:00
Clément Bœsch
1cfa350429
Merge commit 'bcc07e2576cb723007bea1238afd019ae2d1b005'
...
* commit 'bcc07e2576cb723007bea1238afd019ae2d1b005':
pixdesc: Use C99 array to list color properties names
Merged-by: Clément Bœsch <u@pkh.me>
2016-07-09 14:21:01 +02:00
Matthieu Bouron
0f2654c9a3
lavc: add mediacodec hwaccel support
2016-07-08 17:02:37 +02:00
Anton Khirnov
d20c118975
hwcontext_qsv: add support for p010
2016-07-03 09:13:29 +02:00
Mark Thompson
4926fa9a4a
hwcontext_vaapi: Add driver quirks to the hwdevice
...
The driver being used is detected inside av_hwdevice_ctx_init() and
the quirks field then set from a table of known device. If this
behaviour is unwanted, the user can also set the quirks field
manually.
Also adds the Intel i965 driver quirk (it does not destroy parameter
buffers used in a call to vaRenderPicture()) and detects that driver
to set it.
2016-07-02 14:09:54 +01:00
Anton Khirnov
2ef87815fe
hwcontext_dxva2: add support for p010
2016-07-02 09:39:24 +02:00
Hendrik Leppkes
b7c5f88523
pixfmt: add P010 pixel format
...
P010 is the 10-bit variant of NV12 (planar luma, packed chroma), using two
bytes per component to store 10-bit data plus 6-bit zeroes in the LSBs.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-07-02 09:35:23 +02:00
Michael Niedermayer
042fb69deb
avutil/frame: Move new field to the end of AVFrame
...
This fixes part of Ticket5676
This fixes kodi, mpv, chromium and ffplay build against 3.0 and linked to 3.1
This is a similar ABI fix to 1eb43af1a0
Approved-by: BBB
Approved-by: jamrial
Approved-by: BtbN
Approved-by: nevcairiel
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-30 17:43:01 +02:00
Mark Thompson
f62bb216ac
hwcontext_vaapi: allow transfers to/from any size of sw frame
...
The hw frame used as reference has an attached size but it need not
match the actual size of the surface, so enforcing that the sw frame
used in copying matches its size exactly is not useful.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-06-28 08:32:11 +02:00
Anton Khirnov
fdfe01365d
hwcontext: allocate the destination frame for the pool size
...
The source frame may be cropped, so that its dimensions are smaller than
the pool dimensions. The transfer_data API requires the allocated size
of the destination frame to be the same as the pool size.
2016-06-28 08:31:28 +02:00
Anton Khirnov
5fcae3b3f9
hwcontext: clarify the behaviour of transfer_data() for cropped frames
2016-06-28 08:30:59 +02:00
Vittorio Giovara
444a36269f
pixdesc: Fix AVCOL_TRC_BT2020_12 name
2016-06-27 12:27:53 -04:00
Vittorio Giovara
f172e22d6a
pixdesc: Add aliases to SMPTE color properties
...
Drop ST from names and symbols, it does not add anything distinctive or
descriptive.
2016-06-27 12:27:13 -04:00
Matthieu Bouron
0acc170aad
Merge commit '535a742c2695a9e0c586b50d7fa76e318232ff24'
...
* commit '535a742c2695a9e0c586b50d7fa76e318232ff24':
build: Change structure of the linker version script templates
Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
2016-06-27 17:56:47 +02:00
Matthieu Bouron
9eb3da2f99
asm: FF_-prefix internal macros used in inline assembly
...
See merge commit '39d6d3618d48625decaff7d9bdbb45b44ef2a805'.
2016-06-27 17:21:18 +02:00
Hendrik Leppkes
06a0e18435
hwcontext_dxva2: Use GetDesktopWindow instead of GetShellWindow
...
Improves compatibility with some MinGW variants,
see 771537edcf
2016-06-26 15:34:40 +02:00
Hendrik Leppkes
ed5d03ff6f
Merge commit 'b8bf9194af602cf3a4bcd19a5e278e3d6d69f8fa'
...
* commit 'b8bf9194af602cf3a4bcd19a5e278e3d6d69f8fa':
hwcontext_vaapi: implement device creation
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-06-26 15:25:38 +02:00
Hendrik Leppkes
162370b473
Merge commit '8e70385a8ed06f96f1e9e35cf7b6788a5c56eded'
...
* commit '8e70385a8ed06f96f1e9e35cf7b6788a5c56eded':
hwcontext_dxva2: implement device creation
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-06-26 15:25:24 +02:00
Hendrik Leppkes
c5a0c16850
Merge commit '2e219b491bcc0845248345fdad31231b081e06d1'
...
* commit '2e219b491bcc0845248345fdad31231b081e06d1':
hwcontext_cuda: implement device creation
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-06-26 15:25:12 +02:00
Hendrik Leppkes
613ac3bf82
Merge commit '38392b2af815898b8716826c4e29d95c04fb2647'
...
* commit '38392b2af815898b8716826c4e29d95c04fb2647':
hwcontext_vdpau: implement device creation
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-06-26 15:24:53 +02:00
Hendrik Leppkes
481f320aa3
Merge commit '1c9e8616c535ef496e7ee8a5cbc5e9e972a6977d'
...
* commit '1c9e8616c535ef496e7ee8a5cbc5e9e972a6977d':
hwcontext: add a function for opening devices
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-06-26 15:23:24 +02:00
Clément Bœsch
b77f62e27f
Merge commit 'ded4a6543dfb5a2f1d9f7fb8d3ab27a1872c22b3'
...
* commit 'ded4a6543dfb5a2f1d9f7fb8d3ab27a1872c22b3':
xtea-test: Use struct allocation functions from the API
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-24 11:16:52 +02:00
Clément Bœsch
b6310ab6b5
Merge commit '8131bd4c22ad59b040173f67a5b2edb75863e801'
...
* commit '8131bd4c22ad59b040173f67a5b2edb75863e801':
blowfish-test: Use struct allocation functions from the API
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-24 11:14:23 +02:00
Clément Bœsch
1ca383c8d4
Merge commit 'a86ef80494d759807a5ef8dd12838f0690092e37'
...
* commit 'a86ef80494d759807a5ef8dd12838f0690092e37':
blowfish-test: Return different values for different errors
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-24 11:10:35 +02:00
Clément Bœsch
abb3cc46d5
Merge commit '0c4468dc185fa8b9e7d6add914595c5e928b24fd'
...
* commit '0c4468dc185fa8b9e7d6add914595c5e928b24fd':
stereo3d: Add API to get name from value or value from name
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-23 12:38:51 +02:00
Hendrik Leppkes
0c312a4562
hwcontext_dxva2: support P010 10-bit surfaces
2016-06-22 23:28:47 +02:00
Hendrik Leppkes
3689efea3d
Merge commit 'c46db38cde8e8fd8ecb1c6602f10ec0e002f29a8'
...
* commit 'c46db38cde8e8fd8ecb1c6602f10ec0e002f29a8':
hwcontext: add a dxva2 implementation
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-06-22 22:38:49 +02:00
Clément Bœsch
5d48e4eafa
Merge commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196'
...
* commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196':
tests: Move all test programs to a subdirectory
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-22 13:44:34 +02:00
Clément Bœsch
5558ff3a9f
Merge commit '257f00ec1ab06a2a161f535036c6512f3fc8e801'
...
* commit '257f00ec1ab06a2a161f535036c6512f3fc8e801':
Split global .gitignore file into per-directory files
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-22 11:28:51 +02:00
Clément Bœsch
e4c07dc4b7
Merge commit '1f77e634bb838f71ff21923b5e9fe3104c831c52'
...
* commit '1f77e634bb838f71ff21923b5e9fe3104c831c52':
colorspace: Add support for BT709
See 9779b62624
Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21 22:16:16 +02:00
Clément Bœsch
8ef57a0d61
Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'
...
* commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb':
cosmetics: Fix spelling mistakes
Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21 21:55:34 +02:00
Mark Thompson
fe498ef514
hwcontext_vaapi: Return all formats for constraints without config
...
No longer make a dummy device configuration to query. Instead, just
return everything we recognise from the whole format list. Also
change the device setup code to query that list only, rather than
intersecting it with the constraint output.
This makes hwupload more usable on mesa/gallium where the video
processor only declares support for RGB formats, making it unable to
deal with YUV formats before this patch. It might introduce some
different trickier failures in the internal upload/download code
because the set of allowed formats there has changed, though I didn't
find any obvious regressions with i965.
2016-06-21 20:42:22 +01:00
Anton Khirnov
32c8359093
lavc: export the timestamps when decoding in AVFrame.pts
...
Currently it's exported as AVFrame.pkt_pts, which is also the only use
for that field. The reason it is done like this is that lavc used to
export various codec-specific "timing" information in AVFrame.pts, which
is not done anymore.
Since it is confusing to the callers to have a separate field which is
used only for decoder timestamps and nothing else, deprecate pkt_pts and
use just AVFrame.pts everywhere.
2016-06-21 19:54:42 +02:00
Anton Khirnov
59e7361cc7
hwcontext: add a QSV implementation
2016-06-21 19:53:37 +02:00
Vittorio Giovara
a816432337
pixdesc: Add new SMPTE 431, 432, and 2085 color properties
...
Appeared in H.264 2016/02.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-06-21 09:29:04 -04:00
Neil Birkbeck
5d560d38de
pixfmt: Add ARIB STD-B76 color transfer characteristic
...
Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma )
based on the standardization in ARIB STD-B67:
http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf
The choice of enum value of 18 is consistent with HEVC:
http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481
And also with latest proposal for color format in mkv:
https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-06-21 09:02:46 -04:00
Clément Bœsch
5605c1b3c0
Merge commit 'f2422b58756ba97e3cbadc190f1ed950aa201ec7'
...
* commit 'f2422b58756ba97e3cbadc190f1ed950aa201ec7':
testprogs: Mark some tables as static const
Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-21 12:58:56 +02:00
Jan Sebechlebsky
f5273197dc
avutil/threadmessage.h: Fix swapped comments
...
Fix swapped descriptions of av_thread_message_queue_set_err_send
and av_thread_message_queue_set_err_recv.
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-06-16 23:54:51 +02:00
Vittorio Giovara
bcc07e2576
pixdesc: Use C99 array to list color properties names
2016-06-13 11:51:18 -04:00
Matt Oliver
5ca44ebd99
lavu/intmath.h: fix compilation with msvc10.
...
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2016-06-13 13:49:24 +10:00
Carl Eugen Hoyos
4c9d1c6f9a
lavu/file_open: Use current directory for temporary files also on Android.
...
Fixes ticket #5620 .
2016-06-11 22:41:18 +02:00
Paul B Mahol
8100426fe4
avutil: add 10-bit planar RGB with alpha
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-10 17:17:12 +02:00
Michael Niedermayer
37bb600405
avutil/opt: Fix max/min checking in av_opt_set() for AV_OPT_TYPE_VIDEO_RATE
...
Fixes Ticket5618
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-09 10:35:13 +02:00
James Almer
172af20852
x86/showcqt: use three operand format for some instructions
...
Fixes failures with yasm 1.1.0 and older
Signed-off-by: James Almer <jamrial@gmail.com>
2016-06-08 19:37:08 -03:00
James Almer
99b899483e
avutil/x86util: move haddps sse emulation from showcqt
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-06-08 14:18:00 -03:00
Michael Niedermayer
13aae86a2b
avutil/frame: Assert that width/height/channels is 0 for the destination of av_frame*_ref()
...
This should detect caes where these functions are called in unclean destinations
2016-06-05 17:12:35 +02:00
Jan Sebechlebsky
0e84eee719
libavutil/fifo: Fix fifo grow step
...
Fifo was reallocating always to twice of the requested size.
This fixes it to reallocate to requested size, or twice of the
original size - whichever is greater.
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-03 14:49:56 +02:00
Mark Thompson
7e0623b70b
vaapi: Enable more libva surface formats
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-02 01:40:51 +02:00
Michael Niedermayer
003a9e4854
avutil/frame: Document avcodec_get_frame_class() and the option naming system
...
Missing docs found by: nevcairiel
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-01 18:12:34 +02:00
Neil Birkbeck
785038c92c
lavu: Adding ARIB STD-B67 (hybrid log-gamma) enum value and transfer function.
...
Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma )
based on the standardization in ARIB STD-B67:
http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf
The choice of enum value of 18 is consistent with HEVC:
http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481
And also with latest proposal for color format in mkv:
https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal
The implementation assumes a nominal input range of [0, 1], which is
consistent with HEVC.
Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-01 16:32:08 +02:00
Diego Biurrun
535a742c26
build: Change structure of the linker version script templates
...
Split version files into one line per symbol/directive to allow compatibility
with the Solaris linker without preprocessing and eliminate $ from version file
templates to simplify the postprocessing shell command.
2016-05-29 16:43:11 +02:00
Michael Niedermayer
52ca24bdd2
avutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-29 14:45:07 +02:00
Diego Biurrun
1e9c5bf4c1
asm: FF_-prefix internal macros used in inline assembly
...
These warnings conflict with system macros on Solaris, producing
truckloads of warnings about macro redefinition.
2016-05-28 19:18:26 +02:00
Michael Niedermayer
d1520a6cfd
avutil/softfloat: Document public constants and a few public functions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-28 14:24:20 +02:00
Anton Khirnov
b8bf9194af
hwcontext_vaapi: implement device creation
2016-05-26 15:40:34 +02:00
Anton Khirnov
8e70385a8e
hwcontext_dxva2: implement device creation
2016-05-26 15:40:33 +02:00
Anton Khirnov
2e219b491b
hwcontext_cuda: implement device creation
2016-05-26 15:40:33 +02:00
Anton Khirnov
38392b2af8
hwcontext_vdpau: implement device creation
2016-05-26 15:40:33 +02:00
Anton Khirnov
1c9e8616c5
hwcontext: add a function for opening devices
2016-05-26 15:40:32 +02:00
dsmudhar
6b852a3fd9
libavutil/opencl: fixed uninitialized var warning
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-23 11:28:03 +02:00
Michael Niedermayer
b50bd69516
avutil/eval-test: Check av_expr_parse_and_eval() for failure and also check it in the fate test
...
Fixes CID1361940
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-20 19:32:02 +02:00
Diego Biurrun
ded4a6543d
xtea-test: Use struct allocation functions from the API
2016-05-19 09:55:55 +02:00
Diego Biurrun
8131bd4c22
blowfish-test: Use struct allocation functions from the API
2016-05-19 09:55:55 +02:00
Diego Biurrun
a86ef80494
blowfish-test: Return different values for different errors
2016-05-19 09:55:55 +02:00
Vittorio Giovara
0c4468dc18
stereo3d: Add API to get name from value or value from name
...
Use it in av_dump_format() instead of a huge switch case.
2016-05-17 12:25:27 -04:00
Anton Khirnov
c46db38cde
hwcontext: add a dxva2 implementation
2016-05-17 09:11:25 +02:00
Anton Mitrofanov
2fb1d17a5a
x86inc: Enable AVX emulation in additional cases
...
Allows emulation to work when dst is equal to src2 as long as the
instruction is commutative, e.g. `addps m0, m1, m0`.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-05-16 10:31:24 +02:00
Anton Mitrofanov
300fb0df84
x86inc: Improve handling of %ifid with multi-token parameters
...
The yasm/nasm preprocessor only checks the first token, which means that
parameters such as `dword [rax]` are treated as identifiers, which is
generally not what we want.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-05-16 10:31:20 +02:00
Anton Mitrofanov
8d02579fae
x86inc: Fix AVX emulation of some instructions
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-05-16 10:31:17 +02:00
Henrik Gramner
ba3eb745cc
x86inc: Fix AVX emulation of scalar float instructions
...
Those instructions are not commutative since they only change the first
element in the vector and leave the rest unmodified.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-05-16 10:31:13 +02:00
ZhouXiaoyong
d680ab1c46
avutil/mips: header asmdefs.h add some PTR_ macros for loongson
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-14 04:46:52 +02:00
James Almer
004b582386
avutil/lzo: split test out into a separate file
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-13 22:48:56 -03:00
James Almer
d8ef8b960a
avutil/sha512-test: fix memleak
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-13 16:53:44 -03:00
James Almer
7ee0e0ca1d
avutil/sha-test: fix memleak
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-13 16:53:26 -03:00
James Almer
64dbfcc415
avutil/ripemd-test: fix memleak
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-13 16:53:18 -03:00
James Almer
f92d2f3292
avutil/aes-test: fix memleak
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-13 16:53:08 -03:00
Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
2016-05-13 14:55:56 +02:00
Diego Biurrun
257f00ec1a
Split global .gitignore file into per-directory files
2016-05-13 14:55:56 +02:00
Derek Buitenhuis
92d934106c
Merge commit '785bfb1d7bb8de567c3aac1d9cc369b55ac9fb7b'
...
* commit '785bfb1d7bb8de567c3aac1d9cc369b55ac9fb7b':
pixfmt: fix wrong comment
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-12 14:17:13 +01:00
James Almer
cd244fae98
avutil/cpu-test: Fix includes (needed for HAVE_*)
...
Commit message by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-12 03:48:32 +02:00
Michael Niedermayer
65ffc0b1ed
avutil/float_dsp-test: Add include config.h for HAVE_*
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-12 03:48:32 +02:00
James Almer
7d8e19a5c4
avutil: make crypto testprogs include headers only
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-11 19:47:35 -03:00
Derek Buitenhuis
c71c3b9ff4
Merge commit 'a0f469da744db83db32f3fe13186ee4aa2bc7dc5'
...
* commit 'a0f469da744db83db32f3fe13186ee4aa2bc7dc5':
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-11 19:46:17 +01:00
Derek Buitenhuis
4f173d055c
Merge commit '798845ce7e5b7fdd17c7269c5d267fb487d9c46f'
...
* commit '798845ce7e5b7fdd17c7269c5d267fb487d9c46f':
testprogs: Add missing libm.h includes
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-11 19:14:36 +01:00
Derek Buitenhuis
96d616052b
Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'
...
* commit 'd12b5b2f135aade4099f4b26b0fe678656158c13':
build: Split test programs off into separate files
Some conversions done by: James Almer <jamrial@gmail.com>
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-11 19:13:03 +01:00
Jan Ekström
1f77e634bb
colorspace: Add support for BT709
...
BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.
2016-05-10 11:30:25 +02:00
Derek Buitenhuis
ca5ec2bf51
Merge commit '01621202aad7e27b2a05c71d9ad7a19dfcbe17ec'
...
* commit '01621202aad7e27b2a05c71d9ad7a19dfcbe17ec':
build: miscellaneous cosmetics
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-09 16:25:28 +01:00
Przemysław Sobala
1a3cff4f7e
libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-09 15:01:31 +02:00
Muhammad Faiz
83065939cb
avutil/parsing: add '\r' as whitespace
...
for compatibility with platforms that treat it
as newline
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2016-05-06 07:35:45 +07:00
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2016-05-04 18:16:21 +02:00
Diego Biurrun
f2422b5875
testprogs: Mark some tables as static const
2016-04-29 16:21:23 +02:00
Michael Niedermayer
492011f3c6
avutil/log: Fix occured typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-28 01:06:54 +02:00
Andreas Weis
333207224f
avutil/log: added test case for av_log_format_line2
...
Signed-off-by: Andreas Weis <github@ghulbus-inc.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-27 19:23:05 +02:00
Andreas Weis
fb9187129c
avutil/log: added av_log_format_line2 which returns buffer length
...
The new function behaves the same as av_log_format_line, but also forwards
the return value from the underlying snprintf call. This will allow
callers to accurately determine the size requirements for the line buffer.
Signed-off-by: Andreas Weis <github@ghulbus-inc.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-27 19:23:05 +02:00
Jan Ekström
9779b62624
pgssubdec: fix subpicture output colorspace and range
...
Functionality used before didn't widen the values from limited to
full range. Additionally, now the decoder uses BT.709 where it
should be used according to the video resolution.
Default for not yet set colorimetry is BT.709 due to most observed
HDMV content being HD.
BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.
Fixes #4637
2016-04-24 23:05:04 +02:00
Michael Niedermayer
a39e3e5e7b
avutil/aes: Remove duplicate include
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-23 02:05:53 +02:00
Derek Buitenhuis
5f587b1daf
Merge commit '3b08d9d932eef09403074d5af31e10d8011e840b'
...
* commit '3b08d9d932eef09403074d5af31e10d8011e840b':
testprogs: K&R formatting cosmetics
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-21 16:50:06 +01:00
Derek Buitenhuis
32c044cbc6
Merge commit '439929859ae0eb9542d3bb8a0c856bd5a1d1ec48'
...
* commit '439929859ae0eb9542d3bb8a0c856bd5a1d1ec48':
testprogs: Clean up #includes
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-21 16:04:17 +01:00
Anton Mitrofanov
e428f3b30c
x86inc: Enable AVX emulation in additional cases
...
Allows emulation to work when dst is equal to src2 as long as the
instruction is commutative, e.g. `addps m0, m1, m0`.
2016-04-20 19:16:22 +02:00
Anton Mitrofanov
4bd5583ace
x86inc: Improve handling of %ifid with multi-token parameters
...
The yasm/nasm preprocessor only checks the first token, which means that
parameters such as `dword [rax]` are treated as identifiers, which is
generally not what we want.
2016-04-20 19:16:22 +02:00
Anton Mitrofanov
42be240ad6
x86inc: Fix AVX emulation of some instructions
2016-04-20 19:16:22 +02:00
Henrik Gramner
8dd3ee9ddd
x86inc: Fix AVX emulation of scalar float instructions
...
Those instructions are not commutative since they only change the first
element in the vector and leave the rest unmodified.
2016-04-20 19:16:22 +02:00
Derek Buitenhuis
e344646c80
Merge commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0'
...
* commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0':
opt: Add av_opt_copy()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-19 19:19:53 +01:00
Thomas Guillem
785bfb1d7b
pixfmt: fix wrong comment
...
The h264/hevc Annex E colour primaries table says that AVCOL_SPC_SMPTE170M is
similar than AVCOL_SPC_SMPTE240M. These two values are not similar than
AVCOL_SPC_BT470BG.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-04-19 13:38:29 +02:00
Derek Buitenhuis
4b23a8137f
Merge commit '52385410b7de012c2562fb5ba8f07a4e1112c4e7'
...
* commit '52385410b7de012c2562fb5ba8f07a4e1112c4e7':
des-test: Move a variable declaration to avoid an ifdef
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-17 19:40:53 +01:00
Anton Khirnov
a0f469da74
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
2016-04-15 10:15:54 +02:00
Derek Buitenhuis
28abb216cb
Merge commit '551c6775abb5e0ad34c26d7e23bc6fbbe8ccc9d4'
...
* commit '551c6775abb5e0ad34c26d7e23bc6fbbe8ccc9d4':
lavu: VAAPI hwcontext implementation
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-14 13:49:55 +01:00
Derek Buitenhuis
eb2da769bd
Merge commit 'd264c720f7b74286840719e506daba39f83b438b'
...
* commit 'd264c720f7b74286840719e506daba39f83b438b':
lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-14 13:46:00 +01:00
Derek Buitenhuis
afccfaf26a
Merge commit 'b1f01e85a92d401a9b29c79f23db36b7685e8c09'
...
* commit 'b1f01e85a92d401a9b29c79f23db36b7685e8c09':
lavu: add a way to query hwcontext frame constraints
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-14 13:33:37 +01:00
Derek Buitenhuis
c849ed8b2f
Merge commit '328e9a15c568843580ff3ff490748d545f16def8'
...
* commit '328e9a15c568843580ff3ff490748d545f16def8':
buffer: drop a reference to a non-existing function from the docs
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-13 17:27:01 +01:00
Derek Buitenhuis
27558679a1
Merge commit '7480d001312d9ba706333ec970264ed9df3f82cb'
...
* commit '7480d001312d9ba706333ec970264ed9df3f82cb':
pixfmt: fix the AV_PIX_FMT_VAAPI_VLD doxy
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-13 17:26:08 +01:00
Derek Buitenhuis
be6b58a981
Merge commit '7a6cf2771414c7ab8bca0811d589f6091a6e2b71'
...
* commit '7a6cf2771414c7ab8bca0811d589f6091a6e2b71':
lavu: improve documentation of some AVFrame functions
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-13 16:11:39 +01:00
Martin Storsjö
798845ce7e
testprogs: Add missing libm.h includes
...
This fixes building on MSVC 2010 and 2012 after d12b5b2f13
.
Signed-off-by: Martin Storsjö <martin@martin.st>
2016-04-11 14:48:24 +03:00
Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
...
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
2016-04-07 16:14:42 +02:00
Diego Biurrun
01621202aa
build: miscellaneous cosmetics
...
Restore alphabetical order in lists, break overly long lines, do some
prettyprinting, add some explanatory section comments, group parts
together that belong together logically.
2016-04-07 15:26:08 +02:00
Stefano Sabatini
e8a9b64410
lavu/base64: add AV_BASE64_DECODE_SIZE() macro
...
This is consistent with the AV_BASE64_SIZE macro and avoids the literal
use of constants in the code.
2016-04-02 12:48:21 +02:00
wm4
f099cb2f8a
lavu: improve documentation of some AVFrame functions
2016-04-01 12:52:12 +02:00
Lou Logan
06eef96b69
fix some a/an typos
...
Signed-off-by: Lou Logan <lou@lrcd.com>
2016-03-28 14:13:17 -08:00
Thilo Borgmann
4ebf0b109c
lavu/dict: Add new flag to allow multiple equal keys.
2016-03-25 17:08:11 +01:00
Diego Biurrun
3b08d9d932
testprogs: K&R formatting cosmetics
2016-03-24 21:45:07 +01:00
Michael Niedermayer
54f43984e1
avutil/parseutils: mark args as static const
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-24 19:31:02 +01:00
Petru Rares Sincraian
f707042c93
Added more tests to libavutil/parseutils.c
...
- Added tests for av_find_info_tag().
- Added test for av_get_known_color_name()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-24 19:29:43 +01:00
Diego Biurrun
439929859a
testprogs: Clean up #includes
2016-03-24 19:17:23 +01:00
Michael Niedermayer
564b4591bb
opt: Add av_opt_copy()
...
This includes documentation and other modifications by
Lukasz Marek and Martin Storsjö.
Signed-off-by: Martin Storsjö <martin@martin.st>
2016-03-24 10:34:15 +02:00
Lukasz Marek
8833f1508b
opt: Add const to av_opt_next
...
Also add const to pointers in static functions within opt.c where
possible/necessary.
Signed-off-by: Martin Storsjö <martin@martin.st>
2016-03-24 10:34:09 +02:00
Petru Rares Sincraian
68e5976543
Refactor libavutil/parseutils.c
...
All tests were in the main method which produces a long main. Now, each test
is in his own method.
I think this produces a more clear code and follows more with the main
priority of FFmpeg "simplicity and small code size"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-24 03:38:12 +01:00
Diego Biurrun
0d2fcdb1c5
opt-test: Merge struct declaration and initialization
2016-03-23 10:14:43 +01:00
Diego Biurrun
d3044cf37f
opt-test: Move some variable declarations to avoid block braces
2016-03-23 10:14:31 +01:00
Diego Biurrun
52385410b7
des-test: Move a variable declaration to avoid an ifdef
2016-03-23 09:35:41 +01:00
Diego Biurrun
a84713e70d
parseutils-test: Move some variable declarations to avoid block braces
2016-03-23 09:35:41 +01:00
Ganesh Ajjanagadde
db1a642cd2
all: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.h
...
The idea is to use ffmath.h for internal implementations of math functions.
Currently, it is used for variants of libm functions, but is by no means
limited to such things.
Note that this is not exported; use lavu/mathematics for such purposes.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
2016-03-22 10:15:31 -07:00
Petru Rares Sincraian
124526ba1a
Added a selftest to libavutil/display.c
...
- Check if av_display_rotation_get() gets the correct degrees
- Check if av_display_rotation_set() sets the correct matrix
- Check if av_display_matrix_flip() changes correct the matrix
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-22 17:24:55 +01:00
Mark Thompson
551c6775ab
lavu: VAAPI hwcontext implementation
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-03-19 15:40:22 +01:00
Mark Thompson
d264c720f7
lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-03-19 15:40:22 +01:00
Mark Thompson
b1f01e85a9
lavu: add a way to query hwcontext frame constraints
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-03-19 15:38:00 +01:00
Ganesh Ajjanagadde
bccc81dfa0
lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)
...
This is ~2x faster for y not an integer on Haswell+GCC, and should
generally be faster due to the fact that anyway powf essentially does
this under the hood. Made an inline function in lavu/internal.h for this
purpose.
Note that there are some accuracy differences, that should generally be
negligible. In particular, FATE still passes on this platform.
Results in ~ 7% speedup in aac encoding with -march=native, Haswell+GCC.
before:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac 6.05s user 0.06s system 104% cpu 5.821 total
after:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac 5.67s user 0.03s system 105% cpu 5.416 total
This is also faster than an alternative approach that pulls in powf, gets rid of
the crufty NaN checks and other special cases, exploits knowledge about the intervals, etc.
This of course does not exclude smarter approaches; just suggests that
there would need to be significant work on this front of lower utility than
searches for hotspots elsewhere.
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
2016-03-18 07:47:25 -07:00
Marton Balint
c3c7a879ba
avutil/dict: add warning to docs about invalidating existing entries when adding a new entry
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-03-15 00:55:16 +01:00