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
95e873bb
Commit
95e873bb
authored
Jan 29, 2012
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fraps: fix indentation.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
6a9b565e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
fraps.c
libavcodec/fraps.c
+18
-18
No files found.
libavcodec/fraps.c
View file @
95e873bb
...
...
@@ -199,29 +199,29 @@ static int decode_frame(AVCodecContext *avctx,
return
-
1
;
}
buf32
=
(
const
uint32_t
*
)
buf
;
for
(
y
=
0
;
y
<
avctx
->
height
/
2
;
y
++
){
luma1
=
(
uint32_t
*
)
&
f
->
data
[
0
][
y
*
2
*
f
->
linesize
[
0
]
];
luma2
=
(
uint32_t
*
)
&
f
->
data
[
0
][
(
y
*
2
+
1
)
*
f
->
linesize
[
0
]
];
cr
=
(
uint32_t
*
)
&
f
->
data
[
1
][
y
*
f
->
linesize
[
1
]
];
cb
=
(
uint32_t
*
)
&
f
->
data
[
2
][
y
*
f
->
linesize
[
2
]
];
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
8
){
*
luma1
++
=
*
buf32
++
;
*
luma1
++
=
*
buf32
++
;
*
luma2
++
=
*
buf32
++
;
*
luma2
++
=
*
buf32
++
;
*
cr
++
=
*
buf32
++
;
*
cb
++
=
*
buf32
++
;
}
buf32
=
(
const
uint32_t
*
)
buf
;
for
(
y
=
0
;
y
<
avctx
->
height
/
2
;
y
++
){
luma1
=
(
uint32_t
*
)
&
f
->
data
[
0
][
y
*
2
*
f
->
linesize
[
0
]
];
luma2
=
(
uint32_t
*
)
&
f
->
data
[
0
][
(
y
*
2
+
1
)
*
f
->
linesize
[
0
]
];
cr
=
(
uint32_t
*
)
&
f
->
data
[
1
][
y
*
f
->
linesize
[
1
]
];
cb
=
(
uint32_t
*
)
&
f
->
data
[
2
][
y
*
f
->
linesize
[
2
]
];
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
8
){
*
luma1
++
=
*
buf32
++
;
*
luma1
++
=
*
buf32
++
;
*
luma2
++
=
*
buf32
++
;
*
luma2
++
=
*
buf32
++
;
*
cr
++
=
*
buf32
++
;
*
cb
++
=
*
buf32
++
;
}
}
break
;
case
1
:
/* Fraps v1 is an upside-down BGR24 */
for
(
y
=
0
;
y
<
avctx
->
height
;
y
++
)
memcpy
(
&
f
->
data
[
0
][
(
avctx
->
height
-
y
)
*
f
->
linesize
[
0
]
],
&
buf
[
y
*
avctx
->
width
*
3
],
3
*
avctx
->
width
);
for
(
y
=
0
;
y
<
avctx
->
height
;
y
++
)
memcpy
(
&
f
->
data
[
0
][
(
avctx
->
height
-
y
)
*
f
->
linesize
[
0
]
],
&
buf
[
y
*
avctx
->
width
*
3
],
3
*
avctx
->
width
);
break
;
case
2
:
...
...
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