Re: [PATCH v3 3/4] media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic

2020-05-07 Thread Ezequiel Garcia
On Thu, 2020-04-30 at 18:42 +0200, Paul Kocialkowski wrote: > This introduces two macros: RGA_COLOR_FMT_IS_YUV and RGA_COLOR_FMT_IS_RGB > which allow quick checking of the colorspace familily of a RGA color format. > > These macros are then used to refactor the logic for CSC mode selection. > The

[PATCH v3 3/4] media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic

2020-04-30 Thread Paul Kocialkowski
This introduces two macros: RGA_COLOR_FMT_IS_YUV and RGA_COLOR_FMT_IS_RGB which allow quick checking of the colorspace familily of a RGA color format. These macros are then used to refactor the logic for CSC mode selection. The two nested tests for input colorspace are simplified into a single