video_capture_vlc
Classes | Functions
VlcCapture.h File Reference
#include <stdio.h>
#include <stdint.h>
#include <string>
#include <vlc/vlc.h>
#include <pthread.h>
#include <opencv2/opencv.hpp>

Go to the source code of this file.

Classes

class  VlcCaptureConsumer
 
class  VlcCapture
 

Functions

void pf_video_prerender_callback (void *p_video_data, uint8_t **pp_pixel_buffer, size_t size)
 
void pf_video_postrender_callback (void *p_video_data, uint8_t *p_pixel_buffer, int width, int height, int pixel_pitch, size_t size, libvlc_time_t pts)
 
void pf_audio_prerender_callback (void *p_audio_data, uint8_t **pp_pcm_buffer, size_t size)
 
void pf_audio_postrender_callback (void *p_audio_data, uint8_t *p_pcm_buffer, unsigned int channels, unsigned int rate, unsigned int nb_samples, unsigned int bits_per_sample, size_t size, libvlc_time_t pts)
 

Function Documentation

void pf_audio_postrender_callback ( void *  p_audio_data,
uint8_t *  p_pcm_buffer,
unsigned int  channels,
unsigned int  rate,
unsigned int  nb_samples,
unsigned int  bits_per_sample,
size_t  size,
libvlc_time_t  pts 
)
void pf_audio_prerender_callback ( void *  p_audio_data,
uint8_t **  pp_pcm_buffer,
size_t  size 
)
void pf_video_postrender_callback ( void *  p_video_data,
uint8_t *  p_pixel_buffer,
int  width,
int  height,
int  pixel_pitch,
size_t  size,
libvlc_time_t  pts 
)

image buffer full, unlock at end

void pf_video_prerender_callback ( void *  p_video_data,
uint8_t **  pp_pixel_buffer,
size_t  size 
)

lock and set the pointer to image buffer