Libav
videodsp.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Ronald S. Bultje
3  *
4  * This file is part of Libav.
5  *
6  * Libav 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  * Libav 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 Libav; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
26 #ifndef AVCODEC_VIDEODSP_H
27 #define AVCODEC_VIDEODSP_H
28 
29 #include <stddef.h>
30 #include <stdint.h>
31 
32 typedef struct VideoDSPContext {
52  void (*emulated_edge_mc)(uint8_t *buf, const uint8_t *src,
53  ptrdiff_t buf_linesize,
54  ptrdiff_t src_linesize,
55  int block_w, int block_h,
56  int src_x, int src_y, int w, int h);
57 
65  void (*prefetch)(uint8_t *buf, ptrdiff_t stride, int h);
67 
68 void ff_videodsp_init(VideoDSPContext *ctx, int bpc);
69 
70 /* for internal use only (i.e. called by ff_videodsp_init() */
71 void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc);
72 void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc);
73 void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc);
74 void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc);
75 
76 #endif /* AVCODEC_VIDEODSP_H */
void(* prefetch)(uint8_t *buf, ptrdiff_t stride, int h)
Prefetch memory into cache (if supported by hardware).
Definition: videodsp.h:65
int stride
Definition: mace.c:144
uint8_t
void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc)
Definition: videodsp_init.c:26
void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc)
Definition: videodsp_ppc.c:33
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
void ff_videodsp_init(VideoDSPContext *ctx, int bpc)
Definition: videodsp.c:37
void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc)
void(* emulated_edge_mc)(uint8_t *buf, const uint8_t *src, ptrdiff_t buf_linesize, ptrdiff_t src_linesize, int block_w, int block_h, int src_x, int src_y, int w, int h)
Copy a rectangular area of samples to a temporary buffer and replicate the border samples...
Definition: videodsp.h:52