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

Function ff_update_duplicate_context

libavcodec/mpegvideo.c:428–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src){
429 MpegEncContext bak;
430 int i;
431 //FIXME copy only needed parts
432//START_TIMER
433 backup_duplicate_context(&bak, dst);
434 memcpy(dst, src, sizeof(MpegEncContext));
435 backup_duplicate_context(dst, &bak);
436 for(i=0;i<12;i++){
437 dst->pblocks[i] = &dst->block[i];
438 }
439//STOP_TIMER("update_duplicate_context") //about 10k cycles / 0.01 sec for 1000frames on 1ghz with 2 threads
440}
441
442/**
443 * sets the given MpegEncContext to common defaults (same for encoding and decoding).

Callers 2

decode_chunksFunction · 0.85
encode_pictureFunction · 0.85

Calls 1

backup_duplicate_contextFunction · 0.85

Tested by

no test coverage detected