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
4660143a
Commit
4660143a
authored
14 years ago
by
Stefano Sabatini
Browse files
Options
Downloads
Patches
Plain Diff
Apply minor simplification in av_read_image_line().
Originally committed as revision 25112 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
78b19cf0
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
libavutil/pixdesc.c
+3
-4
3 additions, 4 deletions
libavutil/pixdesc.c
with
3 additions
and
4 deletions
libavutil/pixdesc.c
+
3
−
4
View file @
4660143a
...
@@ -53,12 +53,11 @@ void av_read_image_line(uint16_t *dst, const uint8_t *data[4], const int linesiz
...
@@ -53,12 +53,11 @@ void av_read_image_line(uint16_t *dst, const uint8_t *data[4], const int linesiz
}
}
}
else
{
}
else
{
const
uint8_t
*
p
=
data
[
plane
]
+
y
*
linesize
[
plane
]
+
x
*
step
+
comp
.
offset_plus1
-
1
;
const
uint8_t
*
p
=
data
[
plane
]
+
y
*
linesize
[
plane
]
+
x
*
step
+
comp
.
offset_plus1
-
1
;
int
is_8bit
=
0
;
int
is_8bit
=
shift
+
depth
<=
8
;
if
(
shift
+
depth
<=
8
)
{
if
(
is_8bit
)
p
+=
!!
(
flags
&
PIX_FMT_BE
);
p
+=
!!
(
flags
&
PIX_FMT_BE
);
is_8bit
=
1
;
}
while
(
w
--
){
while
(
w
--
){
int
val
=
is_8bit
?
*
p
:
int
val
=
is_8bit
?
*
p
:
flags
&
PIX_FMT_BE
?
AV_RB16
(
p
)
:
AV_RL16
(
p
);
flags
&
PIX_FMT_BE
?
AV_RB16
(
p
)
:
AV_RL16
(
p
);
...
...
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