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
e5e587af
Commit
e5e587af
authored
Jun 02, 2007
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove get_byte wrapper
Originally committed as revision 9170 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2c124cb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
roqvideodec.c
libavcodec/roqvideodec.c
+7
-9
No files found.
libavcodec/roqvideodec.c
View file @
e5e587af
...
@@ -39,8 +39,6 @@
...
@@ -39,8 +39,6 @@
#define avg2(a,b) av_clip_uint8(((int)(a)+(int)(b)+1)>>1)
#define avg2(a,b) av_clip_uint8(((int)(a)+(int)(b)+1)>>1)
#define avg4(a,b,c,d) av_clip_uint8(((int)(a)+(int)(b)+(int)(c)+(int)(d)+2)>>2)
#define avg4(a,b,c,d) av_clip_uint8(((int)(a)+(int)(b)+(int)(c)+(int)(d)+2)>>2)
#define get_byte(in_buffer) *(in_buffer++)
static
void
roqvideo_decode_frame
(
RoqContext
*
ri
)
static
void
roqvideo_decode_frame
(
RoqContext
*
ri
)
{
{
unsigned
int
chunk_id
=
0
,
chunk_arg
=
0
;
unsigned
int
chunk_id
=
0
,
chunk_arg
=
0
;
...
@@ -65,16 +63,16 @@ static void roqvideo_decode_frame(RoqContext *ri)
...
@@ -65,16 +63,16 @@ static void roqvideo_decode_frame(RoqContext *ri)
if
((
nv2
=
chunk_arg
&
0xff
)
==
0
&&
nv1
*
6
<
chunk_size
)
if
((
nv2
=
chunk_arg
&
0xff
)
==
0
&&
nv1
*
6
<
chunk_size
)
nv2
=
256
;
nv2
=
256
;
for
(
i
=
0
;
i
<
nv1
;
i
++
)
{
for
(
i
=
0
;
i
<
nv1
;
i
++
)
{
ri
->
cells
[
i
].
y
[
0
]
=
get_byte
(
buf
)
;
ri
->
cells
[
i
].
y
[
0
]
=
*
buf
++
;
ri
->
cells
[
i
].
y
[
1
]
=
get_byte
(
buf
)
;
ri
->
cells
[
i
].
y
[
1
]
=
*
buf
++
;
ri
->
cells
[
i
].
y
[
2
]
=
get_byte
(
buf
)
;
ri
->
cells
[
i
].
y
[
2
]
=
*
buf
++
;
ri
->
cells
[
i
].
y
[
3
]
=
get_byte
(
buf
)
;
ri
->
cells
[
i
].
y
[
3
]
=
*
buf
++
;
ri
->
cells
[
i
].
u
=
get_byte
(
buf
)
;
ri
->
cells
[
i
].
u
=
*
buf
++
;
ri
->
cells
[
i
].
v
=
get_byte
(
buf
)
;
ri
->
cells
[
i
].
v
=
*
buf
++
;
}
}
for
(
i
=
0
;
i
<
nv2
;
i
++
)
for
(
i
=
0
;
i
<
nv2
;
i
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
ri
->
qcells
[
i
].
idx
[
j
]
=
get_byte
(
buf
)
;
ri
->
qcells
[
i
].
idx
[
j
]
=
*
buf
++
;
}
}
}
}
...
...
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