Skip to content

Commit c6c44bb

Browse files
committed
Fix typo
1 parent 6be1095 commit c6c44bb

123 files changed

Lines changed: 164 additions & 170 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

App/RabbitImApp.pro.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ isEmpty(RabbitCommon_DIR): RabbitCommon_DIR=$$PWD/../../RabbitCommon
4444
message("Don't find RabbitCommon, in environment variable RabbitCommon_DIR:$$RabbitCommon_DIR")
4545
message("1. Please download RabbitCommon source code from https://github.com/KangLin/RabbitCommon ag:")
4646
message(" git clone https://github.com/KangLin/RabbitCommon.git")
47-
error ("2. Then set environment variable RabbitCommon_DIR to download dirctory")
47+
error ("2. Then set environment variable RabbitCommon_DIR to download directory")
4848
}
4949

5050
SOURCES += main.cpp

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ else()
121121
message("1. Please download RabbitCommon source code from https://github.com/KangLin/RabbitCommon")
122122
message(" ag:")
123123
message(" git clone https://github.com/KangLin/RabbitCommon.git")
124-
message("2. Then set cmake value or environment variable RabbitCommon_DIR to download root dirctory.")
124+
message("2. Then set cmake value or environment variable RabbitCommon_DIR to download root directory.")
125125
message(" ag:")
126126
message(FATAL_ERROR " cmake -DRabbitCommon_DIR= ")
127127
endif()
@@ -160,7 +160,7 @@ CONFIGURE_FILE(
160160
"${RabbitCommon_DIR}/cmake/cmake_uninstall.cmake.in"
161161
"${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
162162
IMMEDIATE @ONLY)
163-
# Create unistall target
163+
# Create uninstall target
164164
ADD_CUSTOM_TARGET(uninstall
165165
"${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
166166
DEPENDS uninstall-runtime)

Install/Install.nsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Function InstallVC
8282
ClearErrors
8383
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}" "Version"
8484

85-
; check regist
85+
; check register
8686
IfErrors 0 VSRedistInstalled
8787
Exec "$INSTDIR\bin\vcredist_x86.exe /q /norestart"
8888
StrCpy $R0 "-1"
@@ -98,7 +98,7 @@ Function _InstallVC
9898
ClearErrors
9999
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}" "Version"
100100

101-
; check regist
101+
; check register
102102
IfErrors 0 VSRedistInstalled
103103
Exec "$INSTDIR\bin\vc_redist.x86.exe /q /norestart"
104104
StrCpy $R0 "-1"
@@ -114,7 +114,7 @@ Function InstallVC64
114114
ClearErrors
115115
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}" "Version"
116116

117-
; check regist
117+
; check register
118118
IfErrors 0 VSRedistInstalled
119119
Exec "$INSTDIR\bin\vcredist_x64.exe /q /norestart"
120120
StrCpy $R0 "-1"
@@ -130,7 +130,7 @@ Function _InstallVC64
130130
ClearErrors
131131
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FF66E9F6-83E7-3A3E-AF14-8DE9A809A6A4}" "Version"
132132

133-
; check regist
133+
; check register
134134
IfErrors 0 VSRedistInstalled
135135
Exec "$INSTDIR\bin\vc_redist.x64.exe /q /norestart"
136136
StrCpy $R0 "-1"

Install/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ case "$1" in
1414

1515
install|*)
1616
echo "install ..."
17-
# Install destop
17+
# Install desktop
1818
if [ -f /usr/share/applications/RabbitIm.desktop ]; then
1919
rm /usr/share/applications/RabbitIm.desktop
2020
fi

Plugin/ConverFormat/OpenCV/ConverFormatOpenCV.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

Plugin/ConverFormat/FFmpeg/CMakeLists.txt renamed to Plugin/ConvertFormat/FFmpeg/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if(FFMPEG_FOUND)
1010
else()
1111
return()
1212
endif()
13-
message("== FFMPGE: ${FFMPEG_FOUND}; Versoin: ${FFMPEG_VERSION}")
13+
message("== FFMPGE: ${FFMPEG_FOUND}; Version: ${FFMPEG_VERSION}")
1414

1515
project(FFMpeg)
1616

@@ -20,7 +20,7 @@ if(NOT ANDROID)
2020
set(PLUGIN_INSTALL_DIR plugins/${PLUGIN_RELATIVE_DIR})
2121
endif()
2222
ADD_PLUGIN_TARGET(
23-
SOURCE_FILES ConverFormatFFmpeg.cpp ConverFormatFFmpeg.h
23+
SOURCE_FILES ConvertFormatFFmpeg.cpp ConvertFormatFFmpeg.h
2424
INCLUDE_DIRS $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/Src>
2525
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/Plugin>
2626
PRIVATE_LIBS RabbitIm ${FFMPEG_LIBRARIES}

Plugin/ConverFormat/FFmpeg/ConverFormatFFmpeg.cpp renamed to Plugin/ConvertFormat/FFmpeg/ConvertFormatFFmpeg.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <QLoggingCategory>
2-
#include "ConverFormatFFmpeg.h"
2+
#include "ConvertFormatFFmpeg.h"
33

44
static Q_LOGGING_CATEGORY(log, "Conver.FFmpeg")
55

@@ -28,19 +28,19 @@ void Log(void*, int level, const char* fmt, va_list vl)
2828
}
2929
}
3030

31-
CConverFormatFFmpeg::CConverFormatFFmpeg(QObject *parent) : CPluginConverFormat(parent)
31+
CConvertFormatFFmpeg::CConvertFormatFFmpeg(QObject *parent) : CPluginConverFormat(parent)
3232
{
3333
SetFFmpegLog();
3434
}
3535

36-
int CConverFormatFFmpeg::SetFFmpegLog()
36+
int CConvertFormatFFmpeg::SetFFmpegLog()
3737
{
3838
//在程序初始化时设置ffmpeg日志的回调函数
3939
av_log_set_callback(Log);
4040
return 0;
4141
}
4242

43-
AVPixelFormat CConverFormatFFmpeg::QVideoFrameFormatToFFMpegPixFormat(
43+
AVPixelFormat CConvertFormatFFmpeg::QVideoFrameFormatToFFMpegPixFormat(
4444
const QVideoFrame::PixelFormat format)
4545
{
4646
switch (format) {
@@ -65,7 +65,7 @@ AVPixelFormat CConverFormatFFmpeg::QVideoFrameFormatToFFMpegPixFormat(
6565
}
6666
}
6767

68-
AVPixelFormat CConverFormatFFmpeg::QImageFormatToFFMpegPixFormat(const QImage::Format format)
68+
AVPixelFormat CConvertFormatFFmpeg::QImageFormatToFFMpegPixFormat(const QImage::Format format)
6969
{
7070
if(QImage::Format_RGB32 == format)
7171
return AV_PIX_FMT_RGB32;
@@ -74,7 +74,7 @@ AVPixelFormat CConverFormatFFmpeg::QImageFormatToFFMpegPixFormat(const QImage::F
7474

7575
//如果转换成功,则调用者使用完 pOutFrame 后,需要调用 avpicture_free(pOutFrame) 释放内存
7676
//成功返回0,不成功返回非0
77-
int CConverFormatFFmpeg::ConvertFormat(/*[in]*/ const AVPicture &inFrame,
77+
int CConvertFormatFFmpeg::ConvertFormat(/*[in]*/ const AVPicture &inFrame,
7878
/*[in]*/ int nInWidth,
7979
/*[in]*/ int nInHeight,
8080
/*[in]*/ AVPixelFormat inPixelFormat,
@@ -137,7 +137,7 @@ int CConverFormatFFmpeg::ConvertFormat(/*[in]*/ const AVPicture &inFrame,
137137
return nRet;
138138
}
139139

140-
QImage CConverFormatFFmpeg::onConverFormatToRGB888(const QVideoFrame &frame)
140+
QImage CConvertFormatFFmpeg::onConverFormatToRGB888(const QVideoFrame &frame)
141141
{
142142
int nRet = 0;
143143
AVPicture inPic, outPic;

Plugin/ConverFormat/FFmpeg/ConverFormatFFmpeg.h renamed to Plugin/ConvertFormat/FFmpeg/ConvertFormatFFmpeg.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#ifndef CCONVERFORMATFFMPEG_H
2-
#define CCONVERFORMATFFMPEG_H
31

4-
#include "PluginConverFormat.h"
2+
#pragma once
3+
#include "PluginConvertFormat.h"
54

65
extern "C" {
76
#include "libavformat/avformat.h"
@@ -10,11 +9,11 @@ extern "C" {
109
#undef PixelFormat
1110
}
1211

13-
class CConverFormatFFmpeg : public CPluginConverFormat
12+
class CConvertFormatFFmpeg : public CPluginConverFormat
1413
{
1514
Q_OBJECT
1615
public:
17-
explicit CConverFormatFFmpeg(QObject *parent = nullptr);
16+
explicit CConvertFormatFFmpeg(QObject *parent = nullptr);
1817
virtual QImage onConverFormatToRGB888(const QVideoFrame &frame);
1918

2019
Q_INTERFACES(CPluginConverFormat)
@@ -35,7 +34,7 @@ class CConverFormatFFmpeg : public CPluginConverFormat
3534
const QVideoFrame::PixelFormat format);
3635
static AVPixelFormat QImageFormatToFFMpegPixFormat(
3736
const QImage::Format format);
38-
static QImage FFMpegConverFormatToRGB888(const QVideoFrame &frame);
37+
static QImage FFMpegConvertFormatToRGB888(const QVideoFrame &frame);
3938

4039
private:
4140
/**
@@ -60,5 +59,3 @@ class CConverFormatFFmpeg : public CPluginConverFormat
6059
/*[in]*/ int nOutHeight, /** 转换后的帧的高度 */
6160
/*[in]*/ AVPixelFormat outPixelFormat);/** 转换后的帧的格式 */
6261
};
63-
64-
#endif // CCONVERFORMATFFMPEG_H

0 commit comments

Comments
 (0)