Cargo Features

Cros-codecs has no features set by default.

[dependencies]
cros-codecs = { version = "0.0.6", features = ["backend", "vaapi", "v4l2"] }
backend v4l2? vaapi? = anyhow, byteorder, crc32fast, drm, drm-fourcc, gbm, gbm-sys, nix, thiserror, zerocopy

Affects cros-codecs::backend, cros-codecs::c2_wrapper, cros-codecs::decoder, cros-codecs::encoder, cros-codecs::image_processing, cros-codecs::utils, cros-codecs::video_frame, video_frame::gbm_video_frame, video_frame::generic_dma_video_frame

vaapi = backend, libva

Affects backend::vaapi, c2_encoder::C2EncoderBackend.get_encoder, c2_wrapper::c2_vaapi_decoder, c2_wrapper::c2_vaapi_encoder, av1::vaapi, h264::vaapi, vp9::vaapi, stateless::av1, stateless::h264, stateless::vp9, gbm_video_frame::GbmExternalBufferDescriptor, video_frame::VideoFrame.to_native_handle

v4l2 = backend, v4l2r

Affects backend::v4l2, c2_encoder::C2EncoderBackend.get_encoder, c2_wrapper::c2_v4l2_decoder, c2_wrapper::c2_v4l2_encoder, device::v4l2, h264::v4l2, h265::v4l2, vp8::v4l2, vp9::v4l2, image_processing::align_detile, image_processing::detile_row, image_processing::detile_plane, image_processing::mm21_to_nv12, cros-codecs::device, video_frame::v4l2_mmap_video_frame, video_frame::VideoFrame.fill_v4l2_plane, video_frame::VideoFrame.process_dqbuf, video_frame::V4l2VideoFrame

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

anyhow backend?
byteorder backend?
libva vaapi?

Enables cros-libva ^0.0.12

v4l2r v4l2?

Enables v4l2r ^0.0.5

thiserror backend?

Enables thiserror ^1.0.58

crc32fast backend?
nix backend?

Enables nix ^0.28

drm backend?

Enables drm ^0.12.0

drm-fourcc backend?
gbm backend?

Enables gbm ^0.15

gbm-sys backend?

Enables gbm-sys ^0.3.1

zerocopy backend?