Vicente Olivert Riera
ad16eff64b
mips: add support for R6
...
Understanding the mips32r6 and mips64r6 ISAs in the configure script is
not enough. In order to have full support for MIPS R6 in FFmpeg we need
to be able to build it, and for that we need to make sure we don't use
incompatible assembler code which makes the build fail. Ifdefing the
offending code is sufficient to fix the problem.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-09 20:05:04 +01:00
Michael Niedermayer
9b0eabdcdf
avutil/color_utils: Mark test_data as static const
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-03 21:17:45 +01:00
NagaChaitanya Vellanki
df4b5f076e
Add test for avpriv_get_trc_function_from_trc function
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-03 21:03:04 +01:00
Ganesh Ajjanagadde
7dabc78ce1
lavu/rational: add more info regarding floor(x+0.5) usage
...
Add some more verbose info regarding why the imprecise and slow floor(x+0.5) hack
is used; helpful for future maintenance.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
2016-02-29 19:26:55 -05:00
Reimar Döffinger
4dd4d53531
Document and validate AVFrame plane pointers.
...
Check that the required plane pointers and only
those are set up.
Currently does not enforce anything for the palette
pointer of pseudopal formats as I am unsure about the
requirements.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2016-02-28 13:33:14 +01:00
Michael Niedermayer
b70e9b4906
avutil/imgutils: Assert that the 2nd av_image_fill_linesizes() call in av_image_fill_linesizes() still succeeds
...
Fixes CID1271742
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-28 02:02:50 +01:00
Derek Buitenhuis
1a12eb4a73
Merge commit '29c2d06d67724e994980045afa055c6c34611b30'
...
* commit '29c2d06d67724e994980045afa055c6c34611b30':
cosmetics: Drop empty comment lines
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-24 17:31:44 +00:00
Derek Buitenhuis
cb0355537d
Merge commit 'd847a40888c064cc8c35b546fc5a0ccb69136a7c'
...
* commit 'd847a40888c064cc8c35b546fc5a0ccb69136a7c':
hwcontext_cuda/vdpau: add to skipheaders
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-24 17:24:04 +00:00
Derek Buitenhuis
6992276aca
Merge commit 'ad884d100259e55cb51a4239cd8a4fd5154c2073'
...
* commit 'ad884d100259e55cb51a4239cd8a4fd5154c2073':
hwcontext: add a CUDA implementation
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-24 15:23:16 +00:00
Derek Buitenhuis
63c3e35332
Merge commit '7bc780cd4413f688d3b834037b0f9ddfd6948140'
...
* commit '7bc780cd4413f688d3b834037b0f9ddfd6948140':
pixfmt: add a CUDA hwaccelled format
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-24 15:11:06 +00:00
Kieran Kunhya
4170a44bbc
Add GBRAP12 pixel format
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-24 03:22:31 +01:00
Michael Niedermayer
1ec7a70380
avutil/pixdesc: Make get_color_type() aware of CIE XYZ formats
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-22 03:49:43 +01:00
Diego Biurrun
29c2d06d67
cosmetics: Drop empty comment lines
2016-02-18 15:35:30 +01:00
Paul B Mahol
08acab85d3
avfilter: add loop filters
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-02-18 11:55:00 +01:00
Anton Khirnov
d847a40888
hwcontext_cuda/vdpau: add to skipheaders
2016-02-18 08:47:39 +01:00
Michael Niedermayer
c4ac30909e
avutil/hwcontext: Remove duplicate ;
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-17 21:16:14 +01:00
Derek Buitenhuis
d779d8d771
Merge commit 'a001ce31bc2bcf875a39b5fb22dae49120293b42'
...
* commit 'a001ce31bc2bcf875a39b5fb22dae49120293b42':
hwcontext: add a VDPAU implementation
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-17 16:16:34 +00:00
Derek Buitenhuis
1a708780f3
Merge commit '89923e418b494e337683442ab896d754bc07341a'
...
* commit '89923e418b494e337683442ab896d754bc07341a':
lavu: add a framework for handling hwaccel frames
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-17 16:12:25 +00:00
Derek Buitenhuis
26abd5149e
Merge commit '721a4efc0545548a241080b53ab480e34f366240'
...
* commit '721a4efc0545548a241080b53ab480e34f366240':
buffer: add support for pools using caller data in allocation
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-17 16:07:16 +00:00
Derek Buitenhuis
73bd20c4d2
Merge commit '6695f178a5929eab91d3da7e9023999f1774bd0e'
...
* commit '6695f178a5929eab91d3da7e9023999f1774bd0e':
pixdesc: Use AV_CEIL_RSHIFT in documentation
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-16 16:55:28 +00:00
Derek Buitenhuis
3f462fcf76
Merge commit '1546a41adae818b340acdd9b5dacd6d0a92b6507'
...
* commit '1546a41adae818b340acdd9b5dacd6d0a92b6507':
pixdesc: Drop unneeded deprecation warning guards
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-16 16:54:12 +00:00
James Almer
70d685a77f
x86: use the new helper macros where useful
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-02-14 20:00:21 -03:00
James Almer
73a4589d4b
x86: add some more helper macros to check for slow cpuflags
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-02-14 20:00:17 -03:00
Anton Khirnov
ad884d1002
hwcontext: add a CUDA implementation
2016-02-14 22:08:33 +01:00
Anton Khirnov
7bc780cd44
pixfmt: add a CUDA hwaccelled format
2016-02-14 22:08:22 +01:00
Anton Khirnov
a001ce31bc
hwcontext: add a VDPAU implementation
2016-02-14 22:06:04 +01:00
Anton Khirnov
89923e418b
lavu: add a framework for handling hwaccel frames
2016-02-14 21:36:59 +01:00
Michael Niedermayer
0eb4092c1b
avutil/imgutils: remove special case for aligning the palette
...
This was suggested by wm4 and stefano.
After this patch using align=1 the size used by various functions would not
contain padding, while the palette would be aligned at align>1
This patch makes it required to use align>=4 if the palette is to be accessed
as uint32
As a side-effect It fixes storing pal8 in nut with odd with&height
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-14 21:30:32 +01:00
Anton Khirnov
721a4efc05
buffer: add support for pools using caller data in allocation
...
This should allow using more complex allocators than simple malloc
wrappers.
2016-02-14 21:24:39 +01:00
Marton Balint
ae51f9bd6c
avutil/parseutils: remove 2112 date from fate test
...
It is not supported on 32bit.
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-02-14 20:13:15 +01:00
Marton Balint
f834f0cab6
avutil/parseutils: accept everything in av_parse_time that ff_iso8601_to_unix_time accepts
...
Also parse timezone information previously ignored in ff_iso8601_to_unix_time.
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-02-14 01:46:35 +01:00
Marton Balint
3235241061
avutil/parseutils: use microsecond precision when parsing "now" in av_parse_time()
...
Use av_gettime() instead of time(0) for querying current time.
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-02-14 01:46:35 +01:00
Timothy Gu
123ff81a45
avutil: Remove x86_cpu.h
...
It is private (uninstalled) and unused.
2016-02-13 16:30:26 -08:00
Michael Niedermayer
4099e4a77d
avutil/frame: Free destination qp_table_buf in frame_copy_props()
...
Fixes memleak
Fixes: Ticket4899
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-13 20:57:26 +01:00
Michael Niedermayer
4c920ce777
avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space
...
This allows disabling the alignment by using a compact buffer
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-13 19:49:34 +01:00
Michael Niedermayer
a9b81bfd1c
avutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_name()
...
This will extend the whitelist features to allow blacklisting individual protocols and to
explicitly force everything to be enabled.
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-13 16:40:11 +01:00
Michael Niedermayer
d18df8beb0
avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-13 16:22:45 +01:00
James Almer
be22bd32fe
x86/cpu: set avxslow cpuflag on btver2 CPUs
...
They are also slow when using 256 bit wide registers
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-02-07 16:39:21 -03:00
James Almer
b3b0ecee15
x86/emms: empty the mmx state unconditionally on supported targets
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-02-04 01:49:01 -03:00
James Almer
0711c5bfb8
avutil/aes_crt: free AVAESCTR struct properly
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-02-03 19:33:23 -03:00
Derek Buitenhuis
74f5cb0189
Merge commit 'd336bfcf69fee159e9dba5e5e486ddb1aba61aab'
...
* commit 'd336bfcf69fee159e9dba5e5e486ddb1aba61aab':
pixdesc: fix and extend doxy for av_pix_fmt_get_chroma_sub_sample()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-03 16:59:06 +00:00
Derek Buitenhuis
66e9d2f44e
avutil: Add GOP timecode frame side data
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-01 18:18:17 +00:00
Timothy Gu
180f9a0958
all: Make header guard names consistent
2016-01-31 15:44:11 -08:00
Neil Birkbeck
c323c98ee3
libavutil/mastering_display_metadata.h: change fields to be rationals as this is how they are typically coded.
...
(this structure is not referenced anywhere yet)
Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-29 19:08:52 +01:00
Timothy Gu
44304ae322
all: Add missing header guards
2016-01-28 19:49:48 -08:00
James Almer
b624f0660b
x86: Add ymm_reg struct
...
Needed to declare 32-byte long constants
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2016-01-28 00:41:19 +01:00
Derek Buitenhuis
21f9468402
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
...
Libav, for some reason, merged this as a public API function. This will
aid in future merges.
A define is left for backwards compat, just in case some person
used it, since it is in a public header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 16:36:46 +00:00
Michael Niedermayer
f3ace85d88
avutil/opt: check for and handle errors in av_opt_set_dict2()
...
Previously errors could result in random entries to be lost.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-26 17:36:08 +01:00
Hendrik Leppkes
c2869b4640
avutil: 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.
2016-01-26 11:54:01 +01:00
Vittorio Giovara
6695f178a5
pixdesc: Use AV_CEIL_RSHIFT in documentation
2016-01-25 12:02:20 -05:00