Lines Matching defs:sample

911 int MJPGToARGB(const uint8* sample,
923 bool ret = mjpeg_decoder.LoadFrame(sample, sample_size);
984 // TODO(fbarchard): Implement conversion for any other colorspace/sample
995 // Convert camera sample to I420 with cropping, rotation and vertical flip.
1001 int ConvertToARGB(const uint8* sample, size_t sample_size,
1008 if (dst_argb == NULL || sample == NULL ||
1026 // For in-place conversion, if destination dst_argb is same as source sample,
1028 bool need_buf = (rotation && format != FOURCC_ARGB) || dst_argb == sample;
1046 src = sample + (aligned_src_width * crop_y + crop_x) * 2;
1052 src = sample + (aligned_src_width * crop_y + crop_x) * 2;
1060 // src = sample + (aligned_src_width + 47) / 48 * 128 * crop_y +
1067 src = sample + (src_width * crop_y + crop_x) * 3;
1073 src = sample + (src_width * crop_y + crop_x) * 3;
1079 src = sample + (src_width * crop_y + crop_x) * 4;
1085 src = sample + (src_width * crop_y + crop_x) * 4;
1091 src = sample + (src_width * crop_y + crop_x) * 4;
1097 src = sample + (src_width * crop_y + crop_x) * 4;
1103 src = sample + (src_width * crop_y + crop_x) * 2;
1109 src = sample + (src_width * crop_y + crop_x) * 2;
1115 src = sample + (src_width * crop_y + crop_x) * 2;
1123 src = sample + (src_width * crop_y + crop_x);
1130 src = sample + (src_width * crop_y + crop_x);
1137 src = sample + (src_width * crop_y + crop_x);
1144 src = sample + (src_width * crop_y + crop_x);
1151 src = sample + src_width * crop_y + crop_x;
1159 src = sample + (src_width * crop_y + crop_x);
1160 src_uv = sample + aligned_src_width * (src_height + crop_y / 2) + crop_x;
1167 src = sample + (src_width * crop_y + crop_x);
1168 src_uv = sample + aligned_src_width * (src_height + crop_y / 2) + crop_x;
1176 src = sample + (src_width * crop_y) * 12 / 8 + crop_x;
1182 // src = sample + (src_width + aligned_src_width * 2) * crop_y + crop_x;
1183 // src_uv = sample + (src_width + aligned_src_width * 2) * crop_y +
1194 const uint8* src_y = sample + (src_width * crop_y + crop_x);
1200 src_v = sample + src_width * abs_src_height +
1202 src_u = sample + src_width * abs_src_height +
1205 src_u = sample + src_width * abs_src_height +
1207 src_v = sample + src_width * abs_src_height +
1219 const uint8* src_y = sample + src_width * crop_y + crop_x;
1224 src_v = sample + src_width * abs_src_height +
1226 src_u = sample + src_width * abs_src_height +
1229 src_u = sample + src_width * abs_src_height +
1231 src_v = sample + src_width * abs_src_height +
1243 const uint8* src_y = sample + src_width * crop_y + crop_x;
1247 src_v = sample + src_width * (abs_src_height + crop_y) + crop_x;
1248 src_u = sample + src_width * (abs_src_height * 2 + crop_y) + crop_x;
1250 src_u = sample + src_width * (abs_src_height + crop_y) + crop_x;
1251 src_v = sample + src_width * (abs_src_height * 2 + crop_y) + crop_x;
1262 const uint8* src_y = sample + src_width * crop_y + crop_x;
1263 const uint8* src_u = sample + src_width * abs_src_height +
1265 const uint8* src_v = sample + src_width * abs_src_height +
1276 r = MJPGToARGB(sample, sample_size,