Path: blob/master/modules/videoio/src/cap_mfx_reader.hpp
16339 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html34#ifndef CAP_MFX_HPP5#define CAP_MFX_HPP67#include "precomp.hpp"8910class MFXVideoSession;11class Plugin;12class DeviceHandler;13class ReadBitstream;14class SurfacePool;15class MFXVideoDECODE;1617class VideoCapture_IntelMFX : public cv::IVideoCapture18{19public:20VideoCapture_IntelMFX(const cv::String &filename);21virtual ~VideoCapture_IntelMFX();22virtual double getProperty(int) const CV_OVERRIDE;23virtual bool setProperty(int, double) CV_OVERRIDE;24virtual bool grabFrame() CV_OVERRIDE;25virtual bool retrieveFrame(int, cv::OutputArray out) CV_OVERRIDE;26virtual bool isOpened() const CV_OVERRIDE;27virtual int getCaptureDomain() CV_OVERRIDE;28private:29MFXVideoSession *session;30Plugin *plugin;31DeviceHandler *deviceHandler;32ReadBitstream *bs;33MFXVideoDECODE *decoder;34SurfacePool *pool;35void *outSurface;36bool good;37};383940#endif414243