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
cbaa9eed
Commit
cbaa9eed
authored
Sep 11, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpdec_jpeg: Add more comments about the fields in the SOF0 section
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
31adff08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
rtpdec_jpeg.c
libavformat/rtpdec_jpeg.c
+9
-9
No files found.
libavformat/rtpdec_jpeg.c
View file @
cbaa9eed
...
...
@@ -160,20 +160,20 @@ static int jpeg_create_header(uint8_t *buf, int size, uint32_t type, uint32_t w,
/* SOF0 */
jpeg_put_marker
(
&
pbc
,
SOF0
);
bytestream2_put_be16
(
&
pbc
,
17
);
bytestream2_put_byte
(
&
pbc
,
8
);
bytestream2_put_be16
(
&
pbc
,
17
);
/* size */
bytestream2_put_byte
(
&
pbc
,
8
);
/* bits per component */
bytestream2_put_be16
(
&
pbc
,
h
);
bytestream2_put_be16
(
&
pbc
,
w
);
bytestream2_put_byte
(
&
pbc
,
3
);
bytestream2_put_byte
(
&
pbc
,
1
);
bytestream2_put_byte
(
&
pbc
,
3
);
/* number of components */
bytestream2_put_byte
(
&
pbc
,
1
);
/* component number */
bytestream2_put_byte
(
&
pbc
,
(
2
<<
4
)
|
(
type
?
2
:
1
));
/* hsample/vsample */
bytestream2_put_byte
(
&
pbc
,
0
);
bytestream2_put_byte
(
&
pbc
,
2
);
bytestream2_put_byte
(
&
pbc
,
0
);
/* matrix number */
bytestream2_put_byte
(
&
pbc
,
2
);
/* component number */
bytestream2_put_byte
(
&
pbc
,
1
<<
4
|
1
);
/* hsample/vsample */
bytestream2_put_byte
(
&
pbc
,
nb_qtable
==
2
?
1
:
0
);
bytestream2_put_byte
(
&
pbc
,
3
);
bytestream2_put_byte
(
&
pbc
,
nb_qtable
==
2
?
1
:
0
);
/* matrix number */
bytestream2_put_byte
(
&
pbc
,
3
);
/* component number */
bytestream2_put_byte
(
&
pbc
,
1
<<
4
|
1
);
/* hsample/vsample */
bytestream2_put_byte
(
&
pbc
,
nb_qtable
==
2
?
1
:
0
);
bytestream2_put_byte
(
&
pbc
,
nb_qtable
==
2
?
1
:
0
);
/* matrix number */
/* SOS */
jpeg_put_marker
(
&
pbc
,
SOS
);
...
...
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