Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
37e4c226
Commit
37e4c226
authored
Feb 09, 2019
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/proresenc_aw : indent after prev commit
parent
132ed206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
proresenc_anatoliy.c
libavcodec/proresenc_anatoliy.c
+8
-8
No files found.
libavcodec/proresenc_anatoliy.c
View file @
37e4c226
...
...
@@ -480,7 +480,7 @@ static inline void subimage_with_fill_template(uint16_t *src, unsigned x, unsign
if
(
!
is_interlaced
)
{
src_stride
=
stride
>>
1
;
src
+=
y
*
src_stride
+
x
;
src
+=
y
*
src_stride
+
x
;
box_height
=
FFMIN
(
height
-
y
,
dst_height
);
}
else
{
src_stride
=
stride
;
/* 2 lines stride */
...
...
@@ -558,9 +558,9 @@ static int encode_slice(AVCodecContext *avctx, const AVFrame *pic, int mb_x,
alpha_stride
=
pic
->
linesize
[
3
];
if
(
!
is_interlaced
)
{
dest_y
=
pic
->
data
[
0
]
+
(
mb_y
<<
4
)
*
luma_stride
+
(
mb_x
<<
5
);
dest_u
=
pic
->
data
[
1
]
+
(
mb_y
<<
4
)
*
chroma_stride
+
(
mb_x
<<
(
5
-
ctx
->
is_422
));
dest_v
=
pic
->
data
[
2
]
+
(
mb_y
<<
4
)
*
chroma_stride
+
(
mb_x
<<
(
5
-
ctx
->
is_422
));
dest_y
=
pic
->
data
[
0
]
+
(
mb_y
<<
4
)
*
luma_stride
+
(
mb_x
<<
5
);
dest_u
=
pic
->
data
[
1
]
+
(
mb_y
<<
4
)
*
chroma_stride
+
(
mb_x
<<
(
5
-
ctx
->
is_422
));
dest_v
=
pic
->
data
[
2
]
+
(
mb_y
<<
4
)
*
chroma_stride
+
(
mb_x
<<
(
5
-
ctx
->
is_422
));
}
else
{
dest_y
=
pic
->
data
[
0
]
+
(
mb_y
<<
4
)
*
luma_stride
*
2
+
(
mb_x
<<
5
);
dest_u
=
pic
->
data
[
1
]
+
(
mb_y
<<
4
)
*
chroma_stride
*
2
+
(
mb_x
<<
(
5
-
ctx
->
is_422
));
...
...
@@ -594,9 +594,9 @@ static int encode_slice(AVCodecContext *avctx, const AVFrame *pic, int mb_x,
*
qp
);
}
else
{
if
(
!
is_interlaced
)
{
calc_plane_dct
(
fdsp
,
dest_y
,
blocks_y
,
luma_stride
,
mb_count
,
0
,
0
);
calc_plane_dct
(
fdsp
,
dest_u
,
blocks_u
,
chroma_stride
,
mb_count
,
1
,
ctx
->
is_422
);
calc_plane_dct
(
fdsp
,
dest_v
,
blocks_v
,
chroma_stride
,
mb_count
,
1
,
ctx
->
is_422
);
calc_plane_dct
(
fdsp
,
dest_y
,
blocks_y
,
luma_stride
,
mb_count
,
0
,
0
);
calc_plane_dct
(
fdsp
,
dest_u
,
blocks_u
,
chroma_stride
,
mb_count
,
1
,
ctx
->
is_422
);
calc_plane_dct
(
fdsp
,
dest_v
,
blocks_v
,
chroma_stride
,
mb_count
,
1
,
ctx
->
is_422
);
}
else
{
calc_plane_dct
(
fdsp
,
dest_y
,
blocks_y
,
luma_stride
*
2
,
mb_count
,
0
,
0
);
calc_plane_dct
(
fdsp
,
dest_u
,
blocks_u
,
chroma_stride
*
2
,
mb_count
,
1
,
ctx
->
is_422
);
...
...
@@ -817,7 +817,7 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
if
(
ctx
->
is_interlaced
)
{
ctx
->
scantable
=
ff_prores_interlaced_scan
;
}
else
{
ctx
->
scantable
=
ff_prores_progressive_scan
;
ctx
->
scantable
=
ff_prores_progressive_scan
;
}
if
(
avctx
->
width
&
0x1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment