652 |
data.max_quant[i] = pEnc->mbParam.max_quant[i]; |
data.max_quant[i] = pEnc->mbParam.max_quant[i]; |
653 |
} |
} |
654 |
|
|
655 |
data.reference.csp = XVID_CSP_USER; |
data.reference.csp = XVID_CSP_PLANAR; |
656 |
data.reference.plane[0] = pEnc->reference->image.y; |
data.reference.plane[0] = pEnc->reference->image.y; |
657 |
data.reference.plane[1] = pEnc->reference->image.u; |
data.reference.plane[1] = pEnc->reference->image.u; |
658 |
data.reference.plane[2] = pEnc->reference->image.v; |
data.reference.plane[2] = pEnc->reference->image.v; |
660 |
data.reference.stride[1] = pEnc->mbParam.edged_width/2; |
data.reference.stride[1] = pEnc->mbParam.edged_width/2; |
661 |
data.reference.stride[2] = pEnc->mbParam.edged_width/2; |
data.reference.stride[2] = pEnc->mbParam.edged_width/2; |
662 |
|
|
663 |
data.current.csp = XVID_CSP_USER; |
data.current.csp = XVID_CSP_PLANAR; |
664 |
data.current.plane[0] = frame->image.y; |
data.current.plane[0] = frame->image.y; |
665 |
data.current.plane[1] = frame->image.u; |
data.current.plane[1] = frame->image.u; |
666 |
data.current.plane[2] = frame->image.v; |
data.current.plane[2] = frame->image.v; |
690 |
|
|
691 |
} else { /* XVID_PLG_AFTER */ |
} else { /* XVID_PLG_AFTER */ |
692 |
if ((pEnc->mbParam.plugin_flags & XVID_REQORIGINAL)) { |
if ((pEnc->mbParam.plugin_flags & XVID_REQORIGINAL)) { |
693 |
data.original.csp = XVID_CSP_USER; |
data.original.csp = XVID_CSP_PLANAR; |
694 |
data.original.plane[0] = original->y; |
data.original.plane[0] = original->y; |
695 |
data.original.plane[1] = original->u; |
data.original.plane[1] = original->u; |
696 |
data.original.plane[2] = original->v; |
data.original.plane[2] = original->v; |
1440 |
start_timer(); |
start_timer(); |
1441 |
image_setedges(&pEnc->current->image, |
image_setedges(&pEnc->current->image, |
1442 |
pEnc->mbParam.edged_width, pEnc->mbParam.edged_height, |
pEnc->mbParam.edged_width, pEnc->mbParam.edged_height, |
1443 |
pEnc->mbParam.width, pEnc->mbParam.height); |
pEnc->mbParam.width, pEnc->mbParam.height, 0); |
1444 |
stop_edges_timer(); |
stop_edges_timer(); |
1445 |
} |
} |
1446 |
|
|
1551 |
if (!reference->is_edged) { |
if (!reference->is_edged) { |
1552 |
start_timer(); |
start_timer(); |
1553 |
image_setedges(pRef, pParam->edged_width, pParam->edged_height, |
image_setedges(pRef, pParam->edged_width, pParam->edged_height, |
1554 |
pParam->width, pParam->height); |
pParam->width, pParam->height, 0); |
1555 |
stop_edges_timer(); |
stop_edges_timer(); |
1556 |
reference->is_edged = 1; |
reference->is_edged = 1; |
1557 |
} |
} |
1949 |
if (!pEnc->reference->is_edged) { |
if (!pEnc->reference->is_edged) { |
1950 |
image_setedges(f_ref, pEnc->mbParam.edged_width, |
image_setedges(f_ref, pEnc->mbParam.edged_width, |
1951 |
pEnc->mbParam.edged_height, pEnc->mbParam.width, |
pEnc->mbParam.edged_height, pEnc->mbParam.width, |
1952 |
pEnc->mbParam.height); |
pEnc->mbParam.height, 0); |
1953 |
pEnc->current->is_edged = 1; |
pEnc->current->is_edged = 1; |
1954 |
} |
} |
1955 |
|
|
1966 |
if (!pEnc->current->is_edged) { |
if (!pEnc->current->is_edged) { |
1967 |
image_setedges(b_ref, pEnc->mbParam.edged_width, |
image_setedges(b_ref, pEnc->mbParam.edged_width, |
1968 |
pEnc->mbParam.edged_height, pEnc->mbParam.width, |
pEnc->mbParam.edged_height, pEnc->mbParam.width, |
1969 |
pEnc->mbParam.height); |
pEnc->mbParam.height, 0); |
1970 |
pEnc->current->is_edged = 1; |
pEnc->current->is_edged = 1; |
1971 |
} |
} |
1972 |
|
|