用户
 找回密码
 立即注册
搜索

[视频] 关于Windows Vsita的EVR。

[复制链接]

20

主题

216

帖子

72

积分

注册会员

Rank: 2

积分
72
发表于 2007-3-14 12:11:00
关于Windows Vsita的EVR。
Enhanced Video Renderer  

The enhanced video renderer (EVR) is a component that displays video on the user's monitor. Two versions of the EVR exist:

  • The EVR media sink, for Media Foundation applications.
  • The EVR filter, for DirectShow applications.
Both versions use the same internal objects to render video, and they share many of the same interfaces.
The EVR can mix up to 16 video streams. The first input stream is called the reference stream. The reference stream always appears first in the z-order. Any additional streams are called substreams, and are mixed on top of the reference stream. The application can change the z-order of the substreams, but no substream can be first in the z-order.

The graphics driver determines which video formats are supported, but typically they are limited to the following:

  • Reference stream: Progressive or interlaced YUV with no per-pixel alpha (such as NV12 or YUY2); or progressive RGB.
  • Substreams: Progressive YUV with per-pixel-alpha, such as AYUV or AI44.
The available substream formats might depend on the format of the reference stream. For more information, see EVR Media Type Negotiation.
Internally, the EVR uses an object called the mixer to composite the frames from the input streams onto one surface for rendering. The mixer also performs deinterlacing and color correction. The output from the mixer is the final composited video frame. Then a second object called the presenter renders this frame to the display. The presenter schedules when the frames are rendered and manages the Direct3D device. Applications can replace either of these objects with their own custom implementations.

The output frame rate is locked to the reference stream. Whenever the substreams receive new frames, the mixer holds onto them. When the reference stream receives a new frame, the mixer composites that frame with the substream frames. (If the reference stream is interlaced, a complete reference frame may require more than one media sample.) It is possible for a substream to receive more than one frame while the mixer is waiting for a reference frame. In that case, the mixer simply discards the previous substream frame.
This section contains the following topics:


Topic DescriptionUsing the DirectShow EVR Filter
How to use the EVR in a DirectShow application.
使用道具 举报 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则