109 *width_ptr =
sizes[i][0];
110 *height_ptr =
sizes[i][1];
118 str= strrchr(str,
'.');
136 int range, last_index, range1, first_index;
139 for(first_index = 0; first_index < 5; first_index++) {
150 if (first_index == 5)
154 last_index = first_index;
163 last_index + range1) < 0)
169 if (range >= (1 << 30))
177 *pfirst_index = first_index;
178 *plast_index = last_index;
201 #if FF_API_GUESS_IMG2_CODEC
202 enum CodecID av_guess_image2_codec(
const char *filename){
210 int first_index, last_index, ret = 0;
236 #if FF_API_LOOP_INPUT
238 s->
loop = s1->loop_input;
268 st->
duration = last_index - first_index + 1;
292 int size[3]={0}, ret[3]={0};
318 filename[ strlen(filename) - 1 ]=
'U' + i;
325 if (f[0]->eof_reached)
345 if (ret[0] <= 0 || ret[1]<0 || ret[2]<0) {
355 #if CONFIG_IMAGE2_MUXER || CONFIG_IMAGE2PIPE_MUXER
387 "Could not get frame filename number %d from pattern '%s'\n",
400 filename[ strlen(filename) - 1 ]=
'U' + i;
431 }
else if(pkt->
size < 8 ||
452 #define OFFSET(x) offsetof(VideoData, x)
453 #define DEC AV_OPT_FLAG_DECODING_PARAM
463 #if CONFIG_IMAGE2_DEMUXER
464 static const AVClass img2_class = {
478 .priv_class = &img2_class,
481 #if CONFIG_IMAGE2PIPE_DEMUXER
482 static const AVClass img2pipe_class = {
489 .
name =
"image2pipe",
494 .priv_class = &img2pipe_class,
499 #if CONFIG_IMAGE2_MUXER
503 .extensions =
"bmp,dpx,jpeg,jpg,ljpg,pam,pbm,pcx,pgm,pgmyuv,png,"
504 "ppm,sgi,tga,tif,tiff,jp2",
512 #if CONFIG_IMAGE2PIPE_MUXER
514 .
name =
"image2pipe",