Lines Matching defs:chroma

6312     char chroma;
6316 chroma = 'x';
6319 chroma = 'w';
6327 * properly in the texture to find the correct chroma values
6333 /* First we have to read the chroma values. This means we need at least two pixels(no filtering),
6337 * These are the rules for reading the chroma:
6367 /* Put the value into either of the chroma values */
6369 shader_addline(buffer, "MUL chroma.x, luminance.%c, temp.x;\n", chroma);
6371 shader_addline(buffer, "MUL chroma.y, luminance.%c, temp.x;\n", chroma);
6381 /* Put the value into the other chroma */
6383 shader_addline(buffer, "MAD chroma.y, luminance.%c, temp.x, chroma.y;\n", chroma);
6385 shader_addline(buffer, "MAD chroma.x, luminance.%c, temp.x, chroma.x;\n", chroma);
6440 * So it appears as if there are 4 chroma images, but in fact the odd rows
6441 * in the chroma images are in the same row as the even ones. So its is
6451 /* the chroma planes have only half the width */
6462 shader_addline(buffer, "RCP chroma.w, size.y;\n");
6476 shader_addline(buffer, "MAD temp.y, coef.y, chroma.w, yv12_coef.x;\n");
6478 shader_addline(buffer, "MAD temp.y, -coef.y, chroma.w, yv12_coef.z;\n");
6505 shader_addline(buffer, "MOV chroma.x, temp.w;\n");
6507 /* The other chroma value is 1/6th of the texture lower, from 5/6th to 6/6th
6516 shader_addline(buffer, "MOV chroma.y, temp.w;\n");
6519 * Clamp the y coordinate to prevent the chroma values from bleeding into the sampled luminance
6526 shader_addline(buffer, "MAD temp.y, -coef.y, chroma.w, yv12_coef.x;\n");
6670 * two chroma(U and V) values. Each macropixel has two luminance values, one for
6675 * contains the luminance and alpha the chroma. With UYVY it is vice versa. Thus
6706 shader_addline(&buffer, "TEMP chroma;\n");
6739 * http://www.fourcc.org/fccyvrgb.php. Note that the chroma
6742 shader_addline(&buffer, "SUB chroma.xy, chroma, coef.y;\n");
6744 shader_addline(&buffer, "MAD result.color.x, chroma.x, yuv_coef.x, luminance.%c;\n", luminance_component);
6745 shader_addline(&buffer, "MAD temp.x, -chroma.y, yuv_coef.y, luminance.%c;\n", luminance_component);
6746 shader_addline(&buffer, "MAD result.color.y, -chroma.x, yuv_coef.z, temp.x;\n");
6747 shader_addline(&buffer, "MAD result.color.z, chroma.y, yuv_coef.w, luminance.%c;\n", luminance_component);