Home | History | Annotate | Download | only in base

Lines Matching full:yuv

53 #define kImageFilename "faces.1280x720_P420.yuv"
187 rtc::sprintfn(filename, sizeof(filename), "%s.%dx%d_P420.yuv",
241 // Create a test image for YUV 420 formats with 12 bits per pixel.
349 uint8_t yuv[4][3];
356 &yuv[i][0], &yuv[i][1], &yuv[i][2]);
358 frame->GetYPlane()[stride_y * y + x] = yuv[0][0];
360 frame->GetYPlane()[stride_y * y + x + 1] = yuv[1][0];
363 frame->GetYPlane()[stride_y * (y + 1) + x] = yuv[2][0];
365 frame->GetYPlane()[stride_y * (y + 1) + x + 1] = yuv[3][0];
369 (yuv[0][1] + yuv[1][1] + yuv[2][1] + yuv[3][1] + 2) / 4;
371 (yuv[0][2] + yuv[1][2] + yuv[2][2] + yuv[3][2] + 2) / 4;
377 // Simple and slow RGB->YUV conversion. From NTSC standard, c/o Wikipedia.