*/
VLC_EXPORT( bool, video_format_IsSimilar, ( const video_format_t *, const video_format_t * ) );
+/**
+ * It prints details about the given video_format_t
+ */
+VLC_EXPORT( void, video_format_Print, ( vlc_object_t *, const char *, const video_format_t * ) );
+
/**
* subtitles format description
*/
}
return true;
}
+void video_format_Print( vlc_object_t *p_this,
+ const char *psz_text, const video_format_t *fmt )
+{
+ msg_Dbg( p_this,
+ "%s sz %ix%i, of (%i,%i), vsz %ix%i, 4cc %4.4s, sar %i:%i, msk r0x%x g0x%x b0x%x",
+ psz_text,
+ fmt->i_width, fmt->i_height, fmt->i_x_offset, fmt->i_y_offset,
+ fmt->i_visible_width, fmt->i_visible_height,
+ (char*)&fmt->i_chroma,
+ fmt->i_sar_num, fmt->i_sar_den,
+ fmt->i_rmask, fmt->i_gmask, fmt->i_bmask );
+}
void es_format_Init( es_format_t *fmt,
int i_cat, vlc_fourcc_t i_codec )
static int VideoFilter2Callback( vlc_object_t *, char const *,
vlc_value_t, vlc_value_t, void * );
-/* */
-static void PrintVideoFormat(vout_thread_t *, const char *, const video_format_t *);
-
/* Maximum delay between 2 displayed pictures.
* XXX it is needed for now but should be removed in the long term.
*/
vout->p->displayed.decoded = NULL;
- PrintVideoFormat(vout, "original format", &vout->p->original);
+ video_format_Print(VLC_OBJECT(vout), "original format", &vout->p->original);
return VLC_SUCCESS;
}
return VLC_SUCCESS;
}
-/* */
-static void PrintVideoFormat(vout_thread_t *vout,
- const char *description,
- const video_format_t *fmt)
-{
- msg_Dbg(vout, "%s sz %ix%i, of (%i,%i), vsz %ix%i, 4cc %4.4s, sar %i:%i, msk r0x%x g0x%x b0x%x",
- description,
- fmt->i_width, fmt->i_height, fmt->i_x_offset, fmt->i_y_offset,
- fmt->i_visible_width, fmt->i_visible_height,
- (char*)&fmt->i_chroma,
- fmt->i_sar_num, fmt->i_sar_den,
- fmt->i_rmask, fmt->i_gmask, fmt->i_bmask);
-}
-