Carl Eugen Hoyos
ee88a2080e
Parse dri when receiving jpg via rtp.
...
Based on a patch by contact at iridiummobile ru.
Fixes ticket #3780 .
11 years ago
Martin Storsjö
90c784cc13
rtpdec: Pass the sequence number to depacketizers
...
This allows depacketizers to figure out if packets have been lost.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
511cf612ac
miscellaneous typo fixes
12 years ago
Anton Khirnov
179a5c37e0
rtpdec: factorize identical code used in several handlers
12 years ago
Martin Storsjö
c3bcd22ed3
rtpdec_jpeg: Error out on other unsupported type values as well
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
1743938df1
rtpdec_jpeg: Disallow using the reserved q values
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
1de9317bd0
rtpdec_jpeg: Fold the default qtables case into an existing if statement
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
a218deb856
rtpdec_jpeg: Store and reuse old qtables for q values 128-254
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
a252649059
rtpdec_jpeg: Simplify the calculation of the number of qtables
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
cbaa9eeda3
rtpdec_jpeg: Add more comments about the fields in the SOF0 section
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
31adff08a1
rtpdec_jpeg: Clarify where the subsampling magic numbers come from
...
Write out the numbers the way they are constructed, not just the
final values.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
c64d2a63df
rtpdec_jpeg: Don't use a bitstream writer for the EOI marker
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
20f325f320
rtpdec_jpeg: Don't needlessly use a bitstream writer for the header
...
Everything written with this bitstream writer is 8/16 bit units
(except for a pair of 4 bit values), so using a bitstream writer
isn't necessary.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
43957fcc71
rtpdec_jpeg: Simplify writing of the jpeg header
...
Generalize writing of any number of qtables. Don't manually write
16 bit values in two separate calls.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
932d8300d3
rtpdec_jpeg: Merge two if statements
...
This makes the code more readable and robust.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
7ef4323405
rtpdec_jpeg: Write the DHT section properly
...
Currently the size header of the generated DHT section is
incorrect, making the mjpeg decoder just skip it. Since the
written huffman tables are the default ones, this failure had
gone undetected.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Samuel Pitoiset
55e778bebd
rtpdec_jpeg: Add support for default quantizers
...
Generate quantization tables when they are not present in the
first chunk.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Samuel Pitoiset
3c19815416
rtp: Depacketization of JPEG (RFC 2435)
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago