[MPlayer-dev-eng] Next stable?
Kim Minh Kaplan
kaplan at kim-minh.com
Thu Jan 24 13:31:48 CET 2002
David Holm writes:
> I haven't looked into how osd works yet. But a good solution for me
> would be to check for video flag 0x8 (which I currently use to get
> subpics from dvds to pass straight on to the em8300 instead of spuenc)
> and if found call a function similar to draw_alpha, but also passes a
> duration for that particular overlay (timer for instance would have a
> duration of 1s since it's updated once every sec). This function should
> only be called once (i.e. not every frame). Timeunits should probably
> not be given in seconds, standard mpeg timestamps works for me (90000Hz)
> or millisecs or whatever.
> This function should be called once for every object. For example, once
> for timer, once for progress bar, to create two smaller overlays instead
> of one big (since the progress bar is on the middle of the screen and
> the timer at the top left). AFAIK the overlay processing in the em8300
> can display several subpics at one time as this is the way subpics are
> defined...
If I understand you correctly, from the subpicture point of view, it
would need to have a handle on the video output driver (video_out),
and then each time it wants to display a new subtitle it would do a
vo2_display_overlay(video_out,image,duration). Is that it? In which
case this could be quite easy. Do you already have an API to display
overlays? Can the Matrox G200 or NVidia Riva TNT do this overlay
thingy (that's what I can test with)?
Kim Minh.
More information about the MPlayer-dev-eng
mailing list