Return true if the given format has vertical subsampling. * * @param[in] format Format to determine subsampling. * * @return True if the format can be subsampled verticaly. */
| 323 | * @return True if the format can be subsampled verticaly. |
| 324 | */ |
| 325 | inline bool has_format_vertical_subsampling(Format format) |
| 326 | { |
| 327 | return (format == Format::NV12 || format == Format::NV21 || format == Format::IYUV || format == Format::UV88) |
| 328 | ? true |
| 329 | : false; |
| 330 | } |
| 331 | |
| 332 | /** Adjust tensor shape size if width or height are odd for a given multi-planar format. No modification is done for other formats. |
| 333 | * |
no outgoing calls
no test coverage detected