Пример #1
0
/*
 *   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);
}
Пример #2
0
VideoDecoder::VideoDecoder(QObject *parent, AVFormatContext *formatContext) :QObject(parent)
{
    videoFormatContext = formatContext;
    initVideoDecoder();

}