| 426 | } |
| 427 | |
| 428 | void 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). |
no test coverage detected