Merge "makefile: fix error message due to missing quotes"
[libvpx.git] / vp8 / common / swapyv12buffer.c
blobafe6a885e73998a7286e211e370fa00f83d85ac8
1 /*
2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license and patent
5 * grant that can be found in the LICENSE file in the root of the source
6 * tree. All contributing project authors may be found in the AUTHORS
7 * file in the root of the source tree.
8 */
11 #include "swapyv12buffer.h"
13 void vp8_swap_yv12_buffer(YV12_BUFFER_CONFIG *new_frame, YV12_BUFFER_CONFIG *last_frame)
15 unsigned char *temp;
17 temp = last_frame->buffer_alloc;
18 last_frame->buffer_alloc = new_frame->buffer_alloc;
19 new_frame->buffer_alloc = temp;
21 temp = last_frame->y_buffer;
22 last_frame->y_buffer = new_frame->y_buffer;
23 new_frame->y_buffer = temp;
25 temp = last_frame->u_buffer;
26 last_frame->u_buffer = new_frame->u_buffer;
27 new_frame->u_buffer = temp;
29 temp = last_frame->v_buffer;
30 last_frame->v_buffer = new_frame->v_buffer;
31 new_frame->v_buffer = temp;