Skip to content

Commit 1ef2aee

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

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ffv1.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1021,9 +1021,13 @@ 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 == 2) { |
1025+
rggb_order | ur
1026+
} else { |
1027+
chroma_planes | br
1028+
log2( h_chroma_subsample ) | ur
1029+
log2( v_chroma_subsample ) | ur
1030+
} |
10271031
alpha_plane | br
10281032
if (version >= 3) { |
10291033
num_h_slices - 1 | ur
@@ -1112,6 +1116,7 @@ If state_transition_delta is not present in the FFV1 bitstream, all Range coder
11121116
|-------|:--------------------------------|:--------------------------------|:--------------------------------|
11131117
| 0 | YCbCr | No Pixel transformation | plane then line |
11141118
| 1 | RGB | JPEG2000-RCT | line then plane |
1119+
| 2 | BGGR (Bayer) | YDgCoCg-R | line then plane |
11151120
| Other | reserved for future use | reserved for future use | reserved for future use |
11161121
11171122
Restrictions:

0 commit comments

Comments
 (0)