Skip to content

Commit

Permalink
Add RGB24
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Feb 3, 2025
1 parent 5007ec8 commit c0f29c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zm_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5550,6 +5550,10 @@ AVPixelFormat Image::AVPixFormat(AVPixelFormat new_pixelformat) {
colours = ZM_COLOUR_RGB24;
subpixelorder = ZM_SUBPIX_ORDER_BGR;
break;
case AV_PIX_FMT_RGB24:
colours = ZM_COLOUR_RGB24;
subpixelorder = ZM_SUBPIX_ORDER_RGB;
break;
case AV_PIX_FMT_GRAY8:
colours = ZM_COLOUR_GRAY8;
break;
Expand Down

0 comments on commit c0f29c0

Please sign in to comment.