| 430 | } |
| 431 | |
| 432 | static void do_swizzle(AVFrame *frame, int x, int y) |
| 433 | { |
| 434 | int i; |
| 435 | for (i = 0; i < frame->linesize[0] * frame->height; i += 4) { |
| 436 | uint8_t *src = frame->data[0] + i; |
| 437 | FFSWAP(uint8_t, src[x], src[y]); |
| 438 | } |
| 439 | } |
| 440 | |
| 441 | static void run_postproc(AVCodecContext *avctx, AVFrame *frame) |
| 442 | { |