Skip to content

Commit ceb0724

Browse files
Add RGGB (Bayer) color space and YDgCoCg-R transformation
1 parent 4d37016 commit ceb0724

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

ffv1.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,13 @@ Parameters( ) { |
10161016
colorspace_type | ur
10171017
if (version >= 1) |
10181018
bits_per_raw_sample | ur
1019-
chroma_planes | br
1020-
log2_h_chroma_subsample | ur
1021-
log2_v_chroma_subsample | ur
1019+
if (colorspace_type == 2) { |
1020+
rggb_order | ur
1021+
} else { |
1022+
chroma_planes | br
1023+
log2_h_chroma_subsample | ur
1024+
log2_v_chroma_subsample | ur
1025+
} |
10221026
alpha_plane | br
10231027
if (version >= 3) { |
10241028
num_h_slices - 1 | ur
@@ -1108,6 +1112,7 @@ If state_transition_delta is not present in the FFV1 bitstream, all Range coder
11081112
|-------|:--------------------------------|:--------------------------------|:--------------------------------|
11091113
| 0 | YCbCr | No Pixel transformation | plane then line |
11101114
| 1 | RGB | JPEG2000-RCT | line then plane |
1115+
| 2 | BGGR (Bayer) | YDgCoCg-R | line then plane |
11111116
| Other | reserved for future use | reserved for future use | reserved for future use |
11121117
11131118
Restrictions:
@@ -1137,12 +1142,14 @@ Decoders SHOULD accept and interpret bits_per_raw_sample = 0 as 8.
11371142
### log2_h_chroma_subsample
11381143
11391144
PDF:`log2_h_chroma_subsample` indicates the subsample factor, stored in powers to which the number 2 must be raised, between luma and chroma width ($chroma\_width=2^{-log2\_h\_chroma\_subsample}luma\_width$).
1140-
RFC:`log2_h_chroma_subsample` indicates the subsample factor, stored in powers to which the number 2 must be raised, between luma and chroma width (`chroma_width = 2^(-log2_h_chroma_subsample) * luma_width`).
1145+
RFC:`log2_h_chroma_subsample` indicates the subsample factor, stored in powers to which the number 2 must be raised, between luma and chroma width (`chroma_width = 2^(-log2_h_chroma_subsample) * luma_width`).
1146+
Inferred to be 0 if not present.
11411147
11421148
### log2_v_chroma_subsample
11431149
11441150
PDF:`log2_v_chroma_subsample` indicates the subsample factor, stored in powers to which the number 2 must be raised, between luma and chroma height ($chroma\_height=2^{-log2\_v\_chroma\_subsample}luma\_height$).
1145-
RFC:`log2_v_chroma_subsample` indicates the subsample factor, stored in powers to which the number 2 must be raised, between luma and chroma height (`chroma_height=2^(-log2_v_chroma_subsample) * luma_height`).
1151+
RFC:`log2_v_chroma_subsample` indicates the subsample factor, stored in powers to which the number 2 must be raised, between luma and chroma height (`chroma_height=2^(-log2_v_chroma_subsample) * luma_height`).
1152+
Inferred to be 0 if not present.
11461153
11471154
### alpha_plane
11481155

0 commit comments

Comments
 (0)