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

Function do_swizzle

libavcodec/dds.c:432–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static 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
441static void run_postproc(AVCodecContext *avctx, AVFrame *frame)
442{

Callers 1

run_postprocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected