tree: d8dccb42ca13af3e3de94603c142f6c37b5bee84 [path history] [tgz]
  1. decode/
  2. encode/
  3. gpu/
  4. rust/
  5. at_exit_util.cc
  6. BUILD.gn
  7. decode_fake_test.cc
  8. decode_fuzzer.cc
  9. decode_gpu_test.cc
  10. decode_wrapper.cc
  11. decode_wrapper.h
  12. encode_fake_test.cc
  13. encode_wrapper.cc
  14. encode_wrapper.h
  15. event_pipe.cc
  16. event_pipe.h
  17. gbm_util.cc
  18. gbm_util.h
  19. libvda_common.h
  20. libvda_decode.h
  21. libvda_encode.h
  22. libvda_export.h
  23. OWNERS
  24. README.md
arc/vm/libvda/README.md

libvda

About

libvda is a library that provides a C API for video decoding as defined in libvda.h.

Implementations

GPU

An implementation that communicates with GpuArcVideoDecodeAccelerator running in the GPU process. Internally, communication is done with libmojo using the VideoDecodeAccelerator mojo interface.

Fake

An empty implementation useful for integration testing. Users can initialize this implementation to see verbose logs when each vda function is called, as well as receive empty PICTURE_READY events.

Running unittests manually

There are unit tests for both the fake and the GPU implementation. The GPU unit tests require ChromeOS with Chrome running in order to communicate with the GPU process. The DecodeFileGpu unit test requires an encoded video file with extension .h264, .vp8, .vp9 to be provided that contains an H264, VP8, or VP9 video stream respectively. This can be passed in using the --test_video_file command line flag.

Example usage:

./libvda_unittest --test_video_file=test_stream.h264