VPX_ prefix
This commit is contained in:
parent
f85cbd7c88
commit
2268d4d6c4
1 changed files with 6 additions and 6 deletions
|
@ -413,24 +413,24 @@ int extract_frame_webm(oxstate *state) {
|
||||||
from.ptru = malloc(from.uv_width * from.uv_height);
|
from.ptru = malloc(from.uv_width * from.uv_height);
|
||||||
from.ptrv = malloc(from.uv_width * from.uv_height);
|
from.ptrv = malloc(from.uv_width * from.uv_height);
|
||||||
|
|
||||||
q =img->planes[PLANE_Y];
|
q =img->planes[VPX_PLANE_Y];
|
||||||
p = from.ptry;
|
p = from.ptry;
|
||||||
for(y=0; y<img->d_h; y++) {
|
for(y=0; y<img->d_h; y++) {
|
||||||
memcpy(p, q, img->d_w);
|
memcpy(p, q, img->d_w);
|
||||||
p += img->d_w;
|
p += img->d_w;
|
||||||
q += img->stride[PLANE_Y];
|
q += img->stride[VPX_PLANE_Y];
|
||||||
}
|
}
|
||||||
q =img->planes[PLANE_U];
|
q =img->planes[VPX_PLANE_U];
|
||||||
p = from.ptru;
|
p = from.ptru;
|
||||||
q2 =img->planes[PLANE_V];
|
q2 =img->planes[VPX_PLANE_V];
|
||||||
p2 = from.ptrv;
|
p2 = from.ptrv;
|
||||||
for(y=0; y<(1 + img->d_h) / 2; y++) {
|
for(y=0; y<(1 + img->d_h) / 2; y++) {
|
||||||
memcpy(p, q, (1 + img->d_w) / 2);
|
memcpy(p, q, (1 + img->d_w) / 2);
|
||||||
memcpy(p2, q2, (1 + img->d_w) / 2);
|
memcpy(p2, q2, (1 + img->d_w) / 2);
|
||||||
p += (1 + img->d_w) / 2;
|
p += (1 + img->d_w) / 2;
|
||||||
q += img->stride[PLANE_U];
|
q += img->stride[VPX_PLANE_U];
|
||||||
p2 += (1 + img->d_w) / 2;
|
p2 += (1 + img->d_w) / 2;
|
||||||
q2 += img->stride[PLANE_V];
|
q2 += img->stride[VPX_PLANE_V];
|
||||||
}
|
}
|
||||||
|
|
||||||
to.ptro = malloc(from.y_width * from.y_height * 4);
|
to.ptro = malloc(from.y_width * from.y_height * 4);
|
||||||
|
|
Loading…
Reference in a new issue