[MPlayer-dev-eng] [PATCH] video filter 2d denoiser

"Михаил Байков" pacak at bk.ru
Wed Sep 10 16:14:02 CEST 2003


Hi all!
                                                                                              
I wrote very nice 2d video denoiser filter, but there`s one question with it.
                                                                                              
In this filter I change only first colorplane (Y), so I want to
pass U and V componets without any changes.
If I write something like
                                                                                              
dmpi->planes[1] = mpi->planes[1];
dmpi->planes[2] = mpi->planes[2];
                                                                                              
, this works only
for mplayer. (mencoder compress all with grayscale)
At present time I put
                                                                                              
memcpy (dmpi->planes[1], mpi->planes[1], mpi->h * mpi->stride[1] / 2);
memcpy (dmpi->planes[2], mpi->planes[2], mpi->h * mpi->stride[2] / 2);
                                                                                              
and assept only "IMGFMT_YV12" format. But this looks VERY ugly.
How can I do it correctly?
                                                                                              
PS: Sorry for my English, i`m russian ;)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2
Type: application/octet-stream
Size: 19170 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030910/047a0d21/attachment.obj>


More information about the MPlayer-dev-eng mailing list