1. 19 Jan, 2022 1 commit
  2. 10 Jan, 2022 1 commit
  3. 30 Dec, 2021 1 commit
    • Prabhat Roy's avatar
      Add video GPU decoder (#5019) · 64d21d12
      Prabhat Roy authored
      
      
      * [WIP] Add video GPU decoder
      
      * Expose use_dev_frame to python class and handle it internally
      
      * Fixed invalid argument CUDA error
      
      * Fixed empty and missing frames
      
      * Free remaining frames in the queue
      
      * Added nv12 to yuv420 conversion support for host frames
      
      * Added unit test and cleaned up code
      
      * Use CUDA_HOME inside if
      
      * Undo commented out code
      
      * Add Readme
      
      * Remove output_format and use_device_frame optional arguments from the VideoReader API
      
      * Cleaned up init()
      
      * Fix warnings
      
      * Fix python linter errors
      
      * Fix linter issues in setup.py
      
      * clang-format
      
      * Make reformat private
      
      * Member function naming
      
      * Add comments
      
      * Variable renaming
      
      * Code cleanup
      
      * Make return type of decode() void
      
      * Replace printing errors with throwing runtime_error
      
      * Replaced runtime_error with TORCH_CHECK in demuxer.h
      
      * Use CUDAGuard instead of cudaSetDevice
      
      * Remove printf
      
      * Use Tensor instead of uint8* and remove cuMemAlloc/cuMemFree
      
      * Use TORCH_CHECK instead of runtime_error
      
      * Use TORCHVISION_INCLUDE and TORCHVISION_LIBRARY to pass video codec location
      
      * Include ffmpeg_include_dir
      
      * Remove space
      
      * Removed use of runtime_error
      
      * Update Readme
      
      * Check for bsf.h
      
      * Change struct initialisation style
      
      * Clean-up get_operating_point
      
      * Make variable naming convention uniform
      
      * Move checking for bsf.h around
      
      * Fix linter error
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      64d21d12
  4. 27 Dec, 2021 1 commit
  5. 21 Dec, 2021 1 commit
    • Kai Zhang's avatar
      Log io usage (#5038) · da7680f0
      Kai Zhang authored
      * add api usage log for io
      
      * cover VideoReader
      
      * cover c++ APIs
      
      * add api usage log for io
      
      * cover VideoReader
      
      * cover c++ APIs
      
      * add _cpp suffix to c++ APIs
      
      * use new API and change cpp format
      
      * remove _cpp suffix
      
      * adopt new API
      
      * lint
      da7680f0
  6. 13 Dec, 2021 1 commit
  7. 05 Dec, 2021 1 commit
  8. 17 Nov, 2021 1 commit
    • F-G Fernandez's avatar
      Added typing annotations to io/_video_opts (#4173) · 29e0f66a
      F-G Fernandez authored
      
      
      * style: Added typing annotations
      
      * style: Fixed lint
      
      * style: Fixed typing
      
      * chore: Updated mypy.ini
      
      * style: Fixed typing
      
      * chore: Updated mypy.ini
      
      * style: Fixed typing compatibility with jit
      
      * style: Fixed typing
      
      * style: Fixed typing
      
      * style: Fixed missing import
      
      * style: Fixed typing of __iter__
      
      * style: Fixed typing
      
      * style: Fixed lint
      
      * style: Finished typing
      
      * style: ufmt the file
      
      * style: Removed unnecessary typing
      
      * style: Fixed typing of iterator
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
      29e0f66a
  9. 10 Nov, 2021 2 commits
  10. 03 Nov, 2021 1 commit
    • Bruno Korbar's avatar
      Fast seek implementation (#3179) · 4ccef06c
      Bruno Korbar authored
      
      
      * modify processPacket to support fast seek
      
      * add fastSeek to ProcessPacket decoder definition
      
      * add fastseek flag to DecoderParametersStruct
      
      * add fastseek flag to the process packet call
      
      * no default params in C++ implementation
      
      * enable flag in C++ implementation
      
      * make order of parameters more normal
      
      * register new seek with python api
      
      * [somewhat broken] test suite for keyframes using pyav
      
      * revert " changes
      
      * add type annotations to init
      
      * Adding tests
      
      * linter
      
      * Flake doesn't show up :|
      
      * Change from unitest to pytest syntax
      
      * add return type
      Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
      4ccef06c
  11. 28 Oct, 2021 1 commit
  12. 25 Oct, 2021 1 commit
  13. 21 Oct, 2021 2 commits
  14. 18 Oct, 2021 1 commit
  15. 08 Oct, 2021 1 commit
  16. 04 Oct, 2021 2 commits
    • Nicolas Hug's avatar
      Fix all outstanding flake8 issues (#4535) · b81d189d
      Nicolas Hug authored
      b81d189d
    • Philip Meier's avatar
      Add ufmt (usort + black) as code formatter (#4384) · 5f0edb97
      Philip Meier authored
      
      
      * add ufmt as code formatter
      
      * cleanup
      
      * quote ufmt requirement
      
      * split imports into more groups
      
      * regenerate circleci config
      
      * fix CI
      
      * clarify local testing utils section
      
      * use ufmt pre-commit hook
      
      * split relative imports into local category
      
      * Revert "split relative imports into local category"
      
      This reverts commit f2e224cde2008c56c9347c1f69746d39065cdd51.
      
      * pin black and usort dependencies
      
      * fix local test utils detection
      
      * fix ufmt rev
      
      * add reference utils to local category
      
      * fix usort config
      
      * remove custom categories sorting
      
      * Run pre-commit without fixing flake8
      
      * got a double import in merge
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      5f0edb97
  17. 31 Aug, 2021 1 commit
  18. 25 Jul, 2021 1 commit
  19. 05 Jul, 2021 1 commit
  20. 22 Jun, 2021 1 commit
  21. 17 Jun, 2021 1 commit
  22. 15 Jun, 2021 1 commit
  23. 04 Jun, 2021 1 commit
  24. 27 May, 2021 1 commit
  25. 25 May, 2021 1 commit
  26. 11 May, 2021 2 commits
  27. 27 Apr, 2021 1 commit
  28. 31 Mar, 2021 1 commit
  29. 24 Mar, 2021 1 commit
  30. 04 Feb, 2021 1 commit
  31. 26 Jan, 2021 1 commit
  32. 22 Jan, 2021 1 commit
  33. 19 Jan, 2021 1 commit
  34. 22 Dec, 2020 1 commit
  35. 20 Dec, 2020 1 commit
    • Siddhant Bansal's avatar
      Clean up and Document io.image enhancements (#3193) · af5cb00c
      Siddhant Bansal authored
      * Update ImageReadMode error messages, add newline at the end of image_read_mode.h, replace define with const in image_read_mode.h, add documentation to ImageReadMode enum
      
      * Update readpng_cpu and readjpeg_cpu error messages
      
      * Update image.py documentation
      af5cb00c
  36. 01 Dec, 2020 1 commit
    • Francisco Massa's avatar
      Add option to write audio to video file (#2304) · 1b00af38
      Francisco Massa authored
      
      
      * Add option to write audio to video file
      
      Summary:
      I was trying to use torchvision's `write_video` function and realized there was no option to add in the audio.
      
      Thus, this diff contains the changes necessary such that this is possible. This is my first time trying to contribute to this project, so be as harsh as you need!
      
      Reviewed By: fmassa
      
      Differential Revision: D21480083
      
      fbshipit-source-id: 2e11f2c8728d42f86c94068f75b843793d5a94aa
      
      * Fix typo
      
      * Try fix Windows
      
      * Disable test on Windows
      Co-authored-by: default avatarJoanna Bitton <jbitton@fb.com>
      1b00af38