avcodec: add missing xmm/neon clobber test wrappers for the new decode API

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2016-07-03 16:43:08 -03:00
parent 64c619369b
commit 293484fa5e
4 changed files with 34 additions and 0 deletions

4
configure vendored
View File

@ -6027,6 +6027,8 @@ enabled neon_clobber_test &&
-Wl,--wrap,avcodec_decode_subtitle2 \ -Wl,--wrap,avcodec_decode_subtitle2 \
-Wl,--wrap,avcodec_encode_audio2 \ -Wl,--wrap,avcodec_encode_audio2 \
-Wl,--wrap,avcodec_encode_video2 \ -Wl,--wrap,avcodec_encode_video2 \
-Wl,--wrap,avcodec_send_packet \
-Wl,--wrap,avcodec_receive_frame \
-Wl,--wrap,avcodec_encode_subtitle \ -Wl,--wrap,avcodec_encode_subtitle \
-Wl,--wrap,swr_convert \ -Wl,--wrap,swr_convert \
-Wl,--wrap,avresample_convert || -Wl,--wrap,avresample_convert ||
@ -6040,6 +6042,8 @@ enabled xmm_clobber_test &&
-Wl,--wrap,avcodec_encode_audio2 \ -Wl,--wrap,avcodec_encode_audio2 \
-Wl,--wrap,avcodec_encode_video2 \ -Wl,--wrap,avcodec_encode_video2 \
-Wl,--wrap,avcodec_encode_subtitle \ -Wl,--wrap,avcodec_encode_subtitle \
-Wl,--wrap,avcodec_send_packet \
-Wl,--wrap,avcodec_receive_frame \
-Wl,--wrap,swr_convert \ -Wl,--wrap,swr_convert \
-Wl,--wrap,avresample_convert \ -Wl,--wrap,avresample_convert \
-Wl,--wrap,sws_scale || -Wl,--wrap,sws_scale ||

View File

@ -77,3 +77,13 @@ wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
{ {
testneonclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr); testneonclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr);
} }
wrap(avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt))
{
testneonclobbers(avcodec_send_packet, avctx, avpkt);
}
wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame))
{
testneonclobbers(avcodec_receive_frame, avctx, frame);
}

View File

@ -77,3 +77,13 @@ wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
{ {
testneonclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr); testneonclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr);
} }
wrap(avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt))
{
testneonclobbers(avcodec_send_packet, avctx, avpkt);
}
wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame))
{
testneonclobbers(avcodec_receive_frame, avctx, frame);
}

View File

@ -77,3 +77,13 @@ wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
{ {
testxmmclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr); testxmmclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr);
} }
wrap(avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt))
{
testxmmclobbers(avcodec_send_packet, avctx, avpkt);
}
wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame))
{
testxmmclobbers(avcodec_receive_frame, avctx, frame);
}