/* * getTotalVideoDecoder * This function gets the total number of capture devices that has been * initialized and detected. * * Output: * Total number of initialized capture devices. * */ unsigned char getTotalVideoDecoder() { /* Initialize the capture device if it has not been initialized yet. */ if (g_ucInitialized == 0) initVideoDecoder(); return(g_ucNumberOfDevices); }
VideoDecoder::VideoDecoder(QObject *parent, AVFormatContext *formatContext) :QObject(parent) { videoFormatContext = formatContext; initVideoDecoder(); }