[vlc-devel] [PATCH 40/42] vdpau: basic deinterlacing filter
Ilkka Ollakka
ileoo at videolan.org
Sat Jun 29 11:24:07 CEST 2013
On Fri, Jun 28, 2013 at 09:30:28PM +0300, Rémi Denis-Courmont wrote:
Hi,
> ---
> --- /dev/null
> +++ b/modules/hw/vdpau/deinterlace.c
> +
> +static int Open(vlc_object_t *obj)
> +{
> + filter_t *filter = (filter_t *)obj;
> +
> + if (filter->fmt_in.video.i_chroma != VLC_CODEC_VDPAU_VIDEO_422
> + && filter->fmt_in.video.i_chroma != VLC_CODEC_VDPAU_VIDEO_420)
> + return VLC_EGENERIC;
> + if (!video_format_IsSimilar(&filter->fmt_in.video, &filter->fmt_out.video))
> + return VLC_EGENERIC;
> +
> + filter_sys_t *sys = malloc(sizeof (*sys));
> + if (unlikely(sys == NULL))
> + return VLC_ENOMEM;
> +
> + /* NOTE: Only weave and bob are mandatory for the hardware to implement.
> + * The other modes and IVTC should be checked. */
> +
> + sys->last_pts = VLC_TS_INVALID;
> +
> + filter->pf_video_filter = Deinterlace;
> + filter->p_sys = sys;
> + return VLC_SUCCESS;
Doesn't the filter also change the fmt_out.video.i_frame_rate or did I
just misread the filter part?
--
Ilkka Ollakka
Tact is the art of making a point without making an enemy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130629/8f1f72d4/attachment.sig>
More information about the vlc-devel
mailing list