yading@10: /* yading@10: * check XMM registers for clobbers on Win64 yading@10: * Copyright (c) 2012 Ronald S. Bultje yading@10: * yading@10: * This file is part of Libav. yading@10: * yading@10: * Libav is free software; you can redistribute it and/or yading@10: * modify it under the terms of the GNU Lesser General Public yading@10: * License as published by the Free Software Foundation; either yading@10: * version 2.1 of the License, or (at your option) any later version. yading@10: * yading@10: * Libav is distributed in the hope that it will be useful, yading@10: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU yading@10: * Lesser General Public License for more details. yading@10: * yading@10: * You should have received a copy of the GNU Lesser General Public yading@10: * License along with Libav; if not, write to the Free Software yading@10: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA yading@10: */ yading@10: yading@10: #include "libavcodec/avcodec.h" yading@10: #include "libavutil/x86/w64xmmtest.h" yading@10: yading@10: wrap(avcodec_open2(AVCodecContext *avctx, yading@10: AVCodec *codec, yading@10: AVDictionary **options)) yading@10: { yading@10: testxmmclobbers(avcodec_open2, avctx, codec, options); yading@10: } yading@10: yading@10: wrap(avcodec_decode_audio4(AVCodecContext *avctx, yading@10: AVFrame *frame, yading@10: int *got_frame_ptr, yading@10: AVPacket *avpkt)) yading@10: { yading@10: testxmmclobbers(avcodec_decode_audio4, avctx, frame, yading@10: got_frame_ptr, avpkt); yading@10: } yading@10: yading@10: wrap(avcodec_decode_video2(AVCodecContext *avctx, yading@10: AVFrame *picture, yading@10: int *got_picture_ptr, yading@10: AVPacket *avpkt)) yading@10: { yading@10: testxmmclobbers(avcodec_decode_video2, avctx, picture, yading@10: got_picture_ptr, avpkt); yading@10: } yading@10: yading@10: wrap(avcodec_decode_subtitle2(AVCodecContext *avctx, yading@10: AVSubtitle *sub, yading@10: int *got_sub_ptr, yading@10: AVPacket *avpkt)) yading@10: { yading@10: testxmmclobbers(avcodec_decode_subtitle2, avctx, sub, yading@10: got_sub_ptr, avpkt); yading@10: } yading@10: yading@10: wrap(avcodec_encode_audio2(AVCodecContext *avctx, yading@10: AVPacket *avpkt, yading@10: const AVFrame *frame, yading@10: int *got_packet_ptr)) yading@10: { yading@10: testxmmclobbers(avcodec_encode_audio2, avctx, avpkt, frame, yading@10: got_packet_ptr); yading@10: } yading@10: yading@10: wrap(avcodec_encode_video(AVCodecContext *avctx, yading@10: uint8_t *buf, int buf_size, yading@10: const AVFrame *pict)) yading@10: { yading@10: testxmmclobbers(avcodec_encode_video, avctx, buf, buf_size, pict); yading@10: } yading@10: yading@10: wrap(avcodec_encode_subtitle(AVCodecContext *avctx, yading@10: uint8_t *buf, int buf_size, yading@10: const AVSubtitle *sub)) yading@10: { yading@10: testxmmclobbers(avcodec_encode_subtitle, avctx, buf, buf_size, sub); yading@10: }