video/videomode/videomode_lookup.c: At some additional lookups from FreeBSD. Not currently used in NuttX so ifdef'ed out for now.

This commit is contained in:
Gregory Nutt
2019-07-10 17:26:07 -06:00
parent 77c7454773
commit 61d7fb5e41
5 changed files with 162 additions and 8 deletions
+33 -1
View File
@@ -133,7 +133,39 @@ void sort_videomodes(FAR struct videomode_s *modes,
*
****************************************************************************/
FAR const struct videomode_s *videomode_lookup(FAR const char *name);
FAR const struct videomode_s *videomode_lookup_by_name(FAR const char *name);
/****************************************************************************
* Name: videomode_lookup_by_dotclock
*
* Description:
* Find the video mode in a look-up table with the matching width and
* height and the closest dot clock that does not exceed the requested
* dot clock.
*
****************************************************************************/
#if 0 /* Not used */
FAR const struct videomode_s *
videomode_lookup_by_dotclock(uint16_t width, uint16_t height,
uint32_t dotclock);
#endif
/****************************************************************************
* Name: videomode_lookup_by_refresh
*
* Description:
* Find the video mode in a look-up table with the matching width and
* height and the closest refresh rate that does not exceed the requested
* rate.
*
****************************************************************************/
#if 0 /* Not used */
FAR const struct videomode_s *
videomode_lookup_by_refresh(uint16_t width, uint16_t height,
uint16_t refresh);
#endif
/****************************************************************************
* Name: videomode_dump