Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
cbaa9eed
Commit
cbaa9eed
authored
Sep 11, 2012
by
Martin Storsjö
Browse files
rtpdec_jpeg: Add more comments about the fields in the SOF0 section
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
31adff08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
libavformat/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