Andreas Rheinhardt
c00cd007e8
configure: Remove av_restrict
...
All versions of MSVC that support C11 (namely >= v19.27)
also support the restrict keyword, therefore av_restrict
is no longer necessary since 75697836b1
.
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
sunyuechi
40911bc1a1
lavc/dnxhdenc: add ff_dnxhdenc_init
...
This is for clarity and use in testing, consistent with other parts of the code.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
9 months ago
Andreas Rheinhardt
5828e8209f
avcodec: Constify frame->data pointers for encoders where possible
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2 years ago
Paul B Mahol
044c09c0a0
avcodec/dnxhdenc: retry increasing qscale to not overflow max_bits
...
Increase mb_bits type from uint16_t to uint32_t to fix possible overflows
in bit size calculations.
Update fate test that needs change.
3 years ago
Paul B Mahol
37480b1b85
avcodec/dnxhdenc: fix possible out of bound writes for big w/h
...
It was caused by integer overflows.
3 years ago
Anton Khirnov
e15371061d
lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump
...
They are not properly namespaced and not intended for public use.
4 years ago
Paul B Mahol
aeb73c73e1
avcodec/dnxhdenc: stop leaking memory when initalization fails
...
Fixes #6593 .
6 years ago
Martin Vignali
cbbec68847
libavcodec/blockdsp : add AVX version
...
Also modify the required alignment, to 32 instead of 16
for several codecs
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Frédéric Devernay
eec67f2522
avcodec/dnxhdenc: fix DNxHR 444 encoding crashes
...
Fixes #6649 .
7 years ago
Paul B Mahol
f078bc4c5e
avcodec/dnxhdenc: DNxHR 444 and HQX support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Diego Biurrun
6354957a95
dnxhdenc: Have function pointer prototype match implementation
...
libavcodec/dnxhdenc.c(326) : warning C4028: formal parameter 1 different from declaration
libavcodec/dnxhdenc.c(329) : warning C4028: formal parameter 1 different from declaration
8 years ago
Michael Niedermayer
7ddfa0be62
avcodec/dnxhdenc: Fix alignment of edge_buf*
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
6c5b98d40b
avcodec/dnxhdenc: Move allocation out of radix_sort()
...
Its slow, its not checked, FPU state is not clean either currently there
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Mark Reid
6051bb338c
libavcodec/dnxhdenc: add edge emulate for dnxhr
...
Fixes handling for resolutions that are not multiples of 16.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Mark Reid
ece12db4f1
libavcodec/dnxhdenc: add support for dnxhr encoding
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Mark Reid
cdca1902ab
libavcodec/dnxhdenc: add support for variable mircoblock counts
...
dnxhr has variable resolution, 8160 is the mb num for 1920x1080
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Vittorio Giovara
910247f172
lavc: Deprecate avctx.{inter,intra}_quant_bias
...
They are used by dnxhd and mpegvideo_enc exclusively, move them to codec
private options instead.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Diego Biurrun
e74433a8e6
dsputil: Split clear_block*/fill_block* off into a separate context
11 years ago
Timothy Gu
676856204b
DNxHD: make get_pixel_8x4_sym accept ptrdiff_t as stride
11 years ago
Timothy Gu
cb11b9e89e
dnxhdenc: make get_pixel_8x4_sym accept ptrdiff_t as stride
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
57e7b3a89f
dnxhdenc: use the AVFrame API properly.
11 years ago
Diego Biurrun
88bd7fdc82
Drop DCTELEM typedef
...
It does not help as an abstraction and adds dsputil dependencies.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years ago
Diego Biurrun
e4cbf7529b
Give all anonymously typedeffed structs in headers a name
...
Anonymous structs cannot be forward declared and have no benefit.
12 years ago
Diego Biurrun
26ce9aec03
dnxhdenc: x86: more sensible names for optimization file and init function
12 years ago
Ronald S. Bultje
e9156741a7
dnxhdenc: add space between function argument type and comment.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jean First
a1be5bc79d
dnxhdenc: remove unused variable from context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Joseph Artsimovich
5ab21439fd
dnxhd: 10-bit support
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
dc25d79f49
Drop unnecessary directory prefixes from #include directives.
14 years ago
Baptiste Coudurier
14cf9e698d
dnxhdenc: add AVClass in private context.
...
Fixes private options.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Baptiste Coudurier
d9699ea825
Fix dnxhd custom options, add AVClass in private context
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Baptiste Coudurier
176e176288
dnxhd: allow encoding with Avid Nitris compatibility.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 99bbc781e9
)
14 years ago
Baptiste Coudurier
99bbc781e9
dnxhd: allow encoding with Avid Nitris compatibility.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Måns Rullgård
84dc2d8afa
Remove DECLARE_ALIGNED_{8,16} macros
...
These macros are redundant. All uses are replaced with the generic
DECLARE_ALIGNED macro instead.
Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
c67278098d
Move array specifiers outside DECLARE_ALIGNED() invocations
...
Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
2a1294b978
Move dnxhdenc to execute2 multithreading API.
...
This allows for some simplifications like removing some outer loops
and gives much better performance for thread_count > number of idle CPUs.
Originally committed as revision 20211 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
193ce3ab78
dnxhd get_pixels_8x4_sym sse2
...
Originally committed as revision 16072 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
09f6fc6b74
move structure definitions in their own header
...
Originally committed as revision 16051 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago