요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
1
.. -*- coding: utf-8; mode: rst -*-
3
.. _V4L2-PIX-FMT-CNF4:
5
******************************
6
V4L2_PIX_FMT_CNF4 ('CNF4')
7
******************************
9
Depth sensor confidence information as a 4 bits per pixel packed array
11
Description
12
===========
14
Proprietary format used by Intel RealSense Depth cameras containing depth
15
confidence information in range 0-15 with 0 indicating that the sensor was
16
unable to resolve any signal and 15 indicating maximum level of confidence for
17
the specific sensor (actual error margins might change from sensor to sensor).
19
Every two consecutive pixels are packed into a single byte.
20
Bits 0-3 of byte n refer to confidence value of depth pixel 2*n,
21
bits 4-7 to confidence value of depth pixel 2*n+1.
23
**Bit-packed representation.**
25
.. flat-table::
26
:header-rows: 0
27
:stub-columns: 0
28
:widths: 64 64
30
* - Y'\ :sub:`01[3:0]`\ (bits 7--4) Y'\ :sub:`00[3:0]`\ (bits 3--0)
31
- Y'\ :sub:`03[3:0]`\ (bits 7--4) Y'\ :sub:`02[3:0]`\ (bits 3--0)
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
두 픽셀을 한 바이트에 packing
1-31`V4L2_PIX_FMT_CNF4`는 Intel RealSense depth camera의 전용 confidence 형식입니다. 깊이 픽셀마다 0~15 값을 저장하며 0은 sensor가 신호를 해석하지 못했음을, 15는 해당 sensor 기준 최고 confidence를 뜻합니다. 실제 오차 범위는 sensor마다 다를 수 있습니다.
연속한 픽셀 두 개를 한 바이트에 넣습니다. byte n의 bits 0~3은 depth pixel `2*n`, bits 4~7은 depth pixel `2*n+1`의 confidence입니다.
항목설명
byte 0 bits 3:0pixel 0 confidence `Y'00[3:0]`
byte 0 bits 7:4pixel 1 confidence `Y'01[3:0]`
byte 1 bits 3:0pixel 2 confidence `Y'02[3:0]`
byte 1 bits 7:4pixel 3 confidence `Y'03[3:0]`
원문의 두 바이트 예제를 nibble 순서로 구조화했습니다.
.. -*- coding: utf-8; mode: rst -*-
.. _V4L2-PIX-FMT-CNF4:
******************************
V4L2_PIX_FMT_CNF4 ('CNF4')
******************************
Depth sensor confidence information as a 4 bits per pixel packed array
Description
===========
Proprietary format used by Intel RealSense Depth cameras containing depth
confidence information in range 0-15 with 0 indicating that the sensor was
unable to resolve any signal and 15 indicating maximum level of confidence for
the specific sensor (actual error margins might change from sensor to sensor).
Every two consecutive pixels are packed into a single byte.
Bits 0-3 of byte n refer to confidence value of depth pixel 2*n,
bits 4-7 to confidence value of depth pixel 2*n+1.
**Bit-packed representation.**
.. flat-table::
:header-rows: 0
:stub-columns: 0
:widths: 64 64
* - Y'\ :sub:`01[3:0]`\ (bits 7--4) Y'\ :sub:`00[3:0]`\ (bits 3--0)
- Y'\ :sub:`03[3:0]`\ (bits 7--4) Y'\ :sub:`02[3:0]`\ (bits 3--0)
요약·해설
pixfmt-cnf4.rst:1-31CNF4는 0~15 depth confidence 두 개를 한 바이트의 low/high nibble에 순서대로 저장합니다.