component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=0;// 6 blocks/maceoblock mode
color_enable<=1'b1;
end
CMPRS_COLOR20:begin
component_numsL<=6'h10;// component_num [0]
component_numsM<=6'h20;// component_num [1]
component_numsH<=6'h3f;// component_num [2]
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=0;// 6 blocks/maceoblock mode
color_enable<=1'b1;
end
CMPRS_MONO16:begin
component_numsL<=6'h10;// component_num [0]
component_numsM<=6'h20;// component_num [1]
component_numsH<=6'h30;// component_num [2]
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=0;// 6 blocks/maceoblock mode
color_enable<=1'b0;
end
CMPRS_JP4:begin
component_numsL<=jp4_dc_improved_r?6'h0a:6'h10;// LSb of component_num
component_numsM<=jp4_dc_improved_r?6'h0c:6'h20;// MSb of component_num
component_numsH<=6'h30;// component_num [2]
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=jp4_dc_improved_r?6'h3f:6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=1;// 4 blocks/maceoblock mode
color_enable<=1'b0;
end
CMPRS_JP4DIFF:begin
component_numsL<=6'h0a;// LSb of component_num
component_numsM<=6'h0c;// MSb of component_num
component_numsH<=6'h30;// component_num [2]
component_colors<={2'h3,~bayer_phase_onehot[3:0]|(hdr_r?{~bayer_phase_onehot[1:0],~bayer_phase_onehot[3:2]}:4'h0)};// use color quantization table (YCbCR, jp4diff)
component_first<=6'h3f;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=1;// 4 blocks/maceoblock mode
color_enable<=1'b0;
end
CMPRS_MONO8:begin
/*
component_numsL <= 6'h00; // TODO: Implement, put actuqal data in this and other fields
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=0;// 6 blocks/maceoblock mode
color_enable<=1'b1;
end
CMPRS_COLOR20:begin
component_numsL<=6'h10;// component_num [0]
component_numsM<=6'h20;// component_num [1]
component_numsH<=6'h3f;// component_num [2]
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=0;// 6 blocks/maceoblock mode
color_enable<=1'b1;
end
CMPRS_MONO16:begin
component_numsL<=6'h10;// component_num [0]
component_numsM<=6'h20;// component_num [1]
component_numsH<=6'h30;// component_num [2]
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=0;// 6 blocks/maceoblock mode
color_enable<=1'b0;
end
CMPRS_JP4:begin
component_numsL<=jp4_dc_improved_r?6'h0a:6'h10;// LSb of component_num
component_numsM<=jp4_dc_improved_r?6'h0c:6'h20;// MSb of component_num
component_numsH<=6'h30;// component_num [2]
component_colors<=6'h30;// use color quantization table (YCbCR, jp4diff)
component_first<=jp4_dc_improved_r?6'h3f:6'h31;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=1;// 4 blocks/maceoblock mode
color_enable<=1'b0;
end
CMPRS_JP4DIFF:begin
component_numsL<=6'h0a;// LSb of component_num
component_numsM<=6'h0c;// MSb of component_num
component_numsH<=6'h30;// component_num [2]
component_colors<={2'h3,~bayer_phase_onehot[3:0]|(hdr_r?{~bayer_phase_onehot[1:0],~bayer_phase_onehot[3:2]}:4'h0)};// use color quantization table (YCbCR, jp4diff)
component_first<=6'h3f;// first_r this component in a frame (DC absolute, otherwise - difference to previous)
four_blocks<=1;// 4 blocks/maceoblock mode
color_enable<=1'b0;
end
CMPRS_MONO8:begin
/*
component_numsL <= 6'h00; // TODO: Implement, put actuqal data in this and other fields