*/
VLC_EXPORT( void, video_format_Setup, ( video_format_t *, vlc_fourcc_t i_chroma, int i_width, int i_height, int i_sar_num, int i_sar_den ) );
+/**
+ * It will copy the crop properties from a video_format_t to another.
+ */
+VLC_EXPORT( void, video_format_CopyCrop, ( video_format_t *, const video_format_t * ) );
+
/**
* This function will check if the first video format is similar
* to the second one.
break;
}
}
+
+void video_format_CopyCrop( video_format_t *p_dst, const video_format_t *p_src )
+{
+ p_dst->i_x_offset = p_src->i_x_offset;
+ p_dst->i_y_offset = p_src->i_y_offset;
+ p_dst->i_visible_width = p_src->i_visible_width;
+ p_dst->i_visible_height = p_src->i_visible_height;
+}
+
bool video_format_IsSimilar( const video_format_t *p_fmt1, const video_format_t *p_fmt2 )
{
video_format_t v1 = *p_fmt1;