2
0

dnxhdenc_init.c 1.4 KB

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