Download modules/videoio/src/cap_ffmpeg_legacy_api.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 2.17 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/videoio/src/cap_ffmpeg_legacy_api.hpp
- Command line
-
hf download hf://tgollogly/test/modules/videoio/src/cap_ffmpeg_legacy_api.hpp
-
curl -L -o cap_ffmpeg_legacy_api.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/videoio/src/cap_ffmpeg_legacy_api.hpp
2.17 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html. | |
| extern "C" | |
| { | |
| typedef struct CvCapture_FFMPEG CvCapture_FFMPEG; | |
| typedef struct CvVideoWriter_FFMPEG CvVideoWriter_FFMPEG; | |
| //OPENCV_FFMPEG_API struct CvCapture_FFMPEG* cvCreateFileCapture_FFMPEG(const char* filename); | |
| OPENCV_FFMPEG_API int cvSetCaptureProperty_FFMPEG(struct CvCapture_FFMPEG* cap, | |
| int prop, double value); | |
| OPENCV_FFMPEG_API double cvGetCaptureProperty_FFMPEG(struct CvCapture_FFMPEG* cap, int prop); | |
| OPENCV_FFMPEG_API int cvGrabFrame_FFMPEG(struct CvCapture_FFMPEG* cap); | |
| OPENCV_FFMPEG_API int cvRetrieveFrame_FFMPEG(struct CvCapture_FFMPEG* capture, unsigned char** data, | |
| int* step, int* width, int* height, int* cn); | |
| OPENCV_FFMPEG_API int cvRetrieveFrame2_FFMPEG(struct CvCapture_FFMPEG* capture, unsigned char** data, | |
| int* step, int* width, int* height, int* cn, int* depth); | |
| OPENCV_FFMPEG_API void cvReleaseCapture_FFMPEG(struct CvCapture_FFMPEG** cap); | |
| OPENCV_FFMPEG_API struct CvVideoWriter_FFMPEG* cvCreateVideoWriter_FFMPEG(const char* filename, | |
| int fourcc, double fps, int width, int height, int isColor ); | |
| OPENCV_FFMPEG_API int cvWriteFrame_FFMPEG(struct CvVideoWriter_FFMPEG* writer, const unsigned char* data, | |
| int step, int width, int height, int cn, int origin); | |
| OPENCV_FFMPEG_API void cvReleaseVideoWriter_FFMPEG(struct CvVideoWriter_FFMPEG** writer); | |
| } | |