Home | History | Annotate | Download | only in libswconverter

Lines Matching refs:width

38     unsigned int width,
50 width = ((width + 15) / 16) * 16;
51 tileNumX = width / 16;
139 * real width of yuv420[in]
150 unsigned int width,
159 aligned_width = width & (~0xF);
160 tiled_width = ((width + 15) >> 4) << 4;
165 dst_offset = width * i + j;
169 dst_offset += width;
172 dst_offset += width;
175 if (aligned_width != width) {
177 dst_offset = width * i + j;
179 memcpy(y_dst + dst_offset, y_src + src_offset, width - j);
181 dst_offset += width;
182 memcpy(y_dst + dst_offset, y_src + src_offset, width - j);
184 dst_offset += width;
192 dst_offset = width * i + j;
196 dst_offset += width;
199 dst_offset += width;
202 if (aligned_width != width) {
204 dst_offset = width * i + j;
206 memcpy(y_dst + dst_offset, y_src + src_offset, width - j);
208 dst_offset += width;
209 memcpy(y_dst + dst_offset, y_src + src_offset, width - j);
211 dst_offset += width;
228 * real width of yuv420s[in]
237 unsigned int width,
246 aligned_width = width & (~0xF);
247 tiled_width = ((width + 15) >> 4) << 4;
252 dst_offset = width * i + j;
256 dst_offset += width;
259 dst_offset += width;
262 if (aligned_width != width) {
264 dst_offset = width * i + j;
266 memcpy(uv_dst + dst_offset, uv_src + src_offset, width - j);
268 dst_offset += width;
269 memcpy(uv_dst + dst_offset, uv_src + src_offset, width - j);
271 dst_offset += width;
279 dst_offset = width * i + j;
283 dst_offset += width;
286 if (aligned_width != width) {
288 dst_offset = width * i + j;
290 memcpy(uv_dst + dst_offset, uv_src + src_offset, width - j);
292 dst_offset += width;
312 * real width of yuv420p[in]
321 unsigned int width,
330 aligned_width = width & (~0xF);
331 tiled_width = ((width + 15) >> 4) << 4;
336 dst_offset = (width >> 1) * i + (j >> 1);
341 dst_offset += width >> 1;
345 dst_offset += width >> 1;
348 if (aligned_width != width) {
350 dst_offset = (width >> 1) * i + (j >> 1);
353 uv_src + src_offset, width - j);
355 dst_offset += width >> 1;
357 uv_src + src_offset, width - j);
359 dst_offset += width >> 1;
366 dst_offset = (width >> 1) * i + (j >> 1);
371 dst_offset += width >> 1;
374 if (aligned_width != width) {
376 dst_offset = (width >> 1) * i + (j >> 1);
379 uv_src + src_offset, width - j);
381 dst_offset += width >> 1;
399 * real width of yuv420[in]
410 unsigned int width,
431 * real width of yuv420[in]
441 unsigned int width,
448 unsigned int y_addr, unsigned int c_addr, unsigned int width, unsigned int height)
457 for (x = 0; x < width; x += 16) {
458 out_of_width = (x + 16) > width ? 1 : 0;
459 base_addr = y_addr + Tile2D_To_Linear(width, height, x, y, 0);
462 actual_width = out_of_width ? ((width%4)?((width%16) / 4 + 1) : ((width%16) / 4)) : 4;
465 for (j = 0; (j < 4) && (x + l*4 + j) < width; j++) {
466 Y_plane[(y+k)*width + x + l*4 +j] = (data>>(8*j))&0xff;
474 for (x = 0; x < width; x += 16) {
475 out_of_width = (x + 16) > width ? 1 : 0;
476 base_addr = c_addr + Tile2D_To_Linear(width, height/2, x, y, 1);
478 actual_width = out_of_width ? ((width%4) ? ((width%16) / 4 + 1) : ((width%16) / 4)) : 4;
481 for (j = 0; (j < 2) && (x/2 + l*2 +j) < width/2; j++) {
482 Cb_plane[(y+k)*width/2 + x/2 + l*2 +j] = (data>> (8*2*j))&0xff;
483 Cr_plane[(y+k)*width/2 + x/2 + l*2 +j] = (data>>(8*2*j+8))&0xff;
506 * @param width
507 * Width of RGB565[in]
517 int width,
526 unsigned int offset1 = width * height;
527 unsigned int offset2 = width/2 * height/2;
540 for (i = 0; i < width; i++) {
541 tmp = pSrc[j * width + i];
581 * @param width
582 * Width of RGB565[in]
591 int width,
600 unsigned int offset = width * height;
611 for (i = 0; i < width; i++) {
612 tmp = pSrc[j * width + i];
657 * @param width
658 * Width of ARGB8888[in]
668 unsigned int width,
677 unsigned int offset1 = width * height;
678 unsigned int offset2 = width/2 * height/2;
691 for (i = 0; i < width; i++) {
692 tmp = pSrc[j * width + i];
732 * @param width
733 * Width of ARGB8888[in]
742 unsigned int width,
751 unsigned int offset = width * height;
762 for (i = 0; i < width; i++) {
763 tmp = pSrc[j * width + i];