Lines Matching full:rf

94 static int prepare_raw_frame(struct fwht_raw_frame *rf,  in prepare_raw_frame()  argument
98 rf->luma = buf; in prepare_raw_frame()
99 rf->width_div = info->width_div; in prepare_raw_frame()
100 rf->height_div = info->height_div; in prepare_raw_frame()
101 rf->luma_alpha_step = info->luma_alpha_step; in prepare_raw_frame()
102 rf->chroma_step = info->chroma_step; in prepare_raw_frame()
103 rf->alpha = NULL; in prepare_raw_frame()
104 rf->components_num = info->components_num; in prepare_raw_frame()
111 rf->luma = NULL; in prepare_raw_frame()
112 rf->cb = NULL; in prepare_raw_frame()
113 rf->cr = NULL; in prepare_raw_frame()
114 rf->alpha = NULL; in prepare_raw_frame()
119 rf->cb = NULL; in prepare_raw_frame()
120 rf->cr = NULL; in prepare_raw_frame()
123 rf->cb = rf->luma + size; in prepare_raw_frame()
124 rf->cr = rf->cb + size / 4; in prepare_raw_frame()
127 rf->cr = rf->luma + size; in prepare_raw_frame()
128 rf->cb = rf->cr + size / 4; in prepare_raw_frame()
131 rf->cb = rf->luma + size; in prepare_raw_frame()
132 rf->cr = rf->cb + size / 2; in prepare_raw_frame()
137 rf->cb = rf->luma + size; in prepare_raw_frame()
138 rf->cr = rf->cb + 1; in prepare_raw_frame()
143 rf->cr = rf->luma + size; in prepare_raw_frame()
144 rf->cb = rf->cr + 1; in prepare_raw_frame()
147 rf->cb = rf->luma + 1; in prepare_raw_frame()
148 rf->cr = rf->cb + 2; in prepare_raw_frame()
151 rf->cr = rf->luma + 1; in prepare_raw_frame()
152 rf->cb = rf->cr + 2; in prepare_raw_frame()
155 rf->cb = rf->luma; in prepare_raw_frame()
156 rf->cr = rf->cb + 2; in prepare_raw_frame()
157 rf->luma++; in prepare_raw_frame()
160 rf->cr = rf->luma; in prepare_raw_frame()
161 rf->cb = rf->cr + 2; in prepare_raw_frame()
162 rf->luma++; in prepare_raw_frame()
166 rf->cr = rf->luma; in prepare_raw_frame()
167 rf->cb = rf->cr + 2; in prepare_raw_frame()
168 rf->luma++; in prepare_raw_frame()
171 rf->cb = rf->luma; in prepare_raw_frame()
172 rf->cr = rf->cb + 2; in prepare_raw_frame()
173 rf->luma++; in prepare_raw_frame()
179 rf->alpha = rf->luma; in prepare_raw_frame()
180 rf->cr = rf->luma + 1; in prepare_raw_frame()
181 rf->cb = rf->cr + 2; in prepare_raw_frame()
182 rf->luma += 2; in prepare_raw_frame()
187 rf->cb = rf->luma; in prepare_raw_frame()
188 rf->cr = rf->cb + 2; in prepare_raw_frame()
189 rf->luma++; in prepare_raw_frame()
190 rf->alpha = rf->cr + 1; in prepare_raw_frame()
194 rf->alpha = rf->luma; in prepare_raw_frame()
195 rf->cb = rf->luma + 1; in prepare_raw_frame()
196 rf->cr = rf->cb + 2; in prepare_raw_frame()
197 rf->luma += 2; in prepare_raw_frame()
201 rf->alpha = rf->luma + 3; in prepare_raw_frame()
202 rf->cr = rf->luma; in prepare_raw_frame()
203 rf->cb = rf->cr + 2; in prepare_raw_frame()
204 rf->luma++; in prepare_raw_frame()
219 struct fwht_raw_frame rf; in v4l2_fwht_encode() local
226 if (prepare_raw_frame(&rf, info, p_in, size)) in v4l2_fwht_encode()
240 encoding = fwht_encode_frame(&rf, &state->ref_frame, &cf, in v4l2_fwht_encode()
269 if (rf.height_div == 1) in v4l2_fwht_encode()
271 if (rf.width_div == 1) in v4l2_fwht_encode()