Skip to content

Commit 3a5e38c

Browse files
Add RGGB (Bayer) color space and YDgCoCg-R transformation
1 parent 0706f7d commit 3a5e38c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ffv1.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1021,9 +1021,11 @@ Parameters( ) { |
10211021
colorspace_type | ur
10221022
if (version >= 1) |
10231023
bits_per_raw_sample | ur
1024-
chroma_planes | br
1025-
log2_h_chroma_subsample | ur
1026-
log2_v_chroma_subsample | ur
1024+
if (colorspace_type <= 1) { |
1025+
chroma_planes | br
1026+
log2( h_chroma_subsample ) | ur
1027+
log2( v_chroma_subsample ) | ur
1028+
} |
10271029
alpha_plane | br
10281030
if (version >= 3) { |
10291031
num_h_slices - 1 | ur
@@ -1112,6 +1114,7 @@ If state_transition_delta is not present in the FFV1 bitstream, all Range coder
11121114
|-------|:--------------------------------|:--------------------------------|:--------------------------------|
11131115
| 0 | YCbCr | No Pixel transformation | plane then line |
11141116
| 1 | RGB | JPEG2000-RCT | line then plane |
1117+
| 2 | BGGR (Bayer) | YDgCoCg-R | line then plane |
11151118
| Other | reserved for future use | reserved for future use | reserved for future use |
11161119
11171120
Restrictions:

0 commit comments

Comments
 (0)