Crate caffe2_video

source ·

Structs

  • data structure for storing decoded audio data
  • data structure for storing decoded video frames
  • | sampling interval for fps starting | at specified timestamp use enum SpecialFps | to set special fps decoding behavior | note sampled fps will not always accurately | follow the target fps, because sampled | frame has to snap to actual frame timestamp, | e.g. video fps = 25, sample fps = 4 will | sample every 0.28s, not 0.25 video fps | = 25, sample fps = 5 will sample every | 0.24s, not 0.2, because of floating-point | division accuracy (1 / 5.0 is not exactly | 0.2) |

Enums

  • | three different types of decoding behavior | are supported | | 0: do temporal jittering to sample | a random clip from the video | | 1: uniformly sample multiple clips | from the video; | | 2: sample a clip from a given starting | frame | | 3: for xray video service |
  • | Four different types of optical flow | algorithms supported; | | BroxOpticalFlow doesn’t have a CPU | version; | | DensePyrLKOpticalFlow only has sparse | CPU version; |
  • | Define different types of optical flow | data type | | 0: original two channel optical flow | | 1: three channel optical flow with | magnitude as the third channel | | 2: two channel optical flow + one channel | gray | | 3: two channel optical flow + three | channel rgb |
  • | enum to specify 3 special fps sampling | behaviors: 0: disable fps sampling, | no frame sampled at all | | -1: unlimited fps sampling, will sample | at native video fps | | -2: disable fps sampling, but will get | the frame at specific timestamp |
  • | three different types of resolution | when decoding the video | | 0: resize to width x height and ignore | the aspect ratio; | | 1: resize to short_edge and keep the | aspect ratio; | | 2: using the original resolution of | the video; if resolution is smaller | than crop_size x crop_size, resize | to crop_size and keep the aspect ratio; | | 3: for xray video service |

Constants

Traits

Functions

Type Definitions