FFmpeg
vf_pullup.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 General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 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
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * 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 AVFILTER_PULLUP_H
20 #define AVFILTER_PULLUP_H
21 
22 #include "avfilter.h"
23 
24 typedef struct PullupBuffer {
25  int lock[2];
26  uint8_t *planes[4];
27 } PullupBuffer;
28 
29 typedef struct PullupField {
30  int parity;
32  unsigned flags;
33  int breaks;
34  int affinity;
35  int *diffs;
36  int *combs;
37  int *vars;
38  struct PullupField *prev, *next;
39 } PullupField;
40 
41 typedef struct PullupFrame {
42  int lock;
43  int length;
44  int parity;
47 } PullupFrame;
48 
49 typedef struct PullupContext {
50  const AVClass *class;
57  int nb_planes;
58  int planewidth[4];
59  int planeheight[4];
63 
64  int (*diff)(const uint8_t *a, const uint8_t *b, ptrdiff_t s);
65  int (*comb)(const uint8_t *a, const uint8_t *b, ptrdiff_t s);
66  int (*var )(const uint8_t *a, const uint8_t *b, ptrdiff_t s);
68 
70 
71 #endif /* AVFILTER_PULLUP_H */
PullupContext::comb
int(* comb)(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
Definition: vf_pullup.h:65
PullupContext::nb_planes
int nb_planes
Definition: vf_pullup.h:57
b
#define b
Definition: input.c:41
PullupContext::junk_bottom
int junk_bottom
Definition: vf_pullup.h:51
PullupContext::diff
int(* diff)(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
Definition: vf_pullup.h:64
PullupField::combs
int * combs
Definition: vf_pullup.h:36
PullupField::vars
int * vars
Definition: vf_pullup.h:37
PullupField
Definition: vf_pullup.h:29
PullupContext::var
int(* var)(const uint8_t *a, const uint8_t *b, ptrdiff_t s)
Definition: vf_pullup.h:66
PullupContext::head
PullupField * head
Definition: vf_pullup.h:60
PullupContext::frame
PullupFrame frame
Definition: vf_pullup.h:62
PullupContext::buffers
PullupBuffer buffers[10]
Definition: vf_pullup.h:61
PullupField::affinity
int affinity
Definition: vf_pullup.h:34
PullupBuffer::planes
uint8_t * planes[4]
Definition: vf_pullup.h:26
s
#define s(width, name)
Definition: cbs_vp9.c:198
PullupContext::junk_left
int junk_left
Definition: vf_pullup.h:51
PullupContext
Definition: vf_pullup.h:49
PullupContext::metric_h
int metric_h
Definition: vf_pullup.h:55
PullupFrame::length
int length
Definition: vf_pullup.h:43
AVClass
Describe the class of an AVClass context structure.
Definition: log.h:75
PullupFrame::ifields
PullupBuffer * ifields[4]
Definition: vf_pullup.h:45
PullupContext::metric_offset
int metric_offset
Definition: vf_pullup.h:56
PullupFrame::buffer
PullupBuffer * buffer
Definition: vf_pullup.h:46
PullupContext::planewidth
int planewidth[4]
Definition: vf_pullup.h:58
PullupContext::junk_right
int junk_right
Definition: vf_pullup.h:51
PullupField::buffer
PullupBuffer * buffer
Definition: vf_pullup.h:31
a
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
Definition: undefined.txt:41
PullupFrame::lock
int lock
Definition: vf_pullup.h:42
PullupContext::strict_pairs
int strict_pairs
Definition: vf_pullup.h:54
PullupFrame::parity
int parity
Definition: vf_pullup.h:44
PullupContext::metric_length
int metric_length
Definition: vf_pullup.h:55
PullupContext::junk_top
int junk_top
Definition: vf_pullup.h:51
PullupFrame::ofields
PullupBuffer * ofields[2]
Definition: vf_pullup.h:45
PullupField::next
struct PullupField * next
Definition: vf_pullup.h:38
PullupBuffer::lock
int lock[2]
Definition: vf_pullup.h:25
PullupField::parity
int parity
Definition: vf_pullup.h:30
PullupField::prev
struct PullupField * prev
Definition: vf_pullup.h:38
PullupBuffer
Definition: vf_pullup.h:24
avfilter.h
PullupContext::planeheight
int planeheight[4]
Definition: vf_pullup.h:59
PullupContext::first
PullupField * first
Definition: vf_pullup.h:60
PullupField::flags
unsigned flags
Definition: vf_pullup.h:32
PullupContext::metric_w
int metric_w
Definition: vf_pullup.h:55
ff_pullup_init_x86
void ff_pullup_init_x86(PullupContext *s)
Definition: vf_pullup_init.c:29
PullupContext::metric_plane
int metric_plane
Definition: vf_pullup.h:52
PullupField::diffs
int * diffs
Definition: vf_pullup.h:35
PullupFrame
Definition: vf_pullup.h:41
PullupField::breaks
int breaks
Definition: vf_pullup.h:33
PullupContext::strict_breaks
int strict_breaks
Definition: vf_pullup.h:53
PullupContext::last
PullupField * last
Definition: vf_pullup.h:60