[FFmpeg-devel] libavcodec: r12b decoder

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jun 9 02:13:33 EEST 2021


Am Di., 8. Juni 2021 um 11:52 Uhr schrieb Dennis Fleurbaaij
<mail at dennisfleurbaaij.com>:

> The four letter "r12b" format code is from the DeckLink documentation;
> there are other described formats there as well such as r12l, r10b, r10l
> and r210. I'm using DirectShow which signals the encoding to downstream
> components through the use of FOURCC codes and hence for this filter to be
> of any use in such applications there needs to be a way to identify it.

This does not sound like a good reason to add a new fourcc.

> r210 from their docs has already gained some traction as a fourcc and hence
> adding the others in a similar vein seemed a reasonable approach. "r12b"
> also sounds reasonable to me as a fourcc: it starts with an r, indicative
> of RGB formats, and the bit/pixel + endianness didn't seem unreasonable.
> Also I could find no other fourcc's used for this and hence I added it.

The change to riff.c should at least be an independent patch.

Carl Eugen


More information about the ffmpeg-devel mailing list