点击或拖拽改变大小

MediaPlayerLibVLCVideoFormatCb 委托

Callback prototype to configure picture buffers format.

This callback gets the format of the video as output by the video decoder

and the chain of video filters (if any). It can opt to change any parameter

as it needs. In that case, LibVLC will attempt to convert the video format

(rescaling and chroma conversion) but these operations can be CPU intensive.

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public delegate uint LibVLCVideoFormatCb(
	ref IntPtr opaque,
	IntPtr chroma,
	ref uint width,
	ref uint height,
	ref uint pitches,
	ref uint lines
)

参数

opaque
类型:SystemIntPtr

pointer to the private pointer passed to

libvlc_video_set_callbacks() [IN/OUT]

chroma
类型:SystemIntPtr
pointer to the 4 bytes video format identifier [IN/OUT]
width
类型:SystemUInt32
pointer to the pixel width [IN/OUT]
height
类型:SystemUInt32
pointer to the pixel height [IN/OUT]
pitches
类型:SystemUInt32

table of scanline pitches in bytes for each pixel plane

(the table is allocated by LibVLC) [OUT]

lines
类型:SystemUInt32
table of scanlines count for each plane [OUT]

返回值

类型:UInt32
the number of picture buffers allocated, 0 indicates failure
备注

For each pixels plane, the scanline pitch must be bigger than or equal to

the number of bytes per pixel multiplied by the pixel width.

Similarly, the number of scanlines must be bigger than of equal to

the pixel height.

Furthermore, we recommend that pitches and lines be multiple of 32

to not break assumptions that might be held by optimized code

in the video decoders, video filters and/or video converters.

参见