Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
4287961a
O
Opencv
项目概览
Greenplum
/
Opencv
12 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4287961a
编写于
3月 07, 2021
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
videoio(doc): add 'videoio_hwaccel' group, fix typos
上级
be24659c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
55 addition
and
9 deletion
+55
-9
doc/tutorials/app/video_write.markdown
doc/tutorials/app/video_write.markdown
+1
-1
modules/videoio/doc/videoio_overview.markdown
modules/videoio/doc/videoio_overview.markdown
+3
-3
modules/videoio/include/opencv2/videoio.hpp
modules/videoio/include/opencv2/videoio.hpp
+16
-4
modules/videoio/include/opencv2/videoio/doc/hwaccel.doc.hpp
modules/videoio/include/opencv2/videoio/doc/hwaccel.doc.hpp
+34
-0
samples/cpp/videocapture_gstreamer_pipeline.cpp
samples/cpp/videocapture_gstreamer_pipeline.cpp
+1
-1
未找到文件。
doc/tutorials/app/video_write.markdown
浏览文件 @
4287961a
...
...
@@ -66,7 +66,7 @@ extension, its first version. A direct limitation of this is that you cannot sav
larger than 2 GB. Furthermore you can only create and expand a single video track inside the
container. No audio or other track editing support here. Nevertheless, any video codec present on
your system might work. If you encounter some of these limitations you will need to look into more
specialized video writing libraries such as
*FF
M
peg*
or codecs as
*HuffYUV*
,
*CorePNG*
and
*LCL*
. As
specialized video writing libraries such as
*FF
m
peg*
or codecs as
*HuffYUV*
,
*CorePNG*
and
*LCL*
. As
an alternative, create the video track with OpenCV and expand it with sound tracks or convert it to
other formats by using video manipulation programs such as
*VirtualDub*
or
*AviSynth*
.
...
...
modules/videoio/doc/videoio_overview.markdown
浏览文件 @
4287961a
...
...
@@ -3,7 +3,7 @@ Video I/O with OpenCV Overview {#videoio_overview}
### See also:
-
@ref videoio "Video I/O Code Reference"
-
Tutorials: @ref tutorial_table_of_content_
videoio
-
Tutorials: @ref tutorial_table_of_content_
app
General Information
===================
...
...
@@ -15,7 +15,7 @@ I/O APIs used as backend.
![
Video I/O with OpenCV
](
pics/videoio_overview.svg
)
Some backends such as
(DSHOW) Direct Show
, Microsoft Media Foundation (MSMF),
Some backends such as
Direct Show (DSHOW)
, Microsoft Media Foundation (MSMF),
Video 4 Linux (V4L), etc... are interfaces to the video I/O library provided by the operating system.
Some others backends like OpenNI2 for Kinect, Intel Perceptual Computing SDK, GStreamer,
...
...
@@ -90,7 +90,7 @@ The FFmpeg library
OpenCV can use the FFmpeg library (http://ffmpeg.org/) as backend to record, convert and stream audio and video.
FFmpeg is a complete, cross-reference solution. If you enable FFmpeg while configuring OpenCV than
CMake will download and install the binaries in
`OPENCV_SOURCE_CODE/3rdparty/ffmpeg/`
. To use
FFmpeg at runtime, you must deploy the FF
Mep
g binaries with your application.
FFmpeg at runtime, you must deploy the FF
mpe
g binaries with your application.
@note FFmpeg is licensed under the GNU Lesser General Public License (LGPL) version 2.1 or later.
See
`OPENCV_SOURCE_CODE/3rdparty/ffmpeg/readme.txt`
and http://ffmpeg.org/legal.html for details and
...
...
modules/videoio/include/opencv2/videoio.hpp
浏览文件 @
4287961a
...
...
@@ -52,10 +52,11 @@
### See also:
- @ref videoio_overview
- Tutorials: @ref tutorial_table_of_content_
videoio
- Tutorials: @ref tutorial_table_of_content_
app
@{
@defgroup videoio_flags_base Flags for video I/O
@defgroup videoio_flags_others Additional flags for video I/O API backends
@defgroup videoio_hwaccel Hardware-accelerated video decoding and encoding
@defgroup videoio_c C API for video I/O
@defgroup videoio_ios iOS glue for video I/O
@defgroup videoio_winrt WinRT glue for video I/O
...
...
@@ -211,6 +212,10 @@ enum VideoWriterProperties {
//! @addtogroup videoio_flags_others
//! @{
/** @name Hardware acceleration support
@{
*/
/** @brief Video Acceleration type
*
* Used as value in #CAP_PROP_HW_ACCELERATION and #VIDEOWRITER_PROP_HW_ACCELERATION
...
...
@@ -231,6 +236,8 @@ enum VideoAccelerationType
VIDEO_ACCELERATION_MFX
=
4
,
//!< libmfx (Intel MediaSDK/oneVPL)
};
//! @} Hardware acceleration support
/** @name IEEE 1394 drivers
@{
*/
...
...
@@ -521,8 +528,9 @@ enum { CAP_PROP_XI_DOWNSAMPLING = 400, //!< Chan
//! @} XIMEA
/** @name XIMEA Camera API
* @{
/** @name ARAVIS Camera API
@{
*/
//! Properties of cameras available through ARAVIS backend
...
...
@@ -532,7 +540,6 @@ enum { CAP_PROP_ARAVIS_AUTOTRIGGER = 600 //!< Autom
//! @} ARAVIS
/** @name AVFoundation framework for iOS
OS X Lion will have the same API
@{
*/
...
...
@@ -544,6 +551,9 @@ enum { CAP_PROP_IOS_DEVICE_FOCUS = 9001,
CAP_PROP_IOS_DEVICE_TORCH
=
9005
};
//! @} AVFoundation framework for iOS
/** @name Smartek Giganetix GigEVisionSDK
@{
*/
...
...
@@ -1089,8 +1099,10 @@ protected:
Size
frameSize
,
bool
isColor
=
true
);
};
//! @cond IGNORED
template
<
>
struct
DefaultDeleter
<
CvCapture
>
{
CV_EXPORTS
void
operator
()(
CvCapture
*
obj
)
const
;
};
template
<
>
struct
DefaultDeleter
<
CvVideoWriter
>
{
CV_EXPORTS
void
operator
()(
CvVideoWriter
*
obj
)
const
;
};
//! @endcond IGNORED
//! @} videoio
...
...
modules/videoio/include/opencv2/videoio/doc/hwaccel.doc.hpp
0 → 100644
浏览文件 @
4287961a
// 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.
//
// This file should not be used with compiler (documentation only)
//
namespace
cv
{
/** @addtogroup videoio_hwaccel
This section contains information about API to control Hardware-accelerated video decoding and encoding.
@note Check [Wiki page](https://github.com/opencv/opencv/wiki/Video-IO-hardware-acceleration)
for description of supported hardware / software configurations and available benchmarks
cv::VideoCapture properties:
- #CAP_PROP_HW_ACCELERATION (as #VideoAccelerationType)
- #CAP_PROP_HW_DEVICE
cv::VideoWriter properties:
- #VIDEOWRITER_PROP_HW_ACCELERATION (as #VideoAccelerationType)
- #VIDEOWRITER_PROP_HW_DEVICE
Properties are supported by these backends:
- #CAP_FFMPEG
- #CAP_GSTREAMER
- #CAP_MSMF (Windows)
@{
*/
/** @} */
}
// namespace
samples/cpp/videocapture_gstreamer_pipeline.cpp
浏览文件 @
4287961a
...
...
@@ -223,7 +223,7 @@ inline Ptr<VideoWriter> createWriter(const string &backend, const string &file_n
}
else
if
(
backend
==
"ffmpeg"
)
{
cout
<<
"Created FF
M
peg writer ( "
<<
file_name
<<
", FPS="
<<
fps
<<
", Size="
<<
sz
<<
" )"
<<
endl
;
cout
<<
"Created FF
m
peg writer ( "
<<
file_name
<<
", FPS="
<<
fps
<<
", Size="
<<
sz
<<
" )"
<<
endl
;
return
makePtr
<
VideoWriter
>
(
file_name
,
CAP_FFMPEG
,
getValue
(
fourccByCodec
(),
codec
,
"Invalid codec"
),
fps
,
sz
,
true
);
}
return
Ptr
<
VideoWriter
>
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录