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

Function fill_random

libavcodec/tests/motion.c:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43static uint8_t img2[WIDTH * HEIGHT];
44
45static void fill_random(uint8_t *tab, int size)
46{
47 int i;
48 AVLFG prng;
49
50 av_lfg_init(&prng, 1);
51 for(i=0;i<size;i++) {
52 tab[i] = av_lfg_get(&prng) % 256;
53 }
54}
55
56static void help(void)
57{

Callers 1

test_motionFunction · 0.70

Calls 2

av_lfg_initFunction · 0.85
av_lfg_getFunction · 0.85

Tested by

no test coverage detected