@@ -78,7 +78,7 @@ struct v4l2_resolution
7878
7979struct v4l2_resolution v4l2_resolutions [] =
8080{
81- // 4:3
81+ /* 4:3 */
8282 {160 ,120 },
8383 {320 ,240 },
8484 {480 ,320 },
@@ -92,7 +92,7 @@ struct v4l2_resolution v4l2_resolutions[] =
9292 {1440 ,1080 },
9393 {1600 ,1200 },
9494 {1920 ,1440 },
95- // 16:9
95+ /* 16:9 */
9696 {640 ,360 },
9797 {960 ,540 },
9898 {1280 ,720 },
@@ -291,7 +291,8 @@ static void enumerate_audio_devices(char *s, size_t len)
291291 continue ;
292292 }
293293
294- //todo: add more info to make picking audio device more user friendly
294+ /* TODO/FIXME: Add more info to make picking
295+ * audio device more user friendly */
295296 descr = snd_device_name_get_hint (* n , "DESC" );
296297 if (!descr )
297298 {
@@ -305,8 +306,9 @@ static void enumerate_audio_devices(char *s, size_t len)
305306 appendstr (s , name , len );
306307 ++ ndevs ;
307308
308- // not sure if this is necessary but ensuring things are free/null
309- if (name != NULL )
309+ /* Not sure if this is necessary
310+ * but ensuring things are free/NULL */
311+ if (name )
310312 {
311313 free (name );
312314 name = NULL ;
@@ -593,6 +595,7 @@ RETRO_API void VIDEOPROC_CORE_PREFIX(retro_get_system_av_info)(struct retro_syst
593595 }
594596 else
595597 {
598+ bool nodouble ;
596599 /*
597600 * Query the device cropping limits. If available, we can use this to find the capture pixel aspect.
598601 */
@@ -618,14 +621,14 @@ RETRO_API void VIDEOPROC_CORE_PREFIX(retro_get_system_av_info)(struct retro_syst
618621 printf ("Resolution postfix %ux%u\n" , info -> geometry .base_width ,
619622 info -> geometry .base_height );
620623 }
621- // no doubling for interlaced or deinterlaced capture
622- bool nodouble = strcmp (video_capture_mode , "deinterlaced" ) == 0 || strcmp (video_capture_mode , "interlaced" ) == 0 ;
624+ /* no doubling for interlaced or deinterlaced capture */
625+ nodouble = strcmp (video_capture_mode , "deinterlaced" ) == 0 || strcmp (video_capture_mode , "interlaced" ) == 0 ;
623626 info -> geometry .max_height = nodouble ? video_format .fmt .pix .height : video_format .fmt .pix .height * 2 ;
624627
625628 /* TODO Only double if frames ARE fields (progressive or deinterlaced, full framerate)
626629 * *2 for fields
627630 */
628- // defaulting to 60 if this this doesn't return a usable number
631+ /* Defaulting to 60 if this this doesn't return a usable number */
629632 if (video_standard .frameperiod .denominator == 0 || video_standard .frameperiod .numerator == 0 )
630633 info -> timing .fps = 60 ;
631634 else
@@ -1281,7 +1284,7 @@ RETRO_API bool VIDEOPROC_CORE_PREFIX(retro_load_game)(const struct retro_game_in
12811284 fmt .fmt .pix .colorspace = V4L2_COLORSPACE_SRGB ;
12821285 fmt .fmt .pix .quantization = V4L2_QUANTIZATION_LIM_RANGE ;
12831286
1284- // applied set resolution if not set to auto
1287+ /* Applied set resolution if not set to auto */
12851288 if (strcmp (video_capture_resolution , "auto" ) != 0 )
12861289 {
12871290 strcpy (splitresolution , video_capture_resolution );
0 commit comments