FFmpeg
Loading...
Searching...
No Matches
huffyuvdsp.h
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef AVCODEC_HUFFYUVDSP_H
20#define AVCODEC_HUFFYUVDSP_H
21
22#include <stdint.h>
23
24typedef struct HuffYUVDSPContext {
25 void (*add_int16)(uint16_t *dst/*stride align*/, const uint16_t *src/*stride align*/,
26 unsigned mask, int w);
27
28 void (*add_hfyu_median_pred_int16)(uint16_t *dst, const uint16_t *top,
29 const uint16_t *diff, unsigned mask,
30 int w, int *left, int *left_top);
31 void (*add_hfyu_left_pred_bgr32)(uint8_t *dst, const uint8_t *src,
32 intptr_t w, uint8_t *left);
34
39
40#endif /* AVCODEC_HUFFYUVDSP_H */
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
static int BS_FUNC left(const BSCTX *bc)
Return the number of the bits left in a buffer.
void ff_huffyuvdsp_init(HuffYUVDSPContext *c)
Definition huffyuvdsp.c:84
void ff_huffyuvdsp_init_aarch64(HuffYUVDSPContext *c)
void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c)
void ff_huffyuvdsp_init_riscv(HuffYUVDSPContext *c)
uint8_t w
Definition llvidencdsp.c:39
static const uint16_t mask[17]
Definition lzw.c:38
void(* add_hfyu_median_pred_int16)(uint16_t *dst, const uint16_t *top, const uint16_t *diff, unsigned mask, int w, int *left, int *left_top)
Definition huffyuvdsp.h:28
void(* add_hfyu_left_pred_bgr32)(uint8_t *dst, const uint8_t *src, intptr_t w, uint8_t *left)
Definition huffyuvdsp.h:31
void(* add_int16)(uint16_t *dst, const uint16_t *src, unsigned mask, int w)
Definition huffyuvdsp.h:25
#define src
Definition vp8dsp.c:248
static av_always_inline int diff(const struct color_info *a, const struct color_info *b, const int trans_thresh)
static double c[64]