Skip to content

Commit 496733a

Browse files
Remove redundant code and clarify restriction when colorspace_type is RGB
1 parent 45857f2 commit 496733a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ffv1.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,6 @@ Background: At the time of this writing, in all known implementations of FFV1 bi
381381

382382
[@!ISO.15444-1.2016]
383383

384-
An FFV1 `Frame` using JPEG2000-RCT MUST use one of the following arrangements:
385-
386-
- Y, Cb, Cr
387-
- Y, Cb, Cr, Alpha
388-
389384
When FFV1 uses the JPEG2000-RCT, the horizontal lines are interleaved to improve caching efficiency since it is most likely that the RCT will immediately be converted to RGB during decoding. The interleaved coding order is also Y, then Cb, then Cr, and then if used Alpha.
390385

391386
As an example, a `Frame` that is two pixels wide and two pixels high, could be comprised of the following structure:
@@ -1119,6 +1114,9 @@ If state_transition_delta is not present in the FFV1 bitstream, all Range coder
11191114
| 1 | RGB | JPEG2000-RCT | line then plane |
11201115
| Other | reserved for future use | reserved for future use | reserved for future use |
11211116
1117+
Restrictions:
1118+
If `colorspace_type` is 1, `chroma_planes` MUST be 1, `h_chroma_subsample` MUST be 1, `v_chroma_subsample` MUST be 1.
1119+
11221120
### chroma_planes
11231121
11241122
`chroma_planes` indicates if chroma (color) planes are present.
@@ -1128,8 +1126,6 @@ If state_transition_delta is not present in the FFV1 bitstream, all Range coder
11281126
|0 | chroma planes are not present |
11291127
|1 | chroma planes are present |
11301128
1131-
If interleave method is line then plane, `chroma_planes` MUST be 1.
1132-
11331129
### bits_per_raw_sample
11341130
11351131
`bits_per_raw_sample` indicates the number of bits for each sample. Inferred to be 8 if not present.

0 commit comments

Comments
 (0)