libcamera: formats: Change bytesPerGroup of RGB565 and RGB565_BE from 3 to 2
The RGB565 and RGB565_BE formats incorrectly specify a wrong value of 3 bytes per group of pixels, when they actually use 2. Fix them. Signed-off-by: Hou Qi <qi.hou@nxp.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
19617424db
commit
ff069d87e2
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
|
||||||
.colourEncoding = PixelFormatInfo::ColourEncodingRGB,
|
.colourEncoding = PixelFormatInfo::ColourEncodingRGB,
|
||||||
.packed = false,
|
.packed = false,
|
||||||
.pixelsPerGroup = 1,
|
.pixelsPerGroup = 1,
|
||||||
.planes = {{ { 3, 1 }, { 0, 0 }, { 0, 0 } }},
|
.planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }},
|
||||||
} },
|
} },
|
||||||
{ formats::RGB565_BE, {
|
{ formats::RGB565_BE, {
|
||||||
.name = "RGB565_BE",
|
.name = "RGB565_BE",
|
||||||
|
@ -167,7 +167,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
|
||||||
.colourEncoding = PixelFormatInfo::ColourEncodingRGB,
|
.colourEncoding = PixelFormatInfo::ColourEncodingRGB,
|
||||||
.packed = false,
|
.packed = false,
|
||||||
.pixelsPerGroup = 1,
|
.pixelsPerGroup = 1,
|
||||||
.planes = {{ { 3, 1 }, { 0, 0 }, { 0, 0 } }},
|
.planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }},
|
||||||
} },
|
} },
|
||||||
{ formats::BGR888, {
|
{ formats::BGR888, {
|
||||||
.name = "BGR888",
|
.name = "BGR888",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue