Lines Matching refs:fmt
127 bool CScalerM2M1SHOT::SetFormat(m2m1shot_pix_format &fmt, m2m1shot_buffer &buf, in SetFormat() argument
131 fmt.width = width; in SetFormat()
132 fmt.height = height; in SetFormat()
133 fmt.fmt = v4l2_fmt; in SetFormat()
171 bool CScalerM2M1SHOT::SetCrop(m2m1shot_pix_format &fmt, in SetCrop() argument
173 if (fmt.width <= l) { in SetCrop()
174 SC_LOGE("crop left %d is larger than image width %d", l, fmt.width); in SetCrop()
177 if (fmt.height <= t) { in SetCrop()
178 SC_LOGE("crop top %d is larger than image height %d", t, fmt.height); in SetCrop()
181 if (fmt.width < (l + w)) { in SetCrop()
182 SC_LOGE("crop width %d@%d exceeds image width %d", w, l, fmt.width); in SetCrop()
185 if (fmt.height < (t + h)) { in SetCrop()
186 SC_LOGE("crop height %d@%d exceeds image height %d", h, t, fmt.height); in SetCrop()
190 fmt.crop.left = l; in SetCrop()
191 fmt.crop.top = t; in SetCrop()
192 fmt.crop.width = w; in SetCrop()
193 fmt.crop.height = h; in SetCrop()
267 if (m_task.fmt_cap.fmt != m_task.fmt_out.fmt) { in RunSWScaling()
284 switch (m_task.fmt_cap.fmt) { in RunSWScaling()
319 SC_LOGE("Format %x is not supported", m_task.fmt_out.fmt); in RunSWScaling()