Lines Matching refs:subsampling_hor
277 uint8 subsampling_hor; member
454 sp->subsampling_hor=2; in TIFFInitOJPEG()
505 *va_arg(ap,uint16*)=(uint16)sp->subsampling_hor; in OJPEGVGetField()
552 sp->subsampling_hor=(uint8)va_arg(ap,uint16_vap); in OJPEGVSetField()
554 tif->tif_dir.td_ycbcrsubsampling[0]=sp->subsampling_hor; in OJPEGVSetField()
849 for (sx=0; sx<sp->subsampling_hor; sx++) in OJPEGDecodeRaw()
851 r+=sp->subsampling_convert_ylinelen-sp->subsampling_hor; in OJPEGDecodeRaw()
853 oy+=sp->subsampling_hor; in OJPEGDecodeRaw()
1004 sp->subsampling_hor=1; in OJPEGSubsamplingCorrect()
1011 mh=sp->subsampling_hor; in OJPEGSubsamplingCorrect()
1017 sp->subsampling_hor=1; in OJPEGSubsamplingCorrect()
1021 …if (((sp->subsampling_hor!=mh) || (sp->subsampling_ver!=mv)) && (sp->subsampling_force_desubsampli… in OJPEGSubsamplingCorrect()
1024 … values [2,2]; assuming subsampling inside JPEG data is correct",sp->subsampling_hor,sp->subsampli… in OJPEGSubsamplingCorrect()
1026 …alues [%d,%d]; assuming subsampling inside JPEG data is correct",sp->subsampling_hor,sp->subsampli… in OJPEGSubsamplingCorrect()
1037 if (sp->subsampling_hor<sp->subsampling_ver) in OJPEGSubsamplingCorrect()
1038 …data,module,"Subsampling values [%d,%d] are not allowed in TIFF",sp->subsampling_hor,sp->subsampli… in OJPEGSubsamplingCorrect()
1069 sp->subsampling_hor=1; in OJPEGReadHeaderInfo()
1093 …sp->restart_interval=((sp->strile_width+sp->subsampling_hor*8-1)/(sp->subsampling_hor*8))*(sp->str… in OJPEGReadHeaderInfo()
1196 …ing_convert_ylinelen=((sp->strile_width+sp->subsampling_hor*8-1)/(sp->subsampling_hor*8)*sp->subsa… in OJPEGWriteHeaderInfo()
1198 sp->subsampling_convert_clinelen=sp->subsampling_convert_ylinelen/sp->subsampling_hor; in OJPEGWriteHeaderInfo()
1229 …sp->subsampling_convert_clinelenout=((sp->strile_width+sp->subsampling_hor-1)/sp->subsampling_hor); in OJPEGWriteHeaderInfo()
1231 …sp->bytes_per_line=sp->subsampling_convert_clinelenout*(sp->subsampling_ver*sp->subsampling_hor+2); in OJPEGWriteHeaderInfo()
1374 sp->sof_hv[0]=((sp->subsampling_hor<<4)|sp->subsampling_ver); in OJPEGReadHeaderInfoSec()
1655 sp->subsampling_hor=(o>>4); in OJPEGReadHeaderInfoSecStreamSof()
1657 if (((sp->subsampling_hor!=1) && (sp->subsampling_hor!=2) && (sp->subsampling_hor!=4)) || in OJPEGReadHeaderInfoSecStreamSof()
1674 if (o!=((sp->subsampling_hor<<4)|sp->subsampling_ver)) in OJPEGReadHeaderInfoSecStreamSof()