MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / paint_raw

Function paint_raw

libavcodec/vmnc.c:204–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static av_always_inline void paint_raw(uint8_t *dst, int w, int h, const uint8_t* src, int bpp, int be, int stride)
205{
206 int i, j, p;
207 for(j = 0; j < h; j++) {
208 for(i = 0; i < w; i++) {
209 p = vmnc_get_pixel(src, bpp, be);
210 src += bpp;
211 switch(bpp){
212 case 1:
213 dst[i] = p;
214 break;
215 case 2:
216 ((uint16_t*)dst)[i] = p;
217 break;
218 case 4:
219 ((uint32_t*)dst)[i] = p;
220 break;
221 }
222 }
223 dst += stride;
224 }
225}
226
227static int decode_hextile(VmncContext *c, uint8_t* dst, const uint8_t* src, int ssize, int w, int h, int stride)
228{

Callers 2

decode_hextileFunction · 0.85
decode_frameFunction · 0.85

Calls 1

vmnc_get_pixelFunction · 0.85

Tested by

no test coverage detected