FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libavcodec
x86
dnxhdenc_init.c
Go to the documentation of this file.
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
24
#include "
libavutil/attributes.h
"
25
#include "
libavutil/x86/cpu.h
"
26
#include "
libavcodec/dnxhdenc.h
"
27
28
void
ff_get_pixels_8x4_sym_sse2
(int16_t *
block
,
const
uint8_t
*
pixels
,
29
ptrdiff_t line_size);
30
31
av_cold
void
ff_dnxhdenc_init_x86
(
DNXHDEncContext
*
ctx
)
32
{
33
if
(
EXTERNAL_SSE2
(
av_get_cpu_flags
())) {
34
if
(ctx->
cid_table
->
bit_depth
== 8)
35
ctx->
get_pixels_8x4_sym
=
ff_get_pixels_8x4_sym_sse2
;
36
}
37
}
ff_get_pixels_8x4_sym_sse2
void ff_get_pixels_8x4_sym_sse2(int16_t *block, const uint8_t *pixels, ptrdiff_t line_size)
cpu.h
ff_dnxhdenc_init_x86
av_cold void ff_dnxhdenc_init_x86(DNXHDEncContext *ctx)
Definition:
dnxhdenc_init.c:31
attributes.h
Macro definitions for various function/variable attributes.
block
static int16_t block[64]
Definition:
dct.c:113
uint8_t
uint8_t
Definition:
audio_convert.c:194
av_cold
#define av_cold
Definition:
attributes.h:82
DNXHDEncContext::get_pixels_8x4_sym
void(* get_pixels_8x4_sym)(int16_t *, const uint8_t *, ptrdiff_t)
Definition:
dnxhdenc.h:94
EXTERNAL_SSE2
#define EXTERNAL_SSE2(flags)
Definition:
cpu.h:57
dnxhdenc.h
ctx
AVFormatContext * ctx
Definition:
movenc.c:48
CIDEntry::bit_depth
int bit_depth
Definition:
dnxhddata.h:50
DNXHDEncContext
Definition:
dnxhdenc.h:42
DNXHDEncContext::cid_table
const CIDEntry * cid_table
Definition:
dnxhdenc.h:48
av_get_cpu_flags
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition:
cpu.c:76
pixels
int pixels
Definition:
avisynth_c.h:298
Generated on Mon Jun 27 2016 02:34:41 for FFmpeg by
1.8.6