|
|
|
@ -1070,6 +1070,17 @@ static int gif_probe(const AVProbeData *p) |
|
|
|
|
return AVPROBE_SCORE_MAX - 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static int photocd_probe(const AVProbeData *p) |
|
|
|
|
{ |
|
|
|
|
if (!memcmp(p->buf, "PCD_OPA", 7)) |
|
|
|
|
return AVPROBE_SCORE_MAX - 1; |
|
|
|
|
|
|
|
|
|
if (p->buf_size < 0x807 || memcmp(p->buf + 0x800, "PCD_IPI", 7)) |
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
return AVPROBE_SCORE_MAX - 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#define IMAGEAUTO_DEMUXER(imgname, codecid)\ |
|
|
|
|
static const AVClass imgname ## _class = {\
|
|
|
|
|
.class_name = AV_STRINGIFY(imgname) " demuxer",\
|
|
|
|
@ -1103,6 +1114,7 @@ IMAGEAUTO_DEMUXER(pcx, AV_CODEC_ID_PCX) |
|
|
|
|
IMAGEAUTO_DEMUXER(pgm, AV_CODEC_ID_PGM) |
|
|
|
|
IMAGEAUTO_DEMUXER(pgmyuv, AV_CODEC_ID_PGMYUV) |
|
|
|
|
IMAGEAUTO_DEMUXER(pgx, AV_CODEC_ID_PGX) |
|
|
|
|
IMAGEAUTO_DEMUXER(photocd, AV_CODEC_ID_PHOTOCD) |
|
|
|
|
IMAGEAUTO_DEMUXER(pictor, AV_CODEC_ID_PICTOR) |
|
|
|
|
IMAGEAUTO_DEMUXER(png, AV_CODEC_ID_PNG) |
|
|
|
|
IMAGEAUTO_DEMUXER(ppm, AV_CODEC_ID_PPM) |
|
|
|
|