annotate libmpcodecs/vf_framestep.c @ 31345:2a681e243c4c

Remove unnecessary and unused #defines.
author diego
date Mon, 14 Jun 2010 11:46:40 +0000
parents a972c1a4a012
children 7af3e6f901fd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
1 /*
28924
d5d66bff938a cosmetics: Remove file names from file header, it only causes trouble.
diego
parents: 26754
diff changeset
2 * filter to ouput only 1 every n frame, or only the I (key)frame
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
3 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
4 * The parameters are:
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
5 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
6 * [I] | [i]num
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
7 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
8 * if you call the filter with I (uppercase) as the parameter
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
9 * ... -vf framestep=I ...
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
10 * then ONLY the keyframes are outputted.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
11 * For DVD it means, generally, one every 15 frames (IBBPBBPBBPBBPBB), for avi it means
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
12 * every scene change or every keyint value (see -lavcopts).
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
13 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
14 * if you call the filter with the i (lowercase)
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
15 * ... -vf framestep=i ...
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
16 * then a I! followed by a cr is printed when a key frame (eg Intra frame) is
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
17 * found, leaving the current line of mplayer/mencoder, where you got the
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
18 * time, in seconds, and frame of the key. Use this information to split the
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
19 * AVI.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
20 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
21 * After the i or alone you can put a positive number and only one frame every
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
22 * x (the number you set) is passed on the filter chain, limiting the output
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
23 * of the frame.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
24 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
25 * Example
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
26 * ... -vf framestep=i20 ...
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
27 * Dump one every 20 frames, printing on the console when a I-Frame is encounter.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
28 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
29 * ... -vf framestep=25
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
30 * Dump one every 25 frames.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
31 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
32 * If you call the filter without parameter it does nothing (except using memory
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
33 * and resource of your system,. of course).
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
34 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
35 * This filter doesn' t work like the option -sstep seconds.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
36 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
37 * The -sstep seek to the new position, without decoding all frames but,
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
38 * expecially on avi file coded whith mpeg4 (lavc or xvid or divx), the
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
39 * seek is not always too much precise.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
40 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
41 * This filter simply discard the unwanted frames, so you are very precise in
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
42 * counting the frame but sometime you use a lot of CPU for nothing.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
43 *
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
44 * As usual it depends on what you're doing.
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
45 *
30421
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
46 * copyright (c) 2003 Daniele Forghieri ( guru@digitalfantasy.it )
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
47 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
48 * This file is part of MPlayer.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
49 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
50 * MPlayer is free software; you can redistribute it and/or modify
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
51 * it under the terms of the GNU General Public License as published by
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
52 * the Free Software Foundation; either version 2 of the License, or
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
53 * (at your option) any later version.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
54 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
55 * MPlayer is distributed in the hope that it will be useful,
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
56 * but WITHOUT ANY WARRANTY; without even the implied warranty of
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
57 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
58 * GNU General Public License for more details.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
59 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
60 * You should have received a copy of the GNU General Public License along
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
61 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 28924
diff changeset
62 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
63 */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
64
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
65 #include <stdio.h>
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
66 #include <stdlib.h>
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
67 #include <string.h>
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
68
17012
6ff3379a0862 Unify include path handling, -I.. is in CFLAGS.
diego
parents: 10751
diff changeset
69 #include "config.h"
6ff3379a0862 Unify include path handling, -I.. is in CFLAGS.
diego
parents: 10751
diff changeset
70 #include "mp_msg.h"
18004
bcd805923554 Part2 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu with LOTS of modifications by me
reynaldo
parents: 17906
diff changeset
71 #include "help_mp.h"
17012
6ff3379a0862 Unify include path handling, -I.. is in CFLAGS.
diego
parents: 10751
diff changeset
72 #include "cpudetect.h"
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
73
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
74 #include "img_format.h"
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
75 #include "mp_image.h"
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
76 #include "vf.h"
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
77
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
78 /* Uncomment if you want to print some info on the format */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
79 // #define DUMP_FORMAT_DATA
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
80
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
81 /* Private data */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
82 struct vf_priv_s {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
83 /* Current frame */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
84 int frame_cur;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
85 /* Frame output step, 0 = all */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
86 int frame_step;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
87 /* Only I-Frame (2), print on I-Frame (1) */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
88 int dump_iframe;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
89 };
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
90
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
91 /* Filter handler */
30642
a972c1a4a012 cosmetics: Rename struct vf_instance_s --> vf_instance.
diego
parents: 30638
diff changeset
92 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
93 {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
94 mp_image_t *dmpi;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
95 struct vf_priv_s *priv;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
96 int skip;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
97
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
98 priv = vf->priv;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
99
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
100 /* Print the 'I' if is a intra frame. The \n advance the current line so you got the
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
101 * current file time (in second) and the frame number on the console ;-)
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
102 */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
103 if (priv->dump_iframe) {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
104 if (mpi->pict_type == 1) {
18004
bcd805923554 Part2 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu with LOTS of modifications by me
reynaldo
parents: 17906
diff changeset
105 mp_msg(MSGT_VFILTER, MSGL_INFO, "I!\n");
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
106 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
107 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
108
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
109 /* decide if frame must be shown */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
110 if (priv->dump_iframe == 2) {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
111 /* Only key frame */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
112 skip = mpi->pict_type == 1 ? 0 : 1;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
113 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
114 else {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
115 /* Only 1 every frame_step */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
116 skip = 0;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
117 if ((priv->frame_step != 0) && ((priv->frame_cur % priv->frame_step) != 0)) {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
118 skip = 1;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
119 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
120 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
121 /* Increment current frame */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
122 ++priv->frame_cur;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
123
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
124 if (skip == 0) {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
125 /* Get image, export type (we don't modify tghe image) */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
126 dmpi=vf_get_image(vf->next, mpi->imgfmt,
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
127 MP_IMGTYPE_EXPORT, 0,
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
128 mpi->w, mpi->h);
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
129 /* Copy only the pointer ( MP_IMGTYPE_EXPORT ! ) */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
130 dmpi->planes[0] = mpi->planes[0];
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
131 dmpi->planes[1] = mpi->planes[1];
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
132 dmpi->planes[2] = mpi->planes[2];
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
133
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
134 dmpi->stride[0] = mpi->stride[0];
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
135 dmpi->stride[1] = mpi->stride[1];
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
136 dmpi->stride[2] = mpi->stride[2];
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
137
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
138 dmpi->width = mpi->width;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
139 dmpi->height = mpi->height;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
140
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
141 /* Chain to next filter / output ... */
17906
20aca9baf5d8 passing pts through the filter layer (lets see if pts or cola comes out at the end)
michael
parents: 17012
diff changeset
142 return vf_next_put_image(vf, dmpi, pts);
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
143 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
144
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
145 /* Skip the frame */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
146 return 0;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
147 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
148
30642
a972c1a4a012 cosmetics: Rename struct vf_instance_s --> vf_instance.
diego
parents: 30638
diff changeset
149 static void uninit(struct vf_instance *vf)
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
150 {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
151 /* Free private data */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
152 free(vf->priv);
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
153 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
154
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
155 /* Main entry funct for the filter */
30638
a7b908875c14 Rename open() vf initialization function to vf_open().
diego
parents: 30633
diff changeset
156 static int vf_open(vf_instance_t *vf, char *args)
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
157 {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
158 struct vf_priv_s *p;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
159
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
160 vf->put_image = put_image;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
161 vf->uninit = uninit;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
162 vf->default_reqs = VFCAP_ACCEPT_STRIDE;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
163 vf->priv = p = calloc(1, sizeof(struct vf_priv_s));
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
164 if (p == NULL) {
26754
63630c09e237 cosmetics: Remove pointless parentheses from return calls.
diego
parents: 25221
diff changeset
165 return 0;
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
166 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
167
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
168 if (args != NULL) {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
169 #ifdef DUMP_FORMAT_DATA
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
170 if (*args == 'd') {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
171 p->dump_iframe = 3;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
172 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
173 else
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
174 #endif
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
175 if (*args == 'I') {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
176 /* Dump only KEY (ie INTRA) frame */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
177 p->dump_iframe = 2;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
178 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
179 else {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
180 if (*args == 'i') {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
181 /* Print a 'I!' when a i-frame is encounter */
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
182 p->dump_iframe = 1;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
183 ++args;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
184 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
185
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
186 if (*args != '\0') {
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
187 p->frame_step = atoi(args);
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
188 if (p->frame_step <= 0) {
18004
bcd805923554 Part2 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu with LOTS of modifications by me
reynaldo
parents: 17906
diff changeset
189 mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_ErrorParsingArgument);
26754
63630c09e237 cosmetics: Remove pointless parentheses from return calls.
diego
parents: 25221
diff changeset
190 return 0;
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
191 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
192 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
193 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
194 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
195 return 1;
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
196 }
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
197
25221
00fff9a3b735 Make all vf_info_t structs const
reimar
parents: 23373
diff changeset
198 const vf_info_t vf_info_framestep = {
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
199 "Dump one every n / key frames",
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
200 "framestep",
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
201 "Daniele Forghieri",
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
202 "",
30638
a7b908875c14 Rename open() vf initialization function to vf_open().
diego
parents: 30633
diff changeset
203 vf_open,
10751
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
204 NULL
81d03cb2cd64 2 new filters: tile & framestep
arpi
parents:
diff changeset
205 };