64 *width_ptr =
sizes[i][0];
65 *height_ptr =
sizes[i][1];
75 const char *path,
int max_start)
78 int range, last_index, range1, first_index;
81 for (first_index = 0; first_index < max_start; first_index++) {
96 last_index = first_index;
105 last_index + range1) < 0)
111 if (range >= (1 << 30))
119 *pfirst_index = first_index;
120 *plast_index = last_index;
141 int first_index, last_index, ret = 0;
163 "Could not parse video size: %s.\n", s->
video_size);
168 "Could not parse framerate: %s.\n", s->
framerate);
200 st->
duration = last_index - first_index + 1;
225 int size[3] = { 0 }, ret[3] = { 0 };
240 for (i = 0; i < 3; i++) {
253 filename[strlen(filename) - 1] =
'U' + i;
260 if (f[0]->eof_reached)
270 for (i = 0; i < 3; i++) {
280 if (ret[0] <= 0 || ret[1] < 0 || ret[2] < 0) {
290 #define OFFSET(x) offsetof(VideoDemuxData, x)
291 #define DEC AV_OPT_FLAG_DECODING_PARAM
297 {
"start_number",
"first number in the sequence",
OFFSET(start_number),
AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX,
DEC },
301 #if CONFIG_IMAGE2_DEMUXER
302 static const AVClass img2_class = {
316 .priv_class = &img2_class,
319 #if CONFIG_IMAGE2PIPE_DEMUXER
320 static const AVClass img2pipe_class = {
327 .
name =
"image2pipe",
332 .priv_class = &img2pipe_class,