Lines Matching refs:chroma_format

879 	int chroma_format, comp_num;  in coda9_jpeg_encode_header()  local
883 chroma_format = coda9_jpeg_chroma_format(q_data_src->fourcc); in coda9_jpeg_encode_header()
884 if (chroma_format < 0) in coda9_jpeg_encode_header()
910 if (chroma_format != CODA9_JPEG_FORMAT_400) { in coda9_jpeg_encode_header()
923 if (chroma_format != CODA9_JPEG_FORMAT_400) { in coda9_jpeg_encode_header()
938 comp_num = (chroma_format == CODA9_JPEG_FORMAT_400) ? 1 : 3; in coda9_jpeg_encode_header()
967 ret = coda_jpeg_put_byte(subsampling[chroma_format][i], in coda9_jpeg_encode_header()
1072 int chroma_format; in coda9_jpeg_prepare_encode() local
1097 chroma_format = coda9_jpeg_chroma_format(q_data_src->fourcc); in coda9_jpeg_prepare_encode()
1098 if (chroma_format < 0) in coda9_jpeg_prepare_encode()
1099 return chroma_format; in coda9_jpeg_prepare_encode()
1102 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_encode()
1104 height_align[chroma_format]); in coda9_jpeg_prepare_encode()
1146 coda_write(dev, bus_req_num[chroma_format], CODA9_REG_JPEG_OP_INFO); in coda9_jpeg_prepare_encode()
1154 if (chroma_format == CODA9_JPEG_FORMAT_422) in coda9_jpeg_prepare_encode()
1155 chroma_format = CODA9_JPEG_FORMAT_224; in coda9_jpeg_prepare_encode()
1156 else if (chroma_format == CODA9_JPEG_FORMAT_224) in coda9_jpeg_prepare_encode()
1157 chroma_format = CODA9_JPEG_FORMAT_422; in coda9_jpeg_prepare_encode()
1166 coda_write(dev, mcu_info[chroma_format], CODA9_REG_JPEG_MCU_INFO); in coda9_jpeg_prepare_encode()
1178 coda_write(dev, (chroma_format << 17) | (chroma_interleave << 16) | in coda9_jpeg_prepare_encode()
1306 int chroma_format; in coda9_jpeg_prepare_decode() local
1323 chroma_format = coda9_jpeg_chroma_format(q_data_dst->fourcc); in coda9_jpeg_prepare_decode()
1324 if (chroma_format < 0) { in coda9_jpeg_prepare_decode()
1326 return chroma_format; in coda9_jpeg_prepare_decode()
1344 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_decode()
1345 aligned_height = round_up(q_data_src->height, height_align[chroma_format]); in coda9_jpeg_prepare_decode()
1368 coda_write(dev, bus_req_num[chroma_format], CODA9_REG_JPEG_OP_INFO); in coda9_jpeg_prepare_decode()
1369 coda_write(dev, mcu_info[chroma_format], CODA9_REG_JPEG_MCU_INFO); in coda9_jpeg_prepare_decode()
1404 val = (chroma_format << 17) | (chroma_interleave << 16) | in coda9_jpeg_prepare_decode()