Vietnamese (machine translation)

Lưu ý

Mục đích của file này là để độc giả tiếng Việt có thể đọc và hiểu tài liệu nhân kernel dễ dàng hơn, không phải để tạo ra một nhánh tài liệu riêng. Nếu bạn có bất kỳ nhận xét hoặc cập nhật nào cho file này, vui lòng thử cập nhật file tiếng Anh gốc trước. Nếu bạn thấy có sự khác biệt giữa bản dịch và bản gốc, hoặc có vấn đề về bản dịch, vui lòng gửi góp ý hoặc patch cho người dịch của file này, hoặc nhờ người bảo trì và người review tài liệu tiếng Việt giúp đỡ.

Bản gốc:

Multi-planar format structures

Người dịch:

Google Translate (machine translation)

Phiên bản gốc:

8541d8f725c6

Cảnh báo

Tài liệu này được dịch tự động bằng máy và chưa được review bởi người dịch. Nội dung có thể không chính xác hoặc khó hiểu ở một số chỗ. Khi có sự khác biệt với bản gốc, bản gốc luôn là chuẩn. Bản dịch chất lượng cao (được review) được đặt trong thư mục vi_VN/.

2.2. Cấu trúc định dạng đa mặt phẳng

Cấu trúc struct ZZ0000ZZ xác định kích thước và bố trí cho từng mặt phẳng theo định dạng nhiều mặt phẳng. các Cấu trúc ZZ0001ZZ chứa thông tin chung cho tất cả các mặt phẳng (chẳng hạn như chiều rộng và chiều cao của hình ảnh) và mảng cấu trúc ZZ0002ZZ, mô tả tất cả các mặt phẳng có định dạng đó.

type v4l2_plane_pix_format
struct v4l2_plane_pix_format

__u32

sizeimage

Maximum size in bytes required for image data in this plane, set by the driver. When the image consists of variable length compressed data this is the number of bytes required by the codec to support the worst-case compression scenario.

The driver will set the value for uncompressed images.

Clients are allowed to set the sizeimage field for variable length compressed data flagged with V4L2_FMT_FLAG_COMPRESSED at ioctl VIDIOC_ENUM_FMT, but the driver may ignore it and set the value itself, or it may modify the provided value based on alignment requirements or minimum/maximum size requirements. If the client wants to leave this to the driver, then it should set sizeimage to 0.

__u32

bytesperline

Distance in bytes between the leftmost pixels in two adjacent lines. See struct v4l2_pix_format.

__u16

reserved[6]

Reserved for future extensions. Should be zeroed by drivers and applications.

type v4l2_pix_format_mplane
struct v4l2_pix_format_mplane

__u32

width

Image width in pixels. See struct v4l2_pix_format.

__u32

height

Image height in pixels. See struct v4l2_pix_format.

__u32

pixelformat

The pixel format. Both single- and multi-planar four character codes can be used.

__u32

field

Field order, from enum v4l2_field. See struct v4l2_pix_format.

__u32

colorspace

Colorspace encoding, from enum v4l2_colorspace. See struct v4l2_pix_format.

struct v4l2_plane_pix_format

plane_fmt[VIDEO_MAX_PLANES]

An array of structures describing format of each plane this pixel format consists of. The number of valid entries in this array has to be put in the num_planes field.

__u8

num_planes

Number of planes (i.e. separate memory buffers) for this format and the number of valid entries in the plane_fmt array.

__u8

flags

Flags set by the application or driver, see Format Flags.

union {

(anonymous)

__u8

ycbcr_enc

Y’CbCr encoding, from enum v4l2_ycbcr_encoding. See struct v4l2_pix_format.

__u8

hsv_enc

HSV encoding, from enum v4l2_hsv_encoding. See struct v4l2_pix_format.

}

__u8

quantization

Quantization range, from enum v4l2_quantization. See struct v4l2_pix_format.

__u8

xfer_func

Transfer function, from enum v4l2_xfer_func. See struct v4l2_pix_format.

__u8

reserved[7]

Reserved for future extensions. Should be zeroed by drivers and applications.