mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
remove deprecated RGB24ToARGB, rename BG24ToARGB to RGB24ToARGB
BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/392009 git-svn-id: http://libyuv.googlecode.com/svn/trunk@172 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
c8c8047d43
commit
798197fc14
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 171
|
||||
Version: 172
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -69,11 +69,6 @@ int I420ToUYVY(const uint8* src_y, int src_stride_y,
|
||||
uint8* dst_frame, int dst_stride_frame,
|
||||
int width, int height);
|
||||
|
||||
// TODO(fbarchard): Deprecated - this is same as BG24ToARGB with -height
|
||||
int RGB24ToARGB(const uint8* src_frame, int src_stride_frame,
|
||||
uint8* dst_frame, int dst_stride_frame,
|
||||
int width, int height);
|
||||
|
||||
int RGB24ToI420(const uint8* src_frame, int src_stride_frame,
|
||||
uint8* dst_y, int dst_stride_y,
|
||||
uint8* dst_u, int dst_stride_u,
|
||||
|
||||
@ -190,10 +190,13 @@ int RAWToARGB(const uint8* src_raw, int src_stride_raw,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
int width, int height);
|
||||
|
||||
// Convert BG24 to ARGB.
|
||||
int BG24ToARGB(const uint8* src_bg24, int src_stride_bg24,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
int width, int height);
|
||||
// Convert RGB24 to ARGB.
|
||||
int RGB24ToARGB(const uint8* src_bg24, int src_stride_bg24,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
int width, int height);
|
||||
|
||||
// Deprecated function name
|
||||
#define BG24ToARGB RGB24ToARGB
|
||||
|
||||
// Convert ABGR to ARGB. Also used for ARGB to ABGR.
|
||||
int ABGRToARGB(const uint8* src_abgr, int src_stride_abgr,
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 171
|
||||
#define LIBYUV_VERSION 172
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
|
||||
@ -318,34 +318,6 @@ loop0:
|
||||
return 0;
|
||||
}
|
||||
|
||||
// TODO(fbarchard): Deprecated - this is same as BG24ToARGB with -height
|
||||
int RGB24ToARGB(const uint8* src_frame, int src_stride_frame,
|
||||
uint8* dst_frame, int dst_stride_frame,
|
||||
int width, int height) {
|
||||
if (src_frame == NULL || dst_frame == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int i, j, offset;
|
||||
uint8* outFrame = dst_frame;
|
||||
const uint8* inFrame = src_frame;
|
||||
|
||||
outFrame += dst_stride_frame * (height - 1) * 4;
|
||||
for (i = 0; i < height; i++) {
|
||||
for (j = 0; j < width; j++) {
|
||||
offset = j * 4;
|
||||
outFrame[0 + offset] = inFrame[0];
|
||||
outFrame[1 + offset] = inFrame[1];
|
||||
outFrame[2 + offset] = inFrame[2];
|
||||
outFrame[3 + offset] = 0xff;
|
||||
inFrame += 3;
|
||||
}
|
||||
outFrame -= 4 * (dst_stride_frame - width);
|
||||
inFrame += src_stride_frame - width;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Test if over reading on source is safe.
|
||||
// TODO(fbarchard): Find more efficient solution to safely do odd sizes.
|
||||
// Macros to control read policy, from slowest to fastest:
|
||||
|
||||
@ -1623,9 +1623,9 @@ int RAWToARGB(const uint8* src_raw, int src_stride_raw,
|
||||
}
|
||||
|
||||
// Convert RGB24 to ARGB.
|
||||
int BG24ToARGB(const uint8* src_rgb24, int src_stride_rgb24,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
int width, int height) {
|
||||
int RGB24ToARGB(const uint8* src_rgb24, int src_stride_rgb24,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
int width, int height) {
|
||||
if (height < 0) {
|
||||
height = -height;
|
||||
src_rgb24 = src_rgb24 + (height - 1) * src_stride_rgb24;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user