Commit ff74e023 authored by fbarchard@google.com's avatar fbarchard@google.com

A simple Makefile for libyuv on linux

BUG=286
TEST=make
R=kjellander@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/3979005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@856 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent a0630d77
# This is a generic makefile for libyuv for gcc.
# Caveat: This file will get overwritten by GYP if projects are generated
# with GYP_GENERATORS=make
CC=g++
CCFLAGS=-O2 -fomit-frame-pointer -Iinclude/
LOCAL_OBJ_FILES := \
source/compare.o \
source/compare_common.o \
source/compare_posix.o \
source/convert.o \
source/convert_argb.o \
source/convert_from.o \
source/convert_from_argb.o \
source/convert_to_argb.o \
source/convert_to_i420.o \
source/cpu_id.o \
source/format_conversion.o \
source/planar_functions.o \
source/rotate.o \
source/rotate_argb.o \
source/rotate_mips.o \
source/row_any.o \
source/row_common.o \
source/row_mips.o \
source/row_posix.o \
source/scale.o \
source/scale_argb.o \
source/scale_common.o \
source/scale_mips.o \
source/video_common.o
.cc.o:
$(CC) -c $(CCFLAGS) $*.cc -o $*.o
all: libyuv.a convert
libyuv.a: $(LOCAL_OBJ_FILES)
$(AR) $(ARFLAGS) -o $@ $(LOCAL_OBJ_FILES)
# A test utility that uses libyuv conversion.
convert: util/convert.cc
$(CC) $(CCFLAGS) -Iutil/ -o $@ util/convert.cc libyuv.a
clean:
/bin/rm -f *.o libyuv.a convert
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 856
Version: 857
License: BSD
License File: LICENSE
......
......@@ -344,6 +344,7 @@ int MJPGToARGB(const uint8* sample, size_t sample_size,
uint8* argb, int argb_stride,
int w, int h, int dw, int dh);
// Internal function - do not call directly.
// Computes table of cumulative sum for image where the value is the sum
// of all values above and to the left of the entry. Used by ARGBBlur.
LIBYUV_API
......@@ -352,7 +353,8 @@ int ARGBComputeCumulativeSum(const uint8* src_argb, int src_stride_argb,
int width, int height);
// Blur ARGB image.
// dst_cumsum table of width * height * 16 bytes aligned to 16 byte boundary.
// dst_cumsum table of width * (height + 1) * 16 bytes aligned to
// 16 byte boundary.
// dst_stride32_cumsum is number of ints in a row (width * 4).
// radius is number of pixels around the center. e.g. 1 = 3x3. 2=5x5.
// Blur is optimized for radius of 5 (11x11) or less.
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 856
#define LIBYUV_VERSION 857
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -1830,7 +1830,7 @@ static int TestBlur(int width, int height, int benchmark_iterations,
return max_diff;
}
static const int kBlurSize = 13;
static const int kBlurSize = 55;
TEST_F(libyuvTest, ARGBBlur_Any) {
int max_diff = TestBlur(benchmark_width_ - 1, benchmark_height_,
benchmark_iterations_, +1, 0, kBlurSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment