Lines Matching refs:sample

27 // Convert camera sample to I420 with cropping, rotation and vertical flip.
33 int ConvertToARGB(const uint8* sample, size_t sample_size,
51 // For in-place conversion, if destination crop_argb is same as source sample,
54 crop_argb == sample;
60 if (crop_argb == NULL || sample == NULL ||
82 src = sample + (aligned_src_width * crop_y + crop_x) * 2;
88 src = sample + (aligned_src_width * crop_y + crop_x) * 2;
94 src = sample + (src_width * crop_y + crop_x) * 3;
100 src = sample + (src_width * crop_y + crop_x) * 3;
106 src = sample + (src_width * crop_y + crop_x) * 4;
112 src = sample + (src_width * crop_y + crop_x) * 4;
118 src = sample + (src_width * crop_y + crop_x) * 4;
124 src = sample + (src_width * crop_y + crop_x) * 4;
130 src = sample + (src_width * crop_y + crop_x) * 2;
136 src = sample + (src_width * crop_y + crop_x) * 2;
142 src = sample + (src_width * crop_y + crop_x) * 2;
150 src = sample + (src_width * crop_y + crop_x);
157 src = sample + (src_width * crop_y + crop_x);
164 src = sample + (src_width * crop_y + crop_x);
171 src = sample + (src_width * crop_y + crop_x);
178 src = sample + src_width * crop_y + crop_x;
186 src = sample + (src_width * crop_y + crop_x);
187 src_uv = sample + aligned_src_width * (src_height + crop_y / 2) + crop_x;
194 src = sample + (src_width * crop_y + crop_x);
195 src_uv = sample + aligned_src_width * (src_height + crop_y / 2) + crop_x;
203 src = sample + (src_width * crop_y) * 12 / 8 + crop_x;
209 // src = sample + (src_width + aligned_src_width * 2) * crop_y + crop_x;
210 // src_uv = sample + (src_width + aligned_src_width * 2) * crop_y +
221 const uint8* src_y = sample + (src_width * crop_y + crop_x);
227 src_v = sample + src_width * abs_src_height +
229 src_u = sample + src_width * abs_src_height +
232 src_u = sample + src_width * abs_src_height +
234 src_v = sample + src_width * abs_src_height +
246 const uint8* src_y = sample + src_width * crop_y + crop_x;
251 src_v = sample + src_width * abs_src_height +
253 src_u = sample + src_width * abs_src_height +
256 src_u = sample + src_width * abs_src_height +
258 src_v = sample + src_width * abs_src_height +
270 const uint8* src_y = sample + src_width * crop_y + crop_x;
274 src_v = sample + src_width * (abs_src_height + crop_y) + crop_x;
275 src_u = sample + src_width * (abs_src_height * 2 + crop_y) + crop_x;
277 src_u = sample + src_width * (abs_src_height + crop_y) + crop_x;
278 src_v = sample + src_width * (abs_src_height * 2 + crop_y) + crop_x;
289 const uint8* src_y = sample + src_width * crop_y + crop_x;
290 const uint8* src_u = sample + src_width * abs_src_height +
292 const uint8* src_v = sample + src_width * abs_src_height +
303 r = MJPGToARGB(sample, sample_size,