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()
1078 int chroma_format; in coda9_jpeg_prepare_encode() local
1103 chroma_format = coda9_jpeg_chroma_format(q_data_src->fourcc); in coda9_jpeg_prepare_encode()
1104 if (chroma_format < 0) in coda9_jpeg_prepare_encode()
1105 return chroma_format; in coda9_jpeg_prepare_encode()
1108 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_encode()
1110 height_align[chroma_format]); in coda9_jpeg_prepare_encode()
1153 coda_write(dev, bus_req_num[chroma_format], CODA9_REG_JPEG_OP_INFO); in coda9_jpeg_prepare_encode()
1161 if (chroma_format == CODA9_JPEG_FORMAT_422) in coda9_jpeg_prepare_encode()
1162 chroma_format = CODA9_JPEG_FORMAT_224; in coda9_jpeg_prepare_encode()
1163 else if (chroma_format == CODA9_JPEG_FORMAT_224) in coda9_jpeg_prepare_encode()
1164 chroma_format = CODA9_JPEG_FORMAT_422; in coda9_jpeg_prepare_encode()
1173 coda_write(dev, mcu_info[chroma_format], CODA9_REG_JPEG_MCU_INFO); in coda9_jpeg_prepare_encode()
1185 coda_write(dev, (chroma_format << 17) | (chroma_interleave << 16) | in coda9_jpeg_prepare_encode()
1331 int chroma_format; in coda9_jpeg_prepare_decode() local
1352 chroma_format = coda9_jpeg_chroma_format(q_data_dst->fourcc); in coda9_jpeg_prepare_decode()
1353 if (chroma_format < 0) in coda9_jpeg_prepare_decode()
1354 return chroma_format; in coda9_jpeg_prepare_decode()
1367 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_decode()
1368 aligned_height = round_up(q_data_src->height, height_align[chroma_format]); in coda9_jpeg_prepare_decode()
1391 coda_write(dev, bus_req_num[chroma_format], CODA9_REG_JPEG_OP_INFO); in coda9_jpeg_prepare_decode()
1392 coda_write(dev, mcu_info[chroma_format], CODA9_REG_JPEG_MCU_INFO); in coda9_jpeg_prepare_decode()
1424 val = (chroma_format << 17) | (chroma_interleave << 16) | in coda9_jpeg_prepare_decode()