[Bug 693666] bayer: Caps for 16-bit Bayer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 27 13:13:37 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=693666

Edgar Thier <edgar.thier at theimagingsource.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edgar.thier at theimagingsourc
                   |                            |e.com

--- Comment #15 from Edgar Thier <edgar.thier at theimagingsource.com> ---
Another question would be how packed bayer formats should be described.

Cameras can send not only 'regular' bayer but also packed data where data for 2
pixel is stuffed into one byte. This allows The application to extract 8-bit
bayer by simply ignoring certain bytes.
I know of three variations of this. Packed, SPacked and MIPI Packed.

The question is how these transport formats should be described so that
everyone is on the same page when it comes to unpacking.
A new field in the GstStructure, Maybe? 

The description in the fourcc headers of The Imaging Source would be as
follows. [] indicating a single byte:

#define FOURCC_BGGR12            mmioFOURCC('B', 'G', '1', '2') /* 12  BGBG..
GRGR.. */
#define FOURCC_GBRG12            mmioFOURCC('G', 'B', '1', '2') /* 12  GBGB..
RGRG.. */
#define FOURCC_GRBG12            mmioFOURCC('B', 'A', '1', '2') /* 12  GRGR..
BGBG.. */
#define FOURCC_RGGB12            mmioFOURCC('R', 'G', '1', '2') /* 12  RGRG..
GBGB.. */

#define FOURCC_GRBG12_SPACKED   mmioFOURCC('G', 'R', 'C', 'p') /* 12  u8,
[pix0_lo][pix0_hi | pix1_hi][pix1_lo] */
#define FOURCC_RGGB12_SPACKED   mmioFOURCC('R', 'G', 'C', 'p') /* 12   */
#define FOURCC_GBRG12_SPACKED   mmioFOURCC('G', 'B', 'C', 'p') /* 12   */
#define FOURCC_BGGR12_SPACKED   mmioFOURCC('B', 'G', 'C', 'p') /* 12   */

#define FOURCC_GRBG12_PACKED    mmioFOURCC('G', 'R', 'C', 'P') /* 12  u8,
[pix0_hi][pix0_lo | pix1_lo][pix1_hi] */
#define FOURCC_RGGB12_PACKED    mmioFOURCC('R', 'G', 'C', 'P') /* 12   */
#define FOURCC_GBRG12_PACKED    mmioFOURCC('G', 'B', 'C', 'P') /* 12   */
#define FOURCC_BGGR12_PACKED    mmioFOURCC('B', 'G', 'C', 'P') /* 12   */

#define FOURCC_GRBG12_MIPI_PACKED       mmioFOURCC('G', 'R', 'D', 'P') /* 12 
u8, [pix0_hi][pix1_hi][pix0_lo | pix1_lo] */
#define FOURCC_RGGB12_MIPI_PACKED       mmioFOURCC('R', 'G', 'D', 'P') /* 12  
*/
#define FOURCC_GBRG12_MIPI_PACKED       mmioFOURCC('G', 'B', 'D', 'P') /* 12  
*/
#define FOURCC_BGGR12_MIPI_PACKED       mmioFOURCC('B', 'G', 'D', 'P') /* 12  
*/

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list