|
|
|
@ -1915,62 +1915,62 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { |
|
|
|
|
[AV_PIX_FMT_BAYER_BGGR8] = { |
|
|
|
|
.name = "bayer_bggr8", |
|
|
|
|
BAYER8_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_BGGR16LE] = { |
|
|
|
|
.name = "bayer_bggr16le", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_BGGR16BE] = { |
|
|
|
|
.name = "bayer_bggr16be", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_RGGB8] = { |
|
|
|
|
.name = "bayer_rggb8", |
|
|
|
|
BAYER8_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_RGGB16LE] = { |
|
|
|
|
.name = "bayer_rggb16le", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_RGGB16BE] = { |
|
|
|
|
.name = "bayer_rggb16be", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_GBRG8] = { |
|
|
|
|
.name = "bayer_gbrg8", |
|
|
|
|
BAYER8_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_GBRG16LE] = { |
|
|
|
|
.name = "bayer_gbrg16le", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_GBRG16BE] = { |
|
|
|
|
.name = "bayer_gbrg16be", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_GRBG8] = { |
|
|
|
|
.name = "bayer_grbg8", |
|
|
|
|
BAYER8_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_GRBG16LE] = { |
|
|
|
|
.name = "bayer_grbg16le", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_BAYER_GRBG16BE] = { |
|
|
|
|
.name = "bayer_grbg16be", |
|
|
|
|
BAYER16_DESC_COMMON |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB, |
|
|
|
|
.flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_BAYER, |
|
|
|
|
}, |
|
|
|
|
[AV_PIX_FMT_NV16] = { |
|
|
|
|
.name = "nv16", |
|
|
|
@ -2415,7 +2415,7 @@ void ff_check_pixfmt_descriptors(void){ |
|
|
|
|
} else { |
|
|
|
|
av_assert0(8*c->step >= c->depth); |
|
|
|
|
} |
|
|
|
|
if (!strncmp(d->name, "bayer_", 6)) |
|
|
|
|
if (d->flags & AV_PIX_FMT_FLAG_BAYER) |
|
|
|
|
continue; |
|
|
|
|
av_read_image_line(tmp, (void*)data, linesize, d, 0, 0, j, 2, 0); |
|
|
|
|
av_assert0(tmp[0] == 0 && tmp[1] == 0); |
|
|
|
|