| 36 | } CamStudioContext; |
| 37 | |
| 38 | static void copy_frame_default(AVFrame *f, const uint8_t *src, |
| 39 | int linelen, int height) { |
| 40 | int i; |
| 41 | uint8_t *dst = f->data[0]; |
| 42 | dst += (height - 1) * f->linesize[0]; |
| 43 | for (i = height; i; i--) { |
| 44 | memcpy(dst, src, linelen); |
| 45 | src += linelen; |
| 46 | dst -= f->linesize[0]; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | static void add_frame_default(AVFrame *f, const uint8_t *src, |
| 51 | int linelen, int height) { |