creating a new video out module

Bram Stolk bram at sara.nl
Wed Sep 4 15:23:24 CEST 2002


On Thu, 22 Aug 2002 17:26:03 +0200
Samuel Hocevar <sam at zoy.org> wrote:

> On Thu, Aug 22, 2002, Bram Stolk wrote:
> 
> > I would like to write a video-out module that instead of actually
> > rendering the frames, will dump the frames in shared memory.
> > 
> > Any tips on how to proceed on this?
> > Create it from the dummy vout template, or from another file?
> 
>    modules/misc/dummy/vout.c, definitely. See this post for some more
> information (it is about the 0.4.x releases but you should use the CVS
> version for your development):
> 
>     http://www.via.ecp.fr/ml/videolan/vlc-devel/200208/msg00105.html

Thanks a lot.
I hacked some printfs in both the dummy vout of CVS and 0.4.4,
like this:

static void Render( vout_thread_t *p_vout, picture_t *p_pic )
{
  int y_h = p_pic->p[0].i_lines;
  int y_w = p_pic->p[0].i_pitch;

  int u_h = p_pic->p[1].i_lines;
  int u_w = p_pic->p[1].i_pitch;

  int v_h = p_pic->p[2].i_lines;
  int v_w = p_pic->p[2].i_pitch;

  printf
  (
    "Dummy render. Y=%dx%d, U=%dx%d, V=%dx%d\n",
    y_w, y_h,
    u_w, u_h,
    v_w, v_h
  );

  /* No need to do anything, the fake direct buffers stay as they are */
}

Strangely enough, if I feed vlc an MPEG of size 352x288, I get this
output on CVS version:
Dummy render. Y=704x288, U=0x0, V=0x0
And on 0.4.4:
0.4.4 Dummy render. Y=704x288, U=1952805471x1617324396, V=1836016757x1684369184

Does the dummy somehow get a rescaled version of the frames?
And also, why are UV missing from the frames?

As a side note:
0.4.4 works OK on IRIX (gcc compiled)
MIPSPRO compilers cannot build vlc.
Also, 0.4.4 x11 output works, but CVS x11 output gives
a core dump:

(dbx) where
>  0 __missing_function_user_error_trap(0x1018bdc8, 0x10180d94, 0x10180d94, 0x4b0, 0x20, 0x1018d32c, 0x0, 0x6b) ["/xlv44/6.5.13m/work/irix/lib/libc/libc_n32_M4/rld/missing_function_trap.s":8, 0x40ac1c0]
   1 __missing_function_(0x1018bdc8, 0x10180d94, 0x10180d94, 0x4b0, 0x20, 0x1018d32c, 0x0, 0x6b) ["/xlv44/6.5.13m/work/irix/lib/libc/libc_n32_M4/rld/missing_function.c":15, 0x40ac9f4]
   2 <Unknown>() [< unknown >, 0x5ff79e64]


Thanks,

   Bram


> 
> -- 
> Sam.
> 
> -- 
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://www.videolan.org/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>
> 
> 


-- 
------------------------------------------------------------------------------
 Bram Stolk, VR Specialist.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP  AMSTERDAM
 email: bram at sara.nl   Phone +31-20-5923059  Fax +31-20-6683167

 "I heard if you play the NT-4.0-CD backwards, you get a satanic message."
 "Thats nothing, if you play it forward, it installs NT-4.0"
------------------------------------------------------------------------------
-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list