Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
60a7fac6
Commit
60a7fac6
authored
11 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
utvideoenc: use av_image_copy_plane()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
84e345b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/utvideoenc.c
+4
-16
4 additions, 16 deletions
libavcodec/utvideoenc.c
with
4 additions
and
16 deletions
libavcodec/utvideoenc.c
+
4
−
16
View file @
60a7fac6
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
* Ut Video encoder
* Ut Video encoder
*/
*/
#include
"libavutil/imgutils.h"
#include
"libavutil/intreadwrite.h"
#include
"libavutil/intreadwrite.h"
#include
"avcodec.h"
#include
"avcodec.h"
#include
"internal.h"
#include
"internal.h"
...
@@ -230,20 +231,6 @@ static void mangle_rgb_planes(uint8_t *dst[4], int dst_stride, uint8_t *src,
...
@@ -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 */
/* Write data to a plane with left prediction */
static
void
left_predict
(
uint8_t
*
src
,
uint8_t
*
dst
,
int
stride
,
static
void
left_predict
(
uint8_t
*
src
,
uint8_t
*
dst
,
int
stride
,
int
width
,
int
height
)
int
width
,
int
height
)
...
@@ -383,8 +370,9 @@ static int encode_plane(AVCodecContext *avctx, uint8_t *src,
...
@@ -383,8 +370,9 @@ static int encode_plane(AVCodecContext *avctx, uint8_t *src,
for
(
i
=
0
;
i
<
c
->
slices
;
i
++
)
{
for
(
i
=
0
;
i
<
c
->
slices
;
i
++
)
{
sstart
=
send
;
sstart
=
send
;
send
=
height
*
(
i
+
1
)
/
c
->
slices
;
send
=
height
*
(
i
+
1
)
/
c
->
slices
;
write_plane
(
src
+
sstart
*
stride
,
dst
+
sstart
*
width
,
av_image_copy_plane
(
dst
+
sstart
*
width
,
width
,
stride
,
width
,
send
-
sstart
);
src
+
sstart
*
stride
,
stride
,
width
,
send
-
sstart
);
}
}
break
;
break
;
case
PRED_LEFT
:
case
PRED_LEFT
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment