Lines Matching refs:sample

23 // Convert camera sample to I420 with cropping, rotation and vertical flip.
29 int ConvertToI420(const uint8* sample,
48 format != FOURCC_YU12 && format != FOURCC_YV12) || y == sample;
58 if (!y || !u || !v || !sample ||
70 // For in-place conversion, if destination y is same as source sample,
89 src = sample + (aligned_src_width * crop_y + crop_x) * 2;
97 src = sample + (aligned_src_width * crop_y + crop_x) * 2;
105 src = sample + (src_width * crop_y + crop_x) * 2;
113 src = sample + (src_width * crop_y + crop_x) * 2;
121 src = sample + (src_width * crop_y + crop_x) * 2;
129 src = sample + (src_width * crop_y + crop_x) * 3;
137 src = sample + (src_width * crop_y + crop_x) * 3;
145 src = sample + (src_width * crop_y + crop_x) * 4;
153 src = sample + (src_width * crop_y + crop_x) * 4;
161 src = sample + (src_width * crop_y + crop_x) * 4;
169 src = sample + (src_width * crop_y + crop_x) * 4;
179 src = sample + (src_width * crop_y + crop_x);
187 src = sample + (src_width * crop_y + crop_x);
195 src = sample + (src_width * crop_y + crop_x);
203 src = sample + (src_width * crop_y + crop_x);
211 src = sample + src_width * crop_y + crop_x;
220 src = sample + (src_width * crop_y + crop_x);
221 src_uv = sample + aligned_src_width * (src_height + crop_y / 2) + crop_x;
230 src = sample + (src_width * crop_y + crop_x);
231 src_uv = sample + aligned_src_width * (src_height + crop_y / 2) + crop_x;
241 src = sample + (src_width * crop_y) * 12 / 8 + crop_x;
249 src = sample + (src_width + aligned_src_width * 2) * crop_y + crop_x;
250 src_uv = sample + (src_width + aligned_src_width * 2) * crop_y +
263 const uint8* src_y = sample + (src_width * crop_y + crop_x);
269 src_v = sample + src_width * abs_src_height +
271 src_u = sample + src_width * abs_src_height +
274 src_u = sample + src_width * abs_src_height +
276 src_v = sample + src_width * abs_src_height +
290 const uint8* src_y = sample + src_width * crop_y + crop_x;
295 src_v = sample + src_width * abs_src_height +
297 src_u = sample + src_width * abs_src_height +
300 src_u = sample + src_width * abs_src_height +
302 src_v = sample + src_width * abs_src_height +
316 const uint8* src_y = sample + src_width * crop_y + crop_x;
320 src_v = sample + src_width * (abs_src_height + crop_y) + crop_x;
321 src_u = sample + src_width * (abs_src_height * 2 + crop_y) + crop_x;
323 src_u = sample + src_width * (abs_src_height + crop_y) + crop_x;
324 src_v = sample + src_width * (abs_src_height * 2 + crop_y) + crop_x;
337 const uint8* src_y = sample + src_width * crop_y + crop_x;
338 const uint8* src_u = sample + src_width * abs_src_height +
340 const uint8* src_v = sample + src_width * abs_src_height +
353 r = MJPGToI420(sample, sample_size,