| RFC 9828 | JPEG 2000 Streaming with Sub-Codestream | August 2025 |
| Lemieux & Taubman | Standards Track | [Page] |
This document defines the RTP payload format for the streaming of a video signal encoded as a sequence of JPEG 2000 codestreams. The format allows sub-codestream latency, such that the first RTP packet for a given image can be emitted before the entire image is available to or encoded by the sender.¶
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained athttps://www.rfc-editor.org/info/rfc9828.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The Real-time Transport Protocol (RTP), which is specified in[RFC3550], provides end-to-end network transport functions for transmitting real-time data but does not define the characteristics of the data itself (the payload), which varies across applications and is defined in companion RTP payload format documents.¶
This RTP payload format specifies the streaming of a video signal encoded as a sequence of JPEG 2000 codestreams (seeSection 3 for a primer on the structure of JPEG 2000 codestreams). JPEG 2000 is a flexible image codec that supports resolution and quality scalability, lossy-to-lossless coding, non-iterative optimal rate control, and high dynamic range, multi-channel, and subsampled images. These features have made it a mainstay in high-performance applications, including medical, geospatial, archival, cinema, studio post-production, and TV production.¶
In addition to supporting a variety of frame-scanning techniques (progressive, interlaced, and progressive segmented frame) and image characteristics, the payload format supports real-time image transmission (live streaming), where image content is encoded, transmitted, and decoded continuously as it is being produced, with minimal latency. Target applications include real-time TV production over IP[OV2110-0], remote presence, surveillance, etc. Specifically:¶
ORDH,ORDB,POS, andPID) that indicate whether the RTP packet contains a resynchronization (resync) point and how a recipient can restart codestream processing from that resync point. This contrasts with[RFC5371], which also specifies an RTP payload format for JPEG 2000 but relies on codestream structures that cannot be emitted until the entire codestream is available.¶ESEQ field). This enables the payload format to accommodate high data rates without ambiguity, since the standard sequence number will roll over very quickly for high data rates likely to be encountered in this application. For example, the standard sequence number will roll over in 0.5 seconds with a 1 Gbps video stream with RTP packet sizes of at least 1000 octets, which can be a problem for detecting loss and out-of-order RTP packets, particularly in instances where the round-trip time is greater than the rollover period (0.5 seconds in this example).¶PTSTAMP) relative to the first RTP packet with the same value of RTPtimestamp field (Section 5.2). The higher resolution ofPTSTAMP compared to thetimestamp allows receivers to recover the sender's clock more rapidly.¶In addition to support for sub-codestream latency and high-precision sender clock recovery, the payload format improves on[RFC5371] by supporting:¶
Finally, the payload format also makes use of the unique scalability features of JPEG 2000 to allow an intermediate system or recipient to discard resolution levels and/or quality layers merely by inspecting RTP packet headers (QUAL andRES fields), without having to parse the underlying codestream (seeSection 7.2).¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14[RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.¶
In case of conflict between the contents of a figure and the prose, the prose takes precedence.¶
The following summarizes the structure of the JPEG 2000 codestream, which is specified in detail in[JPEG2000-1].¶
NOTE: As described inSection 6, a JPEG 2000 codestream allows capabilities defined in any part of the JPEG 2000 family of standards, including those specified in[JPEG2000-2] and[JPEG2000-15].¶
JPEG 2000 represents an image as one or more components, each uniformly sampled on a common rectangular reference grid. For example, an image can consist of the customary Y (luma), Cb (blue-difference chroma), and Cr (red-difference chroma) components, with the Cb and Cr being subsampled by a factor of two compared to the Y component.¶
An image can be further divided into contiguous rectangular tiles that are each independently coded and decoded.¶
JPEG 2000 codes each image as a standalone codestream. A codestream consists of (i) marker segments, which contain coding parameters and metadata, and (ii) coded data.¶
For convenience to the reader, the following lists both the abbreviated and full names of marker segments that are mentioned in this specification (several other marker segments are defined by JPEG 2000 and can be present in a codestream):¶
The codestream starts with an SOC marker segment and ends with an EOC marker segment. The main header of the codestream consists of marker segments between the SOC and first SOT marker segment and contains information that applies to the codestream in its entirety. It is generally impossible to decode a codestream without its main header.¶
The rest of the codestream consists of additional marker segments (tile-part headers) interleaved with coded image data.¶
At the heart of JPEG 2000 coding is the wavelet transform, which decomposes the image into successive resolution levels, with each level related to the next one by a spatial factor of two, i.e., each successive resolution level has half the horizontal and half the vertical resolution of the previous one.¶
The coded image data ultimately consists of code-blocks, each containing coded samples belonging to a rectangular (spatial) region within one resolution level of one component. Code-blocks are further collected into precincts, which, accordingly, represent code-blocks belonging to a spatial region within one resolution level of one component.¶
The coded image data can be arranged into several progression orders, which dictates which aspect of the image appears first in the codestream (in terms of byte offset). The progression orders are parameterized according to:¶
For example, in the PRCL progression order, the information needed to reconstruct the first lines of the image come before that needed to reconstruct the last lines of the image, and within a collection of lines, the information needed to reconstruct the lower spatial resolutions of the image come before the information needed to reconstruct the higher spatial resolutions. This progression order is particularly useful for subframe latency operations.¶
This RTP payload format supports three distinct techniques for scanning video frames:¶
All frames are scanned left to right, top to bottom.¶
<--------------- Codestream (image) -------------->| |<----- Extended Header -----> || | |+-----+-//-+-----+-//-+-----+--------//-----+-----+-----+---------| SOC | .. | SOT | .. | SOD | ............. | EOC | P | SOC ...+-----+-//-+-----+-//-+-----+--------//-----+-----+-----+---------| | |<----------> Main header || |+------------------------------+------+--//-+-----------+---------| Main | Body | ... | Body | Main ...+------------------------------+------+--//-+-----------+---------| |<--------- RTP Packet --------->
InFigure 1, P denotes (optional) padding bytes. SeeSection 3 for expansions of SOC, SOD, SOT, and EOC.¶
Each RTP packet, as specified in[RFC3550], is either a Main Packet or a Body Packet.¶
A Main Packet consists of the following ordered sequence of structures concatenated without gaps:¶
A Body Packet consists of the following ordered sequence of structures concatenated without gaps:¶
When concatenated, the sequence of JPEG 2000 codestream fragments emitted by the senderMUST be a sequence of JPEG 2000 codestreams where two successive JPEG 2000 codestreamsMAY be separated by one or more padding bytes (seeFigure 1).¶
The senderMUST set the value of each padding byte to zero.¶
The receiverMUST ignore the values of the padding bytes.¶
The JPEG 2000 codestreamsMUST conform toSection 6.¶
NOTE 1: Padding bytes can be used to achieve constant bit rate transmission.¶
A JPEG 2000 codestream fragment, and thus an RTP packet, does not necessarily contain complete JPEG 2000 packets, as defined in[JPEG2000-1].¶
A JPEG 2000 codestream Extended Header consists of the bytes between, and including, the SOC marker and the first SOD marker.¶
NOTE 2: The concept of the JPEG 2000 codestream Extended Header is specific to this document and is distinct from the JPEG 2000 codestream main header, which is defined in[JPEG2000-1]. The codestream main header consists of the bytes between, and including, the SOC marker and the first SOT marker. The codestream main header is a subset of the codestream Extended Header (seeFigure 1).¶
The payload of a Body PacketMUST NOT contain any bytes of the JPEG 2000 codestream Extended Header.¶
The payload of a Main PacketMUST contain at least one byte of the JPEG 2000 codestream Extended Header andMAY contain bytes other than those of the JPEG 2000 codestream Extended Header.¶
A payloadMUST NOT contain bytes from more than one JPEG 2000 codestream.¶
The following RTP header fields have a specific meaning in the context of this payload format:¶
markertimestampThetimestamp is the presentation time of the image to which the payload belongs.¶
Thetimestamp clock rate is 90 kHz.¶
Thetimestamp of successive progressive framesMUST advance at regular increments based on the instantaneous video frame rate.¶
Thetimestamp of Field 1 of successive interlaced framesMUST advance at regular increments based on the instantaneous video frame rate, and theTimestamp of Field 2MUST be offset from thetimestamp of Field 1 by one half of the instantaneous frame period.¶
Thetimestamp of both segments of a progressive segmented frameMUST be equal.¶
Thetimestamp of all RTP packets of a given imageMUST be equal.¶
sequence numberThe low-order bits of the extended sequence number.¶
The high-order bits of the extended sequence number are contained in theESEQ field, which is specified inSection 5.3.¶
The extended sequence number is calculated as follows:¶
<extended sequence number> = <ESEQ field> * 65536 + <sequencenumber field of the RTP Fixed Header>¶
Figure 2 specifies the structure of the payload header. Fields are interpreted as unsigned binary integers in network order.¶
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|MH | TP |ORDH |P|XTRAC| PTSTAMP | ESEQ |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|R|S|C| RSVD |*| PRIMS | TRANS | MAT |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| XTRAB || ... |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+* RANGE
2 bits¶
3 bits¶
Indicates the scanning structure of the image to which the payload belongs.¶
3 bits¶
Specifies the progression order used by the codestream and whether resync points are signaled. SeeSection 3 for details about progression orders.¶
ORDHMUST be 0 if the codestream consists of more than one tile.¶
NOTE 1: OnlyORDH = 4 andORDH = 6 allow sub-codestream latency streaming.¶
NOTE 2: Progression order PRCL is defined in[JPEG2000-2]. The other progression orders are specified in[JPEG2000-1].¶
1 bit¶
3 bits¶
Length, in multiples of 4 bytes, of theXTRAB field.¶
12 bits¶
PTSTAMP = (timestamp +TOFF) mod 4096, ifP = 1 in the Main Packet of this codestream.¶
TOFF is the transmission time of this RTP packet, in the timebase of thetimestamp clock and relative to the first RTP packet with the sametimestamp value.¶
TOFF = 0 in the first RTP packet with the sametimestamp value.¶
PTSTAMP = 0, ifP = 0 in the Main Packet of this codestream.¶
NOTE 3: As described in Sections7.4 and8.1,PTSTAMP is intended to improve clock recovery at the receiver and only applies when the transmission time of two consecutive RTP packets with identicaltimestamp fields differ by no more than 45 ms (which is 4095/90,000).[RFC5450] addresses the general case when an RTP packet is transmitted at a time other than its nominal transmission time.¶
8 bits¶
The high-order bits of the extended sequence number.¶
NOTE 4: The low-order bits of the extended sequence number are stored in thesequence number field of the RTP Fixed Header.¶
Section 5.2 specifies the formula to compute the extended sequence number.¶
1 bit¶
Determines whether Main Packet and codestream main header information can be reused across codestreams.¶
All Main Packets in this stream, as identified by the value of theSSRC field in the RTP Fixed Header:¶
TP,MH,ESEQ, andPTSTAMP fields;¶1 bit¶
Component colorimetry is not specified; it is left to the session or the application.¶
PRIMS,TRANS,MAT, andRANGEMUST be zero.¶
Component colorimetry is specified by thePRIMS,TRANS,MAT, andRANGE fields.¶
The codestream componentsMUST conform to one of the combinations inTable 1.¶
| Combination Name | Component Index | |||
|---|---|---|---|---|
| 0 | 1 | 2 | 3 | |
| Y | Y | |||
| YA | Y | A | ||
| RGB | R | G | B | |
| RGBA | R | G | B | A |
| YCbCr | Y | CB | CR | |
| YCbCrA | Y | CB | CR | A |
ChannelA is an opacity channel. The minimum sample value (0) indicates a completely transparent sample, and the maximum sample value (as determined by the bit depth of the codestream component) indicates a completely opaque sample. The opacity channelMUST map to a component with unsigned samples.¶
1 bit¶
4 bits¶
1 bit¶
Value of the VideoFullRangeFlag specified in[REC-ITU-T-H273].¶
8 bits¶
One of the ColourPrimaries values specified in[REC-ITU-T-H273].¶
8 bits¶
One of the TransferCharacteristics values specified in[REC-ITU-T-H273].¶
8 bits¶
One of the MatrixCoefficients values specified in[REC-ITU-T-H273].¶
variable¶
Allows the contents of the Main Packet Payload Header to be extended in the future. The size of the field is determined bySection 5.3. See also Sections8.4 and7.6.¶
Figure 3 specifies the structure of the Body Packet Payload Header. Fields are interpreted as unsigned binary integers in network order.¶
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|MH | TP |RES |*|QUAL | PTSTAMP | ESEQ |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| POS | PID |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+* ORDB
3 bits¶
1 bit¶
ORDBMUST be 0 if the codestream consists of more than one tile.¶
3 bits¶
12 bits¶
Byte offset from the start of the payload to the first byte of the resync point belonging to the precinct identified by PID.¶
POSMUST be 0 ifORDB = 0.¶
20 bits¶
Unique identifier of the precinct of the resync point.¶
PID = c + s * num_components¶
where:¶
IfPID is present, the payloadMUST NOT contain codestream bytes from more than one precinct.¶
PIDMUST be 0 ifORDB = 0.¶
NOTE:PID is identical to precinct identifier I specified in[JPEG2000-9].¶
A JPEG 2000 codestream consists of the bytes between, and including, the SOC and EOC markers, as defined in[JPEG2000-1].¶
The JPEG 2000 codestreamMAY include capabilities beyond those specified in[JPEG2000-1], including those specified in[JPEG2000-2] and[JPEG2000-15].¶
NOTE 1: TheRsiz parameter andCAP marker segments of each JPEG 2000 codestream contain detailed information on the capabilities necessary to decode the codestream.¶
NOTE 2: Thecaps media type parameter defined inSection 9.2 allows applications to signal required device capabilities.¶
NOTE 3: The block coder specified in[JPEG2000-15] improves throughput and reduces latency compared to the original arithmetic block coder defined in[JPEG2000-1].¶
For interlaced or progressive segmented frames, the height specified in the JPEG 2000 main headerMUST be the height in lines of the field or the segment, respectively.¶
If any decomposition level involves only horizontal decomposition, then no decomposition levelMUST involve only vertical decomposition; conversely, if any decomposition level involves only vertical decomposition, then no decomposition levelMUST involve only horizontal decomposition.¶
A Main PacketMAY contain zero or more bytes of the JPEG 2000 codestream Extended Header.¶
The senderMUST emit either a single Main Packet withMH = 3, or one or more Main Packets withMH = 1 followed by a single Main Packet withMH = 2.¶
The Main Packet Payload Headers fieldsMUST be identical in all Main Packets of a given codestream, with the exception of:¶
An intermediate systemMAY strip out RTP packets from a codestream that are of no interest to a particular client, e.g., based on a resolution or a spatial region of interest.¶
A resync point is the first byte of JPEG 2000 packet header data for a precinct and for which PID < 224.¶
NOTE 1: Resync points cannot be specified if the codestream consists of more than one tile (ORDB andORDH are both equal to zero).¶
NOTE 2: A resync point can be used by a receiver to process a codestream even if earlier RTP packets in the codestream have been corrupted, lost, or deliberately discarded by an intermediate system. As a corollary, resync points can be used by an intermediate system to discard RTP packets that are not relevant to a given rendering resolution or region of interest. Resync points play a role similar to pointer marker segments, albeit tailored for high-bandwidth, low-latency streaming applications.¶
A senderSHOULD setP = 1, but only if it can generatePTSTAMP accurately.¶
PTSTAMP can be derived from the same clock that is used to produce the 32-bittimestamp field in the RTP Fixed Header. Specifically, a sender maintains, at least conceptually, a 32-bit counter that is incremented by a 90 kHz clock. The counter is sampled at the point in time when each RTP packet is transmitted and the 12 least significant bits of the sample are stored in thePTSTAMP field.¶
IfP = 1, then the transmission timeTOFF (as defined inSection 5.3) for two consecutive RTP packets with identicaltimestamp fieldsMUST NOT differ by more than 4095.¶
A senderSHOULD setRES > 0 whenever possible.¶
NOTE: While a sender can always safely setRES = 0, this makes it more difficult to discard RTP packets based on resolution, as described inSection 8.3.¶
The senderMUST set the value ofXTRAC to 0.¶
Future updates to this RTP payload format can permit other values.¶
The senderMUST set unassigned values to 0.¶
Unassigned values are available for assignment by future updates to this RTP payload format. As specified inSection 8.5, these future assigned values are ignored by receivers that conform to this specification. In contrast to extension values (seeSection 7.8), this mechanism allows updates to this RTP payload format that remain compatible with receivers that conform to this specification.¶
A senderMUST NOT use an extension value.¶
This section only applies ifC = 1.¶
A sender can improve bandwidth efficiency by only occasionally transmitting code-blocks corresponding to static portions of the video and otherwise transmitting empty code-blocks. WhenC = 1, a receiver maintains a simple cache of previously received code-blocks, which it uses to replace empty code-blocks (seeSection 8.7).¶
A sender alone determines which code-blocks are replaced with empty code-blocks and when the replacement occurs.¶
The sender cannot, however, determine with certainty the state of the receiver's cache; for example, some code-blocks might have been lost in transit, the sender doesn't know exactly when the receiver started processing the stream, etc.¶
A code-block isempty if:¶
0xFF80 and0xFF8F (if the code-block conforms to[JPEG2000-15]).¶NOTE: The last condition allows the encoder to insert padding bytes to achieve a constant bit rate even when a code-block does not contribute code-bytes, as suggested in Annex F.4 of[JPEG2000-15].¶
Receivers can usePTSTAMP values to accelerate sender clock recovery sincePTSTAMP typically updates more regularly thantimestamp.¶
A receiver can discard RTP packets whereQUAL > N if it is interested in reconstructing an image that only incorporates quality layers N and below.¶
The JPEG 2000 coding process decomposes an image using a sequence of discrete wavelet transform (DWT) stages.¶
| Decomposition Level | Resolution Level | Sub-bands | Keep all Body Packets withRES equal to or less than this value... | ...to decode an image with at most these dimensions |
|---|---|---|---|---|
| 1 | 5 | HL1,LH1,HH1 | 7 | W x H |
| 2 | 4 | HL2,LH2,HH2 | 6 | (W/2) x (H/2) |
| 3 | 3 | HL3,LH3,HH3 | 5 | (W/4) x (H/4) |
| 4 | 2 | HL4,LH4,HH4 | 4 | (W/8) x (H/8) |
| 5 | 1 | HL5,LH5,HH5 | 3 | (W/16) x (H/16) |
| 5 | 0 | LL5 | 2 | (W/32) x (H/32) |
Table 2 illustrates the case where each DWT stage consists of both horizontal and vertical transforms, which is the only mode supported in[JPEG2000-1]. The first stage transforms the image into (i) the image at half-resolution (LL1 sub-bands) and (ii) residual high-frequency data (HH1, LH1, HL1 sub-bands). The second stage transforms the image at half-resolution (LL1 sub-bands) into the image at quarter resolution (LL2 sub-bands) and residual high-frequency data (HH2, LH2, HL2 sub-bands). This process is repeated NL times, where NL is the number of decomposition levels as defined in the COD and COC marker segments of the codestream.¶
The decoding process reconstructs the image by reversing the coding process, starting with the lowest resolution image stored in the codestream (LLNL).¶
As a result, it is possible to reconstruct a lower resolution of the image by stopping the decoding process at a selected stage. For example, in order to reconstruct the image at quarter resolution (LL2), only sub-bands with index greater than 2 (e.g., HL3, LH3, HH3, HL4, LH4, HH4, etc.) are necessary. In other words, a receiver that wishes to reconstruct an image at quarter resolution could discard all RTP packets whereRES >= 6 since those RTP packets can only contribute to HL1, LH1, HH1, HL2, LH2, and HH2 sub-bands.¶
In the case where all DWT stages consist of both horizontal and vertical transforms, the maximum decodable resolution is reduced by a factor of 27 - N if all Body Packets whereRES > N are discarded.¶
| Decomposition Level | Resolution Level | Sub-bands | Keep all Body Packets with RES equal to or less than this value... | ...to decode an image with at most these dimensions |
|---|---|---|---|---|
| 1 | 5 | HL1,LH1,HH1 | 7 | W x H |
| 2 | 4 | HL2,LH2,HH2 | 6 | (W/2) x (H/2) |
| 3 | 3 | HX3 | 5 | (W/4) x (H/2) |
| 4 | 2 | HX4 | 4 | (W/8) x (H/2) |
| 5 | 1 | HX5 | 3 | (W/16) x (H/2) |
| 5 | 0 | LX5 | 2 | (W/32) x (H/2) |
Table 3 illustrates the case where some DWT stages consist of only horizontal transforms, as specified in Annex F of[JPEG2000-2].¶
A receiver can therefore discard all Body Packets whereRES is greater than some threshold value if it is interested in decoding an image with its resolution reduced by a factor determined by the threshold value, as illustrated in Tables2 and3.¶
The receiverMUST accept values ofXTRAC other than 0 andMUST ignore the value ofXTRAB, whose length is given byXTRAC.¶
Future updates to this RTP payload format can specifyXTRAB contents such that this content can be ignored by receivers that conform to this specification.¶
The receiverMUST ignore unassigned values (see additional discussion inSection 7.7).¶
The receiverMUST discard an RTP packet that contains any extension value.¶
This section only applies ifC = 1.¶
WhenC = 1, the sender can improve bandwidth efficiency by only occasionally transmitting code-blocks corresponding to static portions of the video and otherwise transmitting empty code-blocks (seeSection 7.9).¶
When decoding a codestream, the following procedures apply for each code-block in the codestream:¶
Two code-blocks arematching if the following characteristics are identical for both: spatial coordinates, resolution level, component, sub-band, and value of theTP field of the parent RTP packet.¶
This RTP payload format is identified using the media type defined inSection 9.2. This media type has been registered in accordance with[RFC4855] using the template in[RFC6838].¶
pixel:Specifies the pixel format used by the video sequence.¶
The parameterMUST be aURI-reference as specified in[RFC3986].¶
If the parameter is arelative-ref as specified in[RFC3986], then itMUST be equal to one of the pixel formats specified inTable 4, and the RTP header and payloadMUST conform to the characteristics of that pixel format.¶
If the parameter is not arelative-ref, the specification of the pixel format is left to the application that defined the URI.¶
If the parameter is not specified, the pixel format is unspecified.¶
sample:Specifies the format of the samples in each component of the codestream.¶
The parameterMUST be aURI-reference as specified in[RFC3986].¶
If the parameter is arelative-ref as specified in[RFC3986], then itMUST be equal to one of the formats specified inAppendix C, and the streamMUST conform to the characteristics of that format.¶
If the parameter is not arelative-ref, the specification of the sample format is left to the application that defined the URI.¶
If the parameter is not specified, the sample format is unspecified.¶
width:Maximum width in pixels of each image. Integer between 0 and 4,294,967,295.¶
The parameterMUST be a sequence of 1 or more digits.¶
If the parameter is not specified, the maximum width is unspecified.¶
height:Maximum height in pixels of each image. Integer between 0 and 4,294,967,295.¶
The parameterMUST be a sequence of 1 or more digits.¶
If the parameter is not specified, the maximum height is unspecified.¶
signal:Specifies the sequence of image types.¶
The parameterMUST be aURI-reference as specified in[RFC3986].¶
If the parameter is arelative-ref as specified in[RFC3986], then itMUST be equal to one of the signal formats specified inAppendix B, and the image sequenceMUST conform to that signal format.¶
If the parameter is not arelative-ref, the specification of the pixel format is left to the application that defined the URI.¶
If the parameter is not specified, the stream consists of an arbitrary sequence of image types.¶
caps:The parameter contains a list of sets of constraints to which the stream conforms, with each set of constraints identified using anabsolute-URI defined by an application.¶
The parameterMUST conform to theuri-list syntax expressed as follows using ABNF[RFC5234]:¶
uri-list = absolute-URI *(";" absolute-URI)¶The application that defines theabsolute-URIMUST ensure that it does not contain any";" character andMUST associate it with a set of constraints to which the stream conforms. Such constraints can, for example, include the maximum height and width of images.¶
If the parameter is not specified, constraints beyond those specified in this document are unspecified.¶
cache:The value of the parameterMUST be eitherfalse ortrue.¶
If the parameter istrue, the fieldCMAY be 0 or 1; otherwise, the fieldCMUST be 0.¶
If the parameter is not specified, then the parameter is equal tofalse.¶
JPEG 2000 is a flexible image format. As a result, the size of the memory structures required to process JPEG 2000 images can vary greatly depending on the characteristics of the image and the encoding parameters. For example, the JPEG 2000 syntax allows image height and width up to 232 - 1 pixels, which is also captured in the syntax of theheight andwidth parameters of this media type. Therefore, implementationsSHOULD take care when processing input that influences the size of memory structures andSHOULD fail gracefully when resource constraints are exceeded.¶
See alsoSection 13.¶
The mapping of the payload format media type and its parameters to SDP, as specified in[RFC8866],MUST be done according toSection 3 of [RFC4855].¶
Since this RTP payload format can be used in a variety of applications across many different contexts, there is no single congestion control mechanism that will work for all. Below is a non-exhaustive list of example mechanisms that can be used:¶
As suggested inSection 10 of [RFC3550], RTCP feedback can be used in the data rate adaptation process.¶
RTP packets using the payload format specified in this document are subject to the security considerations discussed in[RFC3550] and in any applicable RTP profile such as[RFC3551],[RFC4585],[RFC3711], and[RFC5124]. However, as[RFC7202] discusses, it is not an RTP payload format's responsibility to discuss or mandate what solutions are used to meet the basic security goals like confidentiality, integrity, and source authenticity for RTP in general. This responsibility lies with anyone using RTP in an application. They can find guidance on available security mechanisms and important considerations in[RFC7201]. ApplicationsSHOULD use one or more appropriate strong security mechanisms. The rest of this section discusses the security impacting properties of the payload format itself.¶
This RTP payload format and its media decoder do not exhibit any significant non-uniformity in the receiver-side computational complexity for RTP packet processing and thus are unlikely to pose a denial-of-service threat due to the receipt of pathological data. In addition, the RTP payload format does not contain any active content.¶
Security considerations related to the JPEG 2000 codestream contained in the payload are discussed inSection 3 of [RFC3745].¶
Table 4 defines pixel formats.¶
| NAME | SAMP | COMPS | TRANS | PRIMS | MAT | VFR | Mapping inTable 1 |
|---|---|---|---|---|---|---|---|
| rgb444sdr | 4:4:4 | RGB | 1 | 1 | 0 | 0, 1 | RGB |
| rgb444wcg | 4:4:4 | RGB | 1 | 9 | 0 | 0, 1 | RGB |
| rgb444pq | 4:4:4 | RGB | 16 | 9 | 0 | 0, 1 | RGB |
| rgb444hlg | 4:4:4 | RGB | 18 | 9 | 0 | 0, 1 | RGB |
| ycbcr420sdr | 4:2:0 | YCbCr | 1 | 1 | 1 | 0 | YCbCr |
| ycbcr422sdr | 4:2:2 | YCbCr | 1 | 1 | 1 | 0 | YCbCr |
| ycbcr422wcg | 4:2:2 | YCbCr | 1 | 9 | 9 | 0 | YCbCr |
| ycbcr422pq | 4:2:2 | YCbCr | 16 | 9 | 9 | 0 | YCbCr |
| ycbcr422hlg | 4:2:2 | YCbCr | 18 | 9 | 9 | 0 | YCbCr |
Each pixel format is characterized by the following:¶
NAME:SAMP:COMPS:TRANS:Identifies the transfer characteristics allowed by the pixel format, as defined in[REC-ITU-T-H273].¶
PRIMS:Identifies the color primaries allowed by the pixel format, as defined in[REC-ITU-T-H273].¶
MAT:Identifies the matrix coefficients allowed by the pixel format, as defined in[REC-ITU-T-H273].¶
VFR:Allows values of the VideoFullRangeFlag defined in[REC-ITU-T-H273].¶
prog:psf:tff:bff: