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
60a7fac6
Commit
60a7fac6
authored
Jul 27, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utvideoenc: use av_image_copy_plane()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
84e345b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
utvideoenc.c
libavcodec/utvideoenc.c
+4
-16
No files found.
libavcodec/utvideoenc.c
View file @
60a7fac6
...
...
@@ -24,6 +24,7 @@
* Ut Video encoder
*/
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
...
...
@@ -230,20 +231,6 @@ static void mangle_rgb_planes(uint8_t *dst[4], int dst_stride, uint8_t *src,
}
}
/* Write data to a plane, no prediction applied */
static
void
write_plane
(
uint8_t
*
src
,
uint8_t
*
dst
,
int
stride
,
int
width
,
int
height
)
{
int
i
,
j
;
for
(
j
=
0
;
j
<
height
;
j
++
)
{
for
(
i
=
0
;
i
<
width
;
i
++
)
*
dst
++
=
src
[
i
];
src
+=
stride
;
}
}
/* Write data to a plane with left prediction */
static
void
left_predict
(
uint8_t
*
src
,
uint8_t
*
dst
,
int
stride
,
int
width
,
int
height
)
...
...
@@ -383,8 +370,9 @@ static int encode_plane(AVCodecContext *avctx, uint8_t *src,
for
(
i
=
0
;
i
<
c
->
slices
;
i
++
)
{
sstart
=
send
;
send
=
height
*
(
i
+
1
)
/
c
->
slices
;
write_plane
(
src
+
sstart
*
stride
,
dst
+
sstart
*
width
,
stride
,
width
,
send
-
sstart
);
av_image_copy_plane
(
dst
+
sstart
*
width
,
width
,
src
+
sstart
*
stride
,
stride
,
width
,
send
-
sstart
);
}
break
;
case
PRED_LEFT
:
...
...
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