2,543
社区成员
发帖
与我相关
我的任务
分享
//设置视频回调部分
libvlc_video_set_format_callbacks(m_plibvlc_media_player,fVlcDecoderFrameCB,NULL);
libvlc_video_set_callbacks(m_plibvlc_media_player,fVlcDecoderLockCB,fVlcDecoderUnLockCB,fVlcDecoderDisplayCB,this);
//回调处理部分
unsigned vlcdecoder::fVlcDecoderFrameCB(void **opaque, char *chroma,unsigned *width, unsigned *height,unsigned *pitches,unsigned *lines)
{
vlcdecoder* stream;
stream = (vlcdecoder*)*opaque;
stream->iVideoWidth_ = *width;
stream->iVideoWidth_ = *height;
return 0;
}
void vlcdecoder::fVlcDecoderUnLockCB(void *opaque, void *picture,void *const *planes)
{
//code
...
}
void vlcdecoder::fVlcDecoderDisplayCB(void *opaque, void *picture)
{
//code
..
}
void *vlcdecoder::fVlcDecoderLockCB(void *opaque, void **planes)
{
//code
....
}