Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/core/psysprocessor/PGUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ int getStride(int cssFmt, int width) {
int stride = width;
switch (cssFmt) {
case IA_CSS_DATA_FORMAT_BAYER_GRBG: // GR10
case IA_CSS_DATA_FORMAT_BAYER_BGGR: // BG10 (e.g. OV5693 with sensor vflip)
case IA_CSS_DATA_FORMAT_BAYER_RGGB:
case IA_CSS_DATA_FORMAT_BAYER_GBRG:
case IA_CSS_DATA_FORMAT_RAW: // BA10
stride = ALIGN_64(width * 2);
break;
Expand Down
3 changes: 2 additions & 1 deletion src/core/psysprocessor/PipeLiteExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ bool PipeLiteExecutor::isSameStreamConfig(const stream_t& internal, const stream
* PG use its kernel to crop to GRBG
*/
if ((internalFormat == V4L2_PIX_FMT_SGRBG10 || internalFormat == V4L2_PIX_FMT_SGRBG12) &&
(external.format == V4L2_PIX_FMT_SRGGB10 || external.format == V4L2_PIX_FMT_SRGGB12)) {
(external.format == V4L2_PIX_FMT_SRGGB10 || external.format == V4L2_PIX_FMT_SRGGB12 ||
external.format == V4L2_PIX_FMT_SBGGR10 || external.format == V4L2_PIX_FMT_SBGGR12)) {
return true;
}

Expand Down
3 changes: 3 additions & 0 deletions src/iutils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ int32_t CameraUtils::getBpl(int32_t format, int32_t width) {
case GET_FOURCC_FMT('b', 'V', '0', 'K'): // BV0K
case GET_FOURCC_FMT('B', 'A', '1', '0'): // BA10
case GET_FOURCC_FMT('G', 'R', '1', '0'): // GR10
case GET_FOURCC_FMT('B', 'G', '1', '0'): // BG10 (BGGR bayer, e.g. OV5693 vflip)
case GET_FOURCC_FMT('R', 'G', '1', '0'): // RG10
case GET_FOURCC_FMT('G', 'B', '1', '0'): // GB10
case GET_FOURCC_FMT('B', 'A', '1', '2'): // BA12
case GET_FOURCC_FMT('P', '0', '1', '0'): // P010
case GET_FOURCC_FMT('P', '0', '1', 'L'): // P010_LSB
Expand Down