• Home
  • Raw
  • Download

Lines Matching refs:width

35 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width,  in encode()  argument
52 setJpegCompressStruct(&cinfo, width, height, jpegQuality); in encode()
66 int width, int height, int quality) { in setJpegCompressStruct() argument
67 cinfo->image_width = width; in setJpegCompressStruct()
97 int width = cinfo->image_width; in compress() local
101 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; in compress()
102 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; in compress()
108 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); in compress()
118 int offset = (i >> 1) * (width >> 1); in compress()
131 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument
137 for (int i = 0; i < (width >> 1); ++i) { in deinterleave()
138 int index = row * (width >> 1) + i; in deinterleave()
173 int width = cinfo->image_width; in compress() local
175 uint8_t* yRows = new uint8_t [16 * width]; in compress()
176 uint8_t* uRows = new uint8_t [16 * (width >> 1)]; in compress()
177 uint8_t* vRows = new uint8_t [16 * (width >> 1)]; in compress()
183 deinterleave(yuvOffset, yRows, uRows, vRows, cinfo->next_scanline, width, height); in compress()
188 y[i] = yRows + i * width; in compress()
192 int offset = i * (width >> 1); in compress()
206 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument
211 for (int i = 0; i < (width >> 1); ++i) { in deinterleave()
212 int indexY = row * width + (i << 1); in deinterleave()
213 int indexU = row * (width >> 1) + i; in deinterleave()
235 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument
246 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); in YuvImage_compressToJpeg()