Home | History | Annotate | Download | only in enc

Lines Matching refs:rg

144 static int RGBToY(int r, int g, int b, VP8Random* const rg) {
145 return (rg == NULL) ? VP8RGBToY(r, g, b, YUV_HALF)
146 : VP8RGBToY(r, g, b, VP8RandomBits(rg, YUV_FIX));
149 static int RGBToU(int r, int g, int b, VP8Random* const rg) {
150 return (rg == NULL) ? VP8RGBToU(r, g, b, YUV_HALF << 2)
151 : VP8RGBToU(r, g, b, VP8RandomBits(rg, YUV_FIX + 2));
154 static int RGBToV(int r, int g, int b, VP8Random* const rg) {
155 return (rg == NULL) ? VP8RGBToV(r, g, b, YUV_HALF << 2)
156 : VP8RGBToV(r, g, b, VP8RandomBits(rg, YUV_FIX + 2));
763 VP8Random* const rg) {
766 dst_y[i] = RGBToY(r_ptr[j], g_ptr[j], b_ptr[j], rg);
778 VP8Random* const rg) {
793 dst_u[i] = RGBToU(r, g, b, rg);
794 dst_v[i] = RGBToV(r, g, b, rg);
808 dst_u[i] = RGBToU(r, g, b, rg);
809 dst_v[i] = RGBToV(r, g, b, rg);
820 VP8Random* const rg) {
826 dst_u[i] = RGBToU(r, g, b, rg);
827 dst_v[i] = RGBToV(r, g, b, rg);
833 dst_u[i] = RGBToU(r, g, b, rg);
834 dst_v[i] = RGBToV(r, g, b, rg);
888 VP8Random* rg = NULL;
891 rg = &base_rg;
902 dst_y, width, rg);
904 dst_y + picture->y_stride, width, rg);
914 step, rgb_stride, dst_u, dst_v, width, rg);
918 dst_u, dst_v, width, rg);
927 dst_y, width, rg);
933 step, 0, dst_u, dst_v, width, rg);
937 dst_u, dst_v, width, rg);