Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: source/libvpx/third_party/libyuv/include/libyuv/convert_from.h

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 uint8* dst_frame, int dst_stride_frame, 130 uint8* dst_frame, int dst_stride_frame,
131 int width, int height); 131 int width, int height);
132 132
133 LIBYUV_API 133 LIBYUV_API
134 int I420ToRGB565(const uint8* src_y, int src_stride_y, 134 int I420ToRGB565(const uint8* src_y, int src_stride_y,
135 const uint8* src_u, int src_stride_u, 135 const uint8* src_u, int src_stride_u,
136 const uint8* src_v, int src_stride_v, 136 const uint8* src_v, int src_stride_v,
137 uint8* dst_frame, int dst_stride_frame, 137 uint8* dst_frame, int dst_stride_frame,
138 int width, int height); 138 int width, int height);
139 139
140 // Convert I420 To RGB565 with 4x4 dither matrix (16 bytes).
141 // Values in dither matrix from 0 to 7 recommended.
142 // The order of the dither matrix is first byte is upper left.
143
144 LIBYUV_API
145 int I420ToRGB565Dither(const uint8* src_y, int src_stride_y,
146 const uint8* src_u, int src_stride_u,
147 const uint8* src_v, int src_stride_v,
148 uint8* dst_frame, int dst_stride_frame,
149 const uint8* dither4x4, int width, int height);
150
140 LIBYUV_API 151 LIBYUV_API
141 int I420ToARGB1555(const uint8* src_y, int src_stride_y, 152 int I420ToARGB1555(const uint8* src_y, int src_stride_y,
142 const uint8* src_u, int src_stride_u, 153 const uint8* src_u, int src_stride_u,
143 const uint8* src_v, int src_stride_v, 154 const uint8* src_v, int src_stride_v,
144 uint8* dst_frame, int dst_stride_frame, 155 uint8* dst_frame, int dst_stride_frame,
145 int width, int height); 156 int width, int height);
146 157
147 LIBYUV_API 158 LIBYUV_API
148 int I420ToARGB4444(const uint8* src_y, int src_stride_y, 159 int I420ToARGB4444(const uint8* src_y, int src_stride_y,
149 const uint8* src_u, int src_stride_u, 160 const uint8* src_u, int src_stride_u,
(...skipping 11 matching lines...) Expand all
161 uint8* dst_sample, int dst_sample_stride, 172 uint8* dst_sample, int dst_sample_stride,
162 int width, int height, 173 int width, int height,
163 uint32 format); 174 uint32 format);
164 175
165 #ifdef __cplusplus 176 #ifdef __cplusplus
166 } // extern "C" 177 } // extern "C"
167 } // namespace libyuv 178 } // namespace libyuv
168 #endif 179 #endif
169 180
170 #endif // INCLUDE_LIBYUV_CONVERT_FROM_H_ NOLINT 181 #endif // INCLUDE_LIBYUV_CONVERT_FROM_H_ NOLINT
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698