DScreenRecorder类提供录屏相关接口,获取屏幕数据裸流.
更多...
#include <dscreenrecorder.h>
|
enum | VCodecID { CODEC_ID_NO
, CODEC_ID_H264
, CODEC_ID_MPEG4
} |
|
enum | PixFormatID {
PIX_FMT_YUV420P
, PIX_FMT_YUYV422
, PIX_FMT_RGB24
, PIX_FMT_BGR24
,
PIX_FMT_ARGB
, PIX_FMT_RGBA
} |
|
|
void | record () |
|
void | stop () |
|
|
void | screenStreamData (QImage) |
|
|
QScopedPointer< DScreenRecorderPrivate > | d_ptr |
|
DScreenRecorder类提供录屏相关接口,获取屏幕数据裸流.
◆ bitRate()
int DScreenRecorder::bitRate |
( |
| ) |
const |
◆ codec()
ACodecID DScreenRecorder::codec |
( |
| ) |
const |
◆ frameRate()
int DScreenRecorder::frameRate |
( |
| ) |
const |
◆ outputLocation()
QUrl DScreenRecorder::outputLocation |
( |
| ) |
const |
◆ pixfmt()
PixFormatID DScreenRecorder::pixfmt |
( |
| ) |
const |
◆ resolution()
QSize DScreenRecorder::resolution |
( |
| ) |
const |
◆ setBitRate()
void DScreenRecorder::setBitRate |
( |
int |
bitrate | ) |
|
◆ setCodec()
void DScreenRecorder::setCodec |
( |
const VCodecID & |
codec | ) |
|
设置视频编码格式.
- 参数
-
[in] | codec | 编码枚举值, CODEC_ID_H264 h264编码, CODEC_ID_MPEG4 mpeg4编码, CODEC_ID_NO 默认编码 |
◆ setFrameRate()
void DScreenRecorder::setFrameRate |
( |
int |
rate | ) |
|
◆ setOutputLocation()
bool DScreenRecorder::setOutputLocation |
( |
const QUrl & |
location | ) |
|
◆ setPixfmt()
void DScreenRecorder::setPixfmt |
( |
const PixFormatID |
pixfmt | ) |
|
◆ setResolution()
void DScreenRecorder::setResolution |
( |
const int |
width, |
|
|
const int |
height |
|
) |
| |
设置视频宽高.
- 参数
-
[in] | width | 视频宽度. |
[in] | height | 视频高度. |
◆ setTopLeft()
void DScreenRecorder::setTopLeft |
( |
const int |
x, |
|
|
const int |
y |
|
) |
| |
设置桌面录制坐标.
- 参数
-
[in] | x | 录制位置x坐标. |
[in] | y | 录制位置y坐标. |
◆ state()
State DScreenRecorder::state |
( |
| ) |
const |
◆ topLeft()
QPoint DScreenRecorder::topLeft |
( |
| ) |
const |
该类的文档由以下文件生成: