No description
Find a file
Yuuta Liang ee24732cde RISC-V: optimize vp8_copy_mem with RVV
Test environment: 8c 1804Mhz i5-1140G7

RVV Impl:

% CROSS=riscv64-unknown-linux-gnu- configure --target=riscv64-linux-gcc \
	--enable-debug --enable-gprof && make -j
% time qemu-riscv64 -cpu rv64,v=true,zba=true,vlen=128 -L /path/to/sysroot/ \
	./vpxenc --codec=vp8 -w 352 -h 288 -o akiyol.vpx ./akiyo_cif.yuv
Pass 1/1 frame  300/300   314977B    8399b/f  251981b/s   92226 ms (3.25 fps)
user    1m30.108s
% gprof -abp ./vpxenc ./gmon.out | grep vp8_copy_mem
  1.36     53.09     1.04  1025863     0.00     0.00  vp8_copy_mem16x16_rvv
  0.72     59.01     0.55  1641368     0.00     0.00  vp8_copy_mem8x8_rvv
  0.05     65.95     0.04   764377     0.00     0.00  vp8_copy_mem8x4_rvv

C Impl:

% CROSS=riscv64-unknown-linux-gnu- configure --target=generic-gnu --enable-debug \
	--enable-gprof && make -j
% time qemu-riscv64 -cpu rv64,v=true,zba=true,vlen=128 -L /path/to/sysroot/ \
	./vpxenc --codec=vp8 -w 352 -h 288 -o akiyol.vpx ./akiyo_cif.yuv
Pass 1/1 frame  300/300   314977B    8399b/f  251981b/s   98417 ms (3.05 fps)
user    1m36.146s
% gprof -abp ./vpxenc ./gmon.out | grep vp8_copy_mem
  0.38     63.96     0.31                             vp8_copy_mem8x4_c
  0.04     70.61     0.03   204336     0.00     0.00  vp8_copy_mem16x16_c

Signed-off-by: Yuuta Liang <yuuta@yuuta.moe>
2023-08-10 15:04:34 +08:00
build/make add example how to use rtcd 2023-07-10 11:15:18 +08:00
build_debug/non_greedy_mv_test_files Upload Motion Field Estimation Unit Test Files 2019-08-30 13:21:18 -07:00
examples vp9_spatial_svc_encoder: quiet -Wunused-but-set-variable 2023-04-19 18:46:11 -07:00
test add example how to use rtcd 2023-07-10 11:15:18 +08:00
third_party update libwebm to libwebm-1.0.0.29-9-g1930e3c 2023-03-23 19:14:31 -07:00
tools Remove references to deprecated NumPy type aliases 2022-12-21 11:17:04 -05:00
vp8 RISC-V: optimize vp8_copy_mem with RVV 2023-08-10 15:04:34 +08:00
vp9 RTC RC: clean up unnecessary headers 2023-06-09 15:33:39 -04:00
vpx Fix more typos (2/n) 2023-06-07 13:09:58 -04:00
vpx_dsp Merge "Fix c vs intrinsic mismatch of vpx_hadamard_32x32() function" into main 2023-06-12 16:44:21 +00:00
vpx_mem Merge "cosmetics: normalize include guards" 2018-09-18 03:38:15 +00:00
vpx_ports support framework for RunTime Cpu Detection 2023-07-10 11:15:18 +08:00
vpx_scale vp8_yv12_realloc_frame_buffer: move allocation check 2021-10-08 16:26:26 -07:00
vpx_util Update loongson_intrinsics.h from v1.0.5 to v1.2.1 2022-04-14 11:17:42 +08:00
.clang-format .clang-format: update to clang-format-11 2022-08-23 15:39:57 -07:00
.gitattributes always use lf for shell scripts 2019-10-29 14:54:56 -04:00
.gitignore .gitignore: add android studio / vscode folders 2022-06-02 16:34:21 -07:00
.mailmap Update AUTHORS .mailmap and version 2023-02-01 16:30:35 -05:00
args.c examples: add missing argv_dup alloc checks 2022-04-28 17:45:47 -07:00
args.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
AUTHORS Update AUTHORS .mailmap and version 2023-02-01 16:30:35 -05:00
CHANGELOG Update CHANGELOG 2023-01-31 18:58:21 -05:00
codereview.settings update codereview.settings 2018-04-05 12:18:38 -07:00
configure enable rvv 2023-07-10 11:15:18 +08:00
CONTRIBUTING.md sync CONTRIBUTING.md w/libwebm 2021-04-23 16:50:48 -07:00
docs.mk configure: remove php test 2014-05-12 22:45:25 -07:00
examples.mk Merge "examples.mk,vpxdec: rm libwebm muxer dependency" into main 2023-05-24 17:43:20 +00:00
ivfdec.c Remove extra line in warnings in ivfdec.c 2018-05-10 14:43:00 -07:00
ivfdec.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
ivfenc.c Let SimpleEncode be able to output bitstream 2020-02-05 16:12:32 -08:00
ivfenc.h Let SimpleEncode be able to output bitstream 2020-02-05 16:12:32 -08:00
keywords.dox Initial WebM release 2010-05-18 11:58:33 -04:00
libs.doxy_template libs.doxy_template: remove obsolete CLASS_DIAGRAMS 2022-08-24 18:52:10 -07:00
libs.mk Add IO for TPL stats 2023-05-23 17:58:01 -04:00
LICENSE Update LICENSE to reflect WebM authors 2011-11-11 14:46:36 -08:00
mainpage.dox doxygen: fix --disable-examples 2018-12-13 13:04:09 -08:00
md5_utils.c compiler_attributes.h: add VPX_NO_UNSIGNED_SHIFT_CHECK 2022-08-18 19:12:51 -07:00
md5_utils.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
PATENTS PATENTS: fix a typo: constitutes -> constitute 2015-04-24 20:24:02 -07:00
rate_hist.c rate_hist,show_histogram: fix crash w/0 buckets 2022-04-11 11:08:12 -07:00
rate_hist.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
README configure: add clang-cl vs1[67] arm64 targets 2023-05-08 10:53:21 -07:00
solution.mk Remove asm offset dependencies 2014-11-06 16:00:01 -08:00
tools.mk override assembler with --as option on msvs 2021-03-03 20:20:49 -08:00
tools_common.c Add NV12 support 2020-06-02 14:09:48 -07:00
tools_common.h tools_common,VpxInterface: remove unneeded const 2023-02-27 13:48:47 -08:00
usage.dox usage.dox: fix encoder/decoder subpage list indent 2015-03-13 18:53:00 -07:00
usage_cx.dox doxygen: fix --disable-examples 2018-12-13 13:04:09 -08:00
usage_dx.dox doxygen: fix --disable-examples 2018-12-13 13:04:09 -08:00
video_common.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
video_reader.c added error messages in vpx_video_reader_open(). 2019-02-14 11:29:01 -08:00
video_reader.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
video_writer.c added error logging to video_writer.c similar to video_reader.c 2019-05-29 21:34:48 +00:00
video_writer.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
vpxdec.c vpxdec: clear -Wshadow warnings 2023-04-12 14:57:28 -07:00
vpxenc.c vpxenc: clear -Wshadow warnings 2023-04-12 14:57:28 -07:00
vpxenc.h Revert "Add codec control to get tpl stats" 2023-03-22 20:18:39 +00:00
vpxstats.c tools_common.h: add VPX_TOOLS_FORMAT_PRINTF 2021-11-02 17:21:56 -07:00
vpxstats.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
warnings.c tools_common.h: add VPX_TOOLS_FORMAT_PRINTF 2021-11-02 17:21:56 -07:00
warnings.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
webmdec.cc webmdec: fix double free 2022-04-18 19:14:30 -07:00
webmdec.h webmdec,WebmInputContext: make timestamp_ns signed 2022-08-16 18:25:14 -07:00
webmenc.cc NULL -> nullptr in CPP files 2020-07-27 11:51:04 -07:00
webmenc.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
y4menc.c .clang-format: update to clang-format-11 2022-08-23 15:39:57 -07:00
y4menc.h cosmetics: normalize include guards 2018-09-15 12:25:43 -07:00
y4minput.c Set _img->bit_depth in y4m_input_fetch_frame() 2023-02-03 14:07:09 -08:00
y4minput.h Relax constraints on Y4M header parsing 2021-01-14 16:18:40 -08:00

v1.13.0 Ugly Duckling

Welcome to the WebM VP8/VP9 Codec SDK!

COMPILING THE APPLICATIONS/LIBRARIES:
  The build system used is similar to autotools. Building generally consists of
  "configuring" with your desired build options, then using GNU make to build
  the application.

  1. Prerequisites

    * All x86 targets require the Yasm[1] assembler be installed[2].
    * All Windows builds require that Cygwin[3] or MSYS2[4] be installed.
    * Building the documentation requires Doxygen[5]. If you do not
      have this package, the install-docs option will be disabled.
    * Downloading the data for the unit tests requires curl[6] and sha1sum.
      sha1sum is provided via the GNU coreutils, installed by default on
      many *nix platforms, as well as MinGW and Cygwin. If coreutils is not
      available, a compatible version of sha1sum can be built from
      source[7]. These requirements are optional if not running the unit
      tests.

    [1]: http://www.tortall.net/projects/yasm
    [2]: For Visual Studio the base yasm binary (not vsyasm) should be in the
         PATH for Visual Studio. For VS2017 it is sufficient to rename
         yasm-<version>-<arch>.exe to yasm.exe and place it in:
         Program Files (x86)/Microsoft Visual Studio/2017/<level>/Common7/Tools/
    [3]: http://www.cygwin.com
    [4]: http://www.msys2.org/
    [5]: http://www.doxygen.org
    [6]: http://curl.haxx.se
    [7]: http://www.microbrew.org/tools/md5sha1sum/

  2. Out-of-tree builds
  Out of tree builds are a supported method of building the application. For
  an out of tree build, the source tree is kept separate from the object
  files produced during compilation. For instance:

    $ mkdir build
    $ cd build
    $ ../libvpx/configure <options>
    $ make

  3. Configuration options
  The 'configure' script supports a number of options. The --help option can be
  used to get a list of supported options:
    $ ../libvpx/configure --help

  4. Compiler analyzers
  Compilers have added sanitizers which instrument binaries with information
  about address calculation, memory usage, threading, undefined behavior, and
  other common errors. To simplify building libvpx with some of these features
  use tools/set_analyzer_env.sh before running configure. It will set the
  compiler and necessary flags for building as well as environment variables
  read by the analyzer when testing the binaries.
    $ source ../libvpx/tools/set_analyzer_env.sh address

  5. Cross development
  For cross development, the most notable option is the --target option. The
  most up-to-date list of supported targets can be found at the bottom of the
  --help output of the configure script. As of this writing, the list of
  available targets is:

    arm64-android-gcc
    arm64-darwin-gcc
    arm64-darwin20-gcc
    arm64-darwin21-gcc
    arm64-darwin22-gcc
    arm64-linux-gcc
    arm64-win64-gcc
    arm64-win64-vs15
    arm64-win64-vs16
    arm64-win64-vs16-clangcl
    arm64-win64-vs17
    arm64-win64-vs17-clangcl
    armv7-android-gcc
    armv7-darwin-gcc
    armv7-linux-rvct
    armv7-linux-gcc
    armv7-none-rvct
    armv7-win32-gcc
    armv7-win32-vs14
    armv7-win32-vs15
    armv7s-darwin-gcc
    armv8-linux-gcc
    loongarch32-linux-gcc
    loongarch64-linux-gcc
    mips32-linux-gcc
    mips64-linux-gcc
    ppc64le-linux-gcc
    sparc-solaris-gcc
    x86-android-gcc
    x86-darwin8-gcc
    x86-darwin8-icc
    x86-darwin9-gcc
    x86-darwin9-icc
    x86-darwin10-gcc
    x86-darwin11-gcc
    x86-darwin12-gcc
    x86-darwin13-gcc
    x86-darwin14-gcc
    x86-darwin15-gcc
    x86-darwin16-gcc
    x86-darwin17-gcc
    x86-iphonesimulator-gcc
    x86-linux-gcc
    x86-linux-icc
    x86-os2-gcc
    x86-solaris-gcc
    x86-win32-gcc
    x86-win32-vs14
    x86-win32-vs15
    x86-win32-vs16
    x86-win32-vs17
    x86_64-android-gcc
    x86_64-darwin9-gcc
    x86_64-darwin10-gcc
    x86_64-darwin11-gcc
    x86_64-darwin12-gcc
    x86_64-darwin13-gcc
    x86_64-darwin14-gcc
    x86_64-darwin15-gcc
    x86_64-darwin16-gcc
    x86_64-darwin17-gcc
    x86_64-darwin18-gcc
    x86_64-darwin19-gcc
    x86_64-darwin20-gcc
    x86_64-darwin21-gcc
    x86_64-darwin22-gcc
    x86_64-iphonesimulator-gcc
    x86_64-linux-gcc
    x86_64-linux-icc
    x86_64-solaris-gcc
    x86_64-win64-gcc
    x86_64-win64-vs14
    x86_64-win64-vs15
    x86_64-win64-vs16
    x86_64-win64-vs17
    generic-gnu

  The generic-gnu target, in conjunction with the CROSS environment variable,
  can be used to cross compile architectures that aren't explicitly listed, if
  the toolchain is a cross GNU (gcc/binutils) toolchain. Other POSIX toolchains
  will likely work as well. For instance, to build using the mipsel-linux-uclibc
  toolchain, the following command could be used (note, POSIX SH syntax, adapt
  to your shell as necessary):

    $ CROSS=mipsel-linux-uclibc- ../libvpx/configure

  In addition, the executables to be invoked can be overridden by specifying the
  environment variables: CC, AR, LD, AS, STRIP, NM. Additional flags can be
  passed to these executables with CFLAGS, LDFLAGS, and ASFLAGS.

  6. Configuration errors
  If the configuration step fails, the first step is to look in the error log.
  This defaults to config.log. This should give a good indication of what went
  wrong. If not, contact us for support.

VP8/VP9 TEST VECTORS:
  The test vectors can be downloaded and verified using the build system after
  running configure. To specify an alternate directory the
  LIBVPX_TEST_DATA_PATH environment variable can be used.

  $ ./configure --enable-unit-tests
  $ LIBVPX_TEST_DATA_PATH=../libvpx-test-data make testdata

CODE STYLE:
  The coding style used by this project is enforced with clang-format using the
  configuration contained in the .clang-format file in the root of the
  repository.

  Before pushing changes for review you can format your code with:
  # Apply clang-format to modified .c, .h and .cc files
  $ clang-format -i --style=file \
    $(git diff --name-only --diff-filter=ACMR '*.[hc]' '*.cc')

  Check the .clang-format file for the version used to generate it if there is
  any difference between your local formatting and the review system.

  See also: http://clang.llvm.org/docs/ClangFormat.html

SUPPORT
  This library is an open source project supported by its community. Please
  email webm-discuss@webmproject.org for help.