Andreas Rheinhardt
211619ad7f
avcodec: Remove the FFT_FIXED_32 define
...
Since the removal of the 16-bit FFT said define is unnecessary as
FFT_FIXED_32 is always !FFT_FLOAT. But one wouldn't believe it when
looking at the code.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
69f120ead7
avcodec/avcodec: Don't include cpu.h
...
It is not used here at all; instead, add it where it is used without
including it or any of the arch-specific CPU headers.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
d947464ad4
avcodec: Remove deprecated AVPicture API
...
Deprecated in a17a766190
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
c81b8e04aa
Avoid intermediate bitcount for number of bytes in PutBitContext
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
James Almer
2995a1f294
avcodec/tests/avpacket: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Anton Khirnov
2644a5d418
lavc: remove tests/options
...
It tests deprecated avcodec_copy_context().
4 years ago
Andreas Rheinhardt
bce9c5e276
avcodec/rangecoder: Move ff_rac_check_termination to tests/rangecoder.c
...
It is only used there.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Andreas Rheinhardt
8c01eb0a31
avcodec/cabac: Move encoder related stuff to libavcodec/tests/cabac.c
...
(This is actually the second time the encoder stuff is removed;
the first was in 8b4119187b62d6932e07aded11d33d3b24e1b42f.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Lynne
151b41c8cc
fft: remove 16-bit FFT and MDCT code
...
No longer used by anything.
Unfortunately the old FFT_FLOAT/FFT_FIXED_32 is left as-is. It's
simply too much work for code meant to be all removed anyway.
4 years ago
Anton Khirnov
c8c2dfbc37
lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h
...
That is a more appropriate place for it.
4 years ago
Anton Khirnov
0d6b4351c6
Remove unnecessary use of avcodec_close().
...
Replace it with avcodec_free_context() or drop it completely as
appropriate.
4 years ago
Josh de Kock
bd2e7b74e1
lavc: stop using deprecated av_codec_next()
...
Signed-off-by: Josh de Kock <josh@itanimul.li>
5 years ago
Zhao Zhili
eafc8afafc
avcodec/tests: add h265_levels to .gitignore
5 years ago
Mark Thompson
e3424575f5
lavc/h265_profile_level: Add unit test
...
Operates in the same way as the h264-levels test.
5 years ago
Decai Lin
ec1e4a8baf
lavc/h264_levels: add MaxMBPS checking and update fate test.
...
1. add MaxMBPS checking for level idc setting to align with AVC spec
AnnexA table A-1/A-6 level limits.
2. update h264 level fate test.
Signed-off-by: Decai Lin <decai.lin@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years ago
FeRD (Frank Dana)
8133921ad2
avcodec/tests: Add codec_desc to .gitignore
...
The compiled libavcodec/tests/codec_desc was left out of that dir's
.gitignore when the test was added, so it shows up in 'git status'
as an untracked file if it's been built.
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
c15972f0af
avcodec/tests/rangecoder: initialize array to avoid valgrind warning
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
b6c2c58904
avcodec/rangecoder: Add and test ff_rac_check_termination()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
0c4af1390f
avcodec/tests/rangecoder: Test coder more completely
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
1be9a28f8e
avcodec/rangecoder: factorize termination version code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Martin Vignali
c097a32e93
avcodec/proresdec : rename dsp part for 10b and check dspinit for supported bits per raw sample
...
based on patch by Kieran Kunhya
6 years ago
Andreas Rheinhardt
959521b58d
h264_levels, h264_metadata_bsf: Fix levels typo
...
profile_idc for level 1b should be 11, not 10.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years ago
Mark Thompson
cc549149d3
lavc/h264: Add common code for level handling
...
Including a unit test.
6 years ago
Marton Balint
56b081da57
avutil/pixdesc: add AV_PIX_FMT_FLAG_ALPHA to AV_PIX_FMT_PAL8
...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Kieran Kunhya
699fa8f382
simple_idct: Template functions to support an input bitdepth parameter
7 years ago
Josh de Kock
89029bd2c7
lav*,tests: remove several register_all calls
...
avdevice_register_all() is still required to register devices into
lavf (this is required due to lavd being somewhat of a hack).
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years ago
Diego Biurrun
a674b31240
build: Ignore generated mpeg12framerate test binary
7 years ago
Muhammad Faiz
b7d476b138
fate/libavcodec: add codec_desc test
...
Remove runtime check at codec_desc.c
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
7 years ago
Jim DeLaHunt
fb791d2876
Ignore libavcodec/tests/mpeg12framerate, a test program
...
Add to libavcodec/tests/.gitignore an entry for test
program libavcodec/tests/mpeg12framerate . Other
similar test programs, e.g. jpeg2000dwt and dct, are
ignored in a similar way.
On initially checking out master, and doing "./configure"
and "make clean", "git status" reports no untracked
files. After running "make fate", "git status" reports
untracked file "libavcodec/tests/mpeg12framerate".
mpeg12framerate is a unit test program. It was apparently
introduced in commit
278c308cea
, on
Tue Sep 12 22:11:56 2017 +0100. It added a new function
ff_mpeg12_find_best_frame_rate() to
libavcodec/mpeg12framerate.c , and the code in
libavcodec/tests/mpeg12framerate.c to exercise that
function. This commit also added the new program to
the FATE suite, but it omitted a .gitignore entry.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Mark Thompson
278c308cea
mpeg12: Add a common function to find the best frame rate
...
This will be used later in both the mpeg2_metadata filter and the
VAAPI MPEG-2 encoder. Also adds a unit test.
(cherry picked from commit b5859e0b04
)
7 years ago
Mark Thompson
b5859e0b04
mpeg12: Move finding the best frame rate to common code
...
Previously in the mpeg2_metadata filter. Also adds a test.
7 years ago
Jesse Liu
8e17cd20b9
add missing ignore files
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
84786e928f
avcodec/tests/dct: Add Mean square error test
...
based on quotes of IEEE 1180 / ISO/IEC 23002-1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
86cbffdc4d
avcodec/tests/dct: Add peak mean error check
...
based on quotes of IEEE 1180 / ISO/IEC 23002-1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Clément Bœsch
e800371863
lavc/htmlsubtitles: improve line breaks handling
7 years ago
Clément Bœsch
55949e3e51
lavc/tests: add htmlsubtitles
7 years ago
James Darnley
d7246ea9f2
avcodec/x86: add an 8-bit simple IDCT function based on the x86-64 high depth functions
...
Includes add/put functions
Rounding contributed by Ronald S. Bultje
7 years ago
Jun Zhao
32deea87c1
lavc/tests/golomb: Add unit test for set_ue_golomb_long.
...
Add unit test for set_ue_golomb_long.
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
fd502f4f5f
build: Generalize yasm/nasm-related variable names
...
None of them are specific to the YASM assembler.
(Cherry-picked from libav commit 39e208f4d4
)
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Darnley
8e89f6fd37
avcodec/x86: move simple_idct to external assembly
8 years ago
Michael Niedermayer
d92ad42fb3
avcodec/tests/celp_math: Change IsAlmostEqual() to a function
...
Fixes empty statement, found by ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
824fe914fe
avcodec/tests: added test for celp_math.c
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Matthieu Bouron
0c6105dde0
lavc/tests/dct/aarch64: add ff_simple_idct_neon test
8 years ago
Michael Niedermayer
d23af72a0c
avcodec/tests/mjpegenc_huffman: Remove static in main() table
...
Avoids false positives when greping for non constant statics
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Rostislav Pehlivanov
53234b9ba5
tests/mjpegenc_huffman: align static tables
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
20614e868b
tests/mjpegenc_huffman: replace assert() with av_assert0()
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Jerry Jiang
884506dfe2
Implement optimal huffman encoding for (M)JPEG.
...
> seems to break
> make fate-vsynth1-mjpeg-444
Fixed.
8 years ago
Diego Biurrun
d4c2103bd3
golomb: Convert to the new bitstream reader
8 years ago
Michael Niedermayer
68cdeb06de
avcodec/tests/fft: Fix indention of dct_init()
...
Fixes CID1396253
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Derek Buitenhuis
51c673a0d7
libavcodec/tests: Add avpacket test to .gitignore
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years ago