Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
merge_av
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
2018-12-17 07:55:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
48fab9cfd95cf0b3deef5d8b1d96c0656d73c172
48fab9cf
1 parent
9adf6e3c
fill background when student is portrait layout in one2one layout
adjust the layout of one to many layout
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
pip/AVTranscoder.cpp
pip/AVTranscoder.cpp
查看文件 @
48fab9c
...
...
@@ -407,7 +407,7 @@ int CAVTranscoder::open_output_file(const char *filename)
continue
;
}
_scaledFrame
->
pkt_dts
=
pFrame
->
pkt_dts
;
//pass rotation
fillDestFrame
(
pDstFrame
,
_scaledFrame
,
SRC_W
-
(
imageIdx
%
4
+
1
)
*
(
SCALED_H
+
5
)
+
4
,
SRC_H
-
SCALED_H
+
3
-
(
SCALED_H
+
4
)
*
(
imageIdx
/
4
),
(
SCALED_W
-
SCALED_H
)
/
2
,
0
,
SCALED_H
-
3
,
SCALED_H
-
3
);
fillDestFrame
(
pDstFrame
,
_scaledFrame
,
SRC_W
-
(
imageIdx
%
4
+
1
)
*
(
SCALED_H
+
5
)
+
4
,
SRC_H
-
SCALED_H
+
3
-
(
SCALED_H
+
1
)
*
(
imageIdx
/
4
),
(
SCALED_W
-
SCALED_H
)
/
2
,
0
,
SCALED_H
-
3
,
SCALED_H
-
3
);
}
else
if
(
pFrame
->
width
==
SRC_H
&&
pFrame
->
height
==
SRC_W
)
{
h
=
sws_scale
(
_swsCtxPortrait
,
pFrame
->
data
,
pFrame
->
linesize
,
0
,
pFrame
->
height
,
...
...
@@ -417,7 +417,7 @@ int CAVTranscoder::open_output_file(const char *filename)
continue
;
}
_scaledPortraitFrame
->
pkt_dts
=
pFrame
->
pkt_dts
;
//pass rotation
fillDestFrame
(
pDstFrame
,
_scaledPortraitFrame
,
SRC_W
-
(
imageIdx
%
4
+
1
)
*
(
SCALED_H
+
5
)
+
4
,
SRC_H
-
SCALED_H
+
3
-
(
SCALED_H
+
4
)
*
(
imageIdx
/
4
),
0
,
(
SCALED_W
-
SCALED_H
)
/
2
,
SCALED_H
-
3
,
SCALED_H
-
3
);
fillDestFrame
(
pDstFrame
,
_scaledPortraitFrame
,
SRC_W
-
(
imageIdx
%
4
+
1
)
*
(
SCALED_H
+
5
)
+
4
,
SRC_H
-
SCALED_H
+
3
-
(
SCALED_H
+
1
)
*
(
imageIdx
/
4
),
0
,
(
SCALED_W
-
SCALED_H
)
/
2
,
SCALED_H
-
3
,
SCALED_H
-
3
);
}
else
{
...
...
@@ -635,6 +635,9 @@ int CAVTranscoder::open_output_file(const char *filename)
fillDestFrame
(
pDstFrame
,
_studentFrame
,
0
,
240
);
}
else
{
memset
(
pDstFrame
->
data
[
0
]
+
240
*
pDstFrame
->
linesize
[
0
],
_blank_y
,
_nOutputWidth
*
_nOutputHeight
/
2
);
memset
(
pDstFrame
->
data
[
1
]
+
120
*
pDstFrame
->
linesize
[
1
],
_blank_u
,
_nOutputWidth
*
_nOutputHeight
/
8
);
memset
(
pDstFrame
->
data
[
2
]
+
120
*
pDstFrame
->
linesize
[
2
],
_blank_v
,
_nOutputWidth
*
_nOutputHeight
/
8
);
fillDestFrame
(
pDstFrame
,
_studentFrame
,
(
SRC_W
-
SRC_H
)
/
2
,
240
,
(
SRC_W
-
SRC_H
)
/
2
,
0
,
SRC_H
,
SRC_H
);
}
}
...
...
请
注册
或
登录
后发表评论