Lines Matching refs:width
102 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, in encode() argument
119 setJpegCompressStruct(&cinfo, width, height, jpegQuality); in encode()
133 int width, int height, int quality) { in setJpegCompressStruct() argument
134 cinfo->image_width = width; in setJpegCompressStruct()
164 int width = cinfo->image_width; in compress() local
168 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; in compress()
169 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; in compress()
175 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); in compress()
185 int offset = (i >> 1) * (width >> 1); in compress()
198 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument
204 for (int i = 0; i < (width >> 1); ++i) { in deinterleave()
205 int index = row * (width >> 1) + i; in deinterleave()
240 int width = cinfo->image_width; in compress() local
242 uint8_t* yRows = new uint8_t [16 * width]; in compress()
243 uint8_t* uRows = new uint8_t [16 * (width >> 1)]; in compress()
244 uint8_t* vRows = new uint8_t [16 * (width >> 1)]; in compress()
250 deinterleave(yuvOffset, yRows, uRows, vRows, cinfo->next_scanline, width, height); in compress()
255 y[i] = yRows + i * width; in compress()
259 int offset = i * (width >> 1); in compress()
273 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument
278 for (int i = 0; i < (width >> 1); ++i) { in deinterleave()
279 int indexY = row * width + (i << 1); in deinterleave()
280 int indexU = row * (width >> 1) + i; in deinterleave()
338 int width, int height, int jpegQuality) { in encode() argument
361 p010.width = width; in encode()
367 yuv420.width = width; in encode()
372 jpegR.maxLength = width * height * sizeof(uint8_t); in encode()
395 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument
406 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); in YuvImage_compressToJpeg()
420 jint width, jint height, jint quality, jobject jstream, in YuvImage_compressToJpegR() argument
429 width, height, quality)) { in YuvImage_compressToJpegR()