FFmpeg
Loading...
Searching...
No Matches
vf_colordetect_init.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Zhao Zhili <quinkblack@foxmail.com>
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
23
24int ff_detect_alpha_full_neon(const uint8_t *color, ptrdiff_t color_stride,
25 const uint8_t *alpha, ptrdiff_t alpha_stride,
26 ptrdiff_t width, ptrdiff_t height,
27 int alpha_max, int mpeg_range, int offset);
28
29int ff_detect_alpha16_full_neon(const uint8_t *color, ptrdiff_t color_stride,
30 const uint8_t *alpha, ptrdiff_t alpha_stride,
31 ptrdiff_t width, ptrdiff_t height,
32 int alpha_max, int mpeg_range, int offset);
33
34int ff_detect_alpha_limited_neon(const uint8_t *color, ptrdiff_t color_stride,
35 const uint8_t *alpha, ptrdiff_t alpha_stride,
36 ptrdiff_t width, ptrdiff_t height,
37 int alpha_max, int mpeg_range, int offset);
38
39int ff_detect_alpha16_limited_neon(const uint8_t *color, ptrdiff_t color_stride,
40 const uint8_t *alpha, ptrdiff_t alpha_stride,
41 ptrdiff_t width, ptrdiff_t height,
42 int alpha_max, int mpeg_range, int offset);
43
44int ff_detect_range_neon(const uint8_t *data, ptrdiff_t stride,
45 ptrdiff_t width, ptrdiff_t height,
46 int mpeg_min, int mpeg_max);
47
48int ff_detect_range16_neon(const uint8_t *data, ptrdiff_t stride,
49 ptrdiff_t width, ptrdiff_t height,
50 int mpeg_min, int mpeg_max);
51
int ff_detect_range16_neon(const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, int mpeg_min, int mpeg_max)
int ff_detect_range_neon(const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, int mpeg_min, int mpeg_max)
int ff_detect_alpha_full_neon(const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
av_cold void ff_color_detect_dsp_init_aarch64(FFColorDetectDSPContext *dsp, int depth, enum AVColorRange color_range)
int ff_detect_alpha_limited_neon(const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
int ff_detect_alpha16_limited_neon(const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
int ff_detect_alpha16_full_neon(const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
static const int16_t alpha[]
Definition ilbcdata.h:55
unsigned offset
Definition libaomenc.c:763
#define have_neon(flags)
Definition cpu.h:26
#define av_cold
Definition attributes.h:117
static atomic_int cpu_flags
Definition cpu.c:56
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition cpu.c:109
const char data[16]
Definition mxf.c:149
AVColorRange
Visual content value range.
Definition pixfmt.h:748
@ AVCOL_RANGE_JPEG
Full range content.
Definition pixfmt.h:783
int(* detect_range)(const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, int mpeg_min, int mpeg_max)
int(* detect_alpha)(const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
#define stride
#define height
Definition dsp.h:89
#define width
Definition dsp.h:89
color_range