[PATCH -next 0/2] media: atomisp: use clamp() instead of min(max())

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When it needs to get the value of a certain interval [min, max],
it is easier to understand using clamp(x, min, max) instead of
min(max(x, min), max). What needs to be determined is that min
should be smaller than max.

Li Zetao (2):
  media: atomisp: use clamp() in ia_css_eed1_8_encode()
  media: atomisp: use clamp() in compute_coring()

 .../pci/isp/kernels/eed1_8/ia_css_eed1_8.host.c      |  2 +-
 .../pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c   | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.34.1





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux