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

Function samplecpy

libavcodec/pnmdec.c:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "pnm.h"
32
33static void samplecpy(uint8_t *dst, const uint8_t *src, int n, int maxval)
34{
35 if (maxval <= 255) {
36 memcpy(dst, src, n);
37 } else {
38 int i;
39 for (i=0; i<n/2; i++) {
40 ((uint16_t *)dst)[i] = AV_RB16(src+2*i);
41 }
42 }
43}
44
45static int pnm_decode_frame(AVCodecContext *avctx, AVFrame *p,
46 int *got_frame, AVPacket *avpkt)

Callers 1

pnm_decode_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected