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
84a020ef
Commit
84a020ef
authored
Mar 07, 2012
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roqvideo: cosmetics.
parent
cdf15771
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
roqvideodec.c
libavcodec/roqvideodec.c
+16
-16
No files found.
libavcodec/roqvideodec.c
View file @
84a020ef
...
@@ -44,9 +44,9 @@ static void roqvideo_decode_frame(RoqContext *ri)
...
@@ -44,9 +44,9 @@ static void roqvideo_decode_frame(RoqContext *ri)
int64_t
chunk_start
;
int64_t
chunk_start
;
while
(
bytestream2_get_bytes_left
(
&
ri
->
gb
)
>
0
)
{
while
(
bytestream2_get_bytes_left
(
&
ri
->
gb
)
>
0
)
{
chunk_id
=
bytestream2_get_le16
(
&
ri
->
gb
);
chunk_id
=
bytestream2_get_le16
(
&
ri
->
gb
);
chunk_size
=
bytestream2_get_le32
(
&
ri
->
gb
);
chunk_size
=
bytestream2_get_le32
(
&
ri
->
gb
);
chunk_arg
=
bytestream2_get_le16
(
&
ri
->
gb
);
chunk_arg
=
bytestream2_get_le16
(
&
ri
->
gb
);
if
(
chunk_id
==
RoQ_QUAD_VQ
)
if
(
chunk_id
==
RoQ_QUAD_VQ
)
break
;
break
;
...
@@ -60,8 +60,8 @@ static void roqvideo_decode_frame(RoqContext *ri)
...
@@ -60,8 +60,8 @@ static void roqvideo_decode_frame(RoqContext *ri)
ri
->
cb2x2
[
i
].
y
[
1
]
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
y
[
1
]
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
y
[
2
]
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
y
[
2
]
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
y
[
3
]
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
y
[
3
]
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
u
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
u
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
v
=
bytestream2_get_byte
(
&
ri
->
gb
);
ri
->
cb2x2
[
i
].
v
=
bytestream2_get_byte
(
&
ri
->
gb
);
}
}
for
(
i
=
0
;
i
<
nv2
;
i
++
)
for
(
i
=
0
;
i
<
nv2
;
i
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
...
@@ -94,10 +94,10 @@ static void roqvideo_decode_frame(RoqContext *ri)
...
@@ -94,10 +94,10 @@ static void roqvideo_decode_frame(RoqContext *ri)
}
}
case
RoQ_ID_SLD
:
case
RoQ_ID_SLD
:
qcell
=
ri
->
cb4x4
+
bytestream2_get_byte
(
&
ri
->
gb
);
qcell
=
ri
->
cb4x4
+
bytestream2_get_byte
(
&
ri
->
gb
);
ff_apply_vector_4x4
(
ri
,
xp
,
yp
,
ri
->
cb2x2
+
qcell
->
idx
[
0
]);
ff_apply_vector_4x4
(
ri
,
xp
,
yp
,
ri
->
cb2x2
+
qcell
->
idx
[
0
]);
ff_apply_vector_4x4
(
ri
,
xp
+
4
,
yp
,
ri
->
cb2x2
+
qcell
->
idx
[
1
]);
ff_apply_vector_4x4
(
ri
,
xp
+
4
,
yp
,
ri
->
cb2x2
+
qcell
->
idx
[
1
]);
ff_apply_vector_4x4
(
ri
,
xp
,
yp
+
4
,
ri
->
cb2x2
+
qcell
->
idx
[
2
]);
ff_apply_vector_4x4
(
ri
,
xp
,
yp
+
4
,
ri
->
cb2x2
+
qcell
->
idx
[
2
]);
ff_apply_vector_4x4
(
ri
,
xp
+
4
,
yp
+
4
,
ri
->
cb2x2
+
qcell
->
idx
[
3
]);
ff_apply_vector_4x4
(
ri
,
xp
+
4
,
yp
+
4
,
ri
->
cb2x2
+
qcell
->
idx
[
3
]);
break
;
break
;
case
RoQ_ID_CCC
:
case
RoQ_ID_CCC
:
for
(
k
=
0
;
k
<
4
;
k
++
)
{
for
(
k
=
0
;
k
<
4
;
k
++
)
{
...
@@ -124,16 +124,16 @@ static void roqvideo_decode_frame(RoqContext *ri)
...
@@ -124,16 +124,16 @@ static void roqvideo_decode_frame(RoqContext *ri)
}
}
case
RoQ_ID_SLD
:
case
RoQ_ID_SLD
:
qcell
=
ri
->
cb4x4
+
bytestream2_get_byte
(
&
ri
->
gb
);
qcell
=
ri
->
cb4x4
+
bytestream2_get_byte
(
&
ri
->
gb
);
ff_apply_vector_2x2
(
ri
,
x
,
y
,
ri
->
cb2x2
+
qcell
->
idx
[
0
]);
ff_apply_vector_2x2
(
ri
,
x
,
y
,
ri
->
cb2x2
+
qcell
->
idx
[
0
]);
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
,
ri
->
cb2x2
+
qcell
->
idx
[
1
]);
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
,
ri
->
cb2x2
+
qcell
->
idx
[
1
]);
ff_apply_vector_2x2
(
ri
,
x
,
y
+
2
,
ri
->
cb2x2
+
qcell
->
idx
[
2
]);
ff_apply_vector_2x2
(
ri
,
x
,
y
+
2
,
ri
->
cb2x2
+
qcell
->
idx
[
2
]);
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
+
2
,
ri
->
cb2x2
+
qcell
->
idx
[
3
]);
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
+
2
,
ri
->
cb2x2
+
qcell
->
idx
[
3
]);
break
;
break
;
case
RoQ_ID_CCC
:
case
RoQ_ID_CCC
:
ff_apply_vector_2x2
(
ri
,
x
,
y
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
,
y
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
,
y
+
2
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
,
y
+
2
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
+
2
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
ff_apply_vector_2x2
(
ri
,
x
+
2
,
y
+
2
,
ri
->
cb2x2
+
bytestream2_get_byte
(
&
ri
->
gb
));
break
;
break
;
}
}
}
}
...
...
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