1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * VC3/DNxHD SIMD functions 3cabdff1aSopenharmony_ci * Copyright (c) 2007 Baptiste Coudurier <baptiste dot coudurier at smartjog dot com> 4cabdff1aSopenharmony_ci * 5cabdff1aSopenharmony_ci * VC-3 encoder funded by the British Broadcasting Corporation 6cabdff1aSopenharmony_ci * 7cabdff1aSopenharmony_ci * This file is part of FFmpeg. 8cabdff1aSopenharmony_ci * 9cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 10cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 11cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 12cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 13cabdff1aSopenharmony_ci * 14cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 15cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 16cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17cabdff1aSopenharmony_ci * Lesser General Public License for more details. 18cabdff1aSopenharmony_ci * 19cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 20cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 21cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22cabdff1aSopenharmony_ci */ 23cabdff1aSopenharmony_ci 24cabdff1aSopenharmony_ci#include "libavutil/attributes.h" 25cabdff1aSopenharmony_ci#include "libavutil/x86/cpu.h" 26cabdff1aSopenharmony_ci#include "libavcodec/dnxhdenc.h" 27cabdff1aSopenharmony_ci 28cabdff1aSopenharmony_civoid ff_get_pixels_8x4_sym_sse2(int16_t *block, const uint8_t *pixels, 29cabdff1aSopenharmony_ci ptrdiff_t line_size); 30cabdff1aSopenharmony_ci 31cabdff1aSopenharmony_ciav_cold void ff_dnxhdenc_init_x86(DNXHDEncContext *ctx) 32cabdff1aSopenharmony_ci{ 33cabdff1aSopenharmony_ci if (EXTERNAL_SSE2(av_get_cpu_flags())) { 34cabdff1aSopenharmony_ci if (ctx->cid_table->bit_depth == 8) 35cabdff1aSopenharmony_ci ctx->get_pixels_8x4_sym = ff_get_pixels_8x4_sym_sse2; 36cabdff1aSopenharmony_ci } 37cabdff1aSopenharmony_ci} 38