Lines Matching refs:width
24 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width,
39 setJpegCompressStruct(&cinfo, width, height, jpegQuality);
51 int width, int height, int quality) {
52 cinfo->image_width = width;
82 int width = cinfo->image_width;
85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
86 uint8_t* uRows = new uint8_t [8 * (width >> 1)];
87 uint8_t* vRows = new uint8_t [8 * (width >> 1)];
93 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width);
101 // height and width are both halved because of downsampling
102 int offset = (i >> 1) * (width >> 1);
115 uint8_t* vRows, int rowIndex, int width) {
119 for (int i = 0; i < (width >> 1); ++i) {
120 int index = row * (width >> 1) + i;
155 int width = cinfo->image_width;
157 uint8_t* yRows = new uint8_t [16 * width];
158 uint8_t* uRows = new uint8_t [16 * (width >> 1)];
159 uint8_t* vRows = new uint8_t [16 * (width >> 1)];
165 deinterleave(yuvOffset, yRows, uRows, vRows, cinfo->next_scanline, width, height);
169 y[i] = yRows + i * width;
172 // width is halved because of downsampling
173 int offset = i * (width >> 1);
187 uint8_t* vRows, int rowIndex, int width, int height) {
190 for (int i = 0; i < (width >> 1); ++i) {
191 int indexY = row * width + (i << 1);
192 int indexU = row * (width >> 1) + i;
214 int format, int width, int height, jintArray offsets,
226 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality);