12.16. VO

【Debug Information】

# cat /proc/cvitek/vo

-------------------------------DEVICE CONFIG------------------------------
    DevID     DevEn            IntfType            IntfSync            BkClr    DevFrt
      # 0         Y                    MIPI            720x1280@60       3FF       106

-------------------------------VIDEO LAYER STATUS 1-----------------------
  LayerId   VideoEn              PixFmt      ImgW      ImgH     DispX     DispY     DispW     DispH   DispFrt
      # 0         Y      YUV_PLANAR_420       720      1280         0          0             720          1280        25

-------------------------------VIDEO LAYER STATUS 2 (continue)------------
  LayerId     DevId   EnChNum      Luma      Cont       Hue      Satu    BufLen
      # 0         0           1                     128         128          0          128         3

-------------------------------CHN BASIC INFO-----------------------------
  LayerId     ChnId     ChnEn      Prio      ChnX      ChnY      ChnW      ChnH  RotAngle
      # 0        # 0           Y               0           0             0             720          1280        90

-------------------------------CHN PLAY INFO------------------------------
  LayerId     ChnId      Show     Pause    Thrshd    ChnFrt          ChnGap(us)   DispPts          PreDonePts
      # 0         # 0           N            N           3               24               41666          1580552617          1580472618

【Analysis】

Record the current VO usage status and attribute configuration, including device status, video layer status and channel status. It can be used to dynamically obtain the current VO usage status for debugging or testing.

【Parameter Description】

Parameter

Decription

DEVICE CONFIG

DevID

Device ID。

Value range: [0, VO_MAX_DEV_NUM)

DevEn

Whether the device is enabled.

N: Prohibition;

Y: Enable.

IntfType

Interface type.

Value range:

CVBS, YPBPR, VGA, BT656, BT1120, LCD, LCD_18BIT, LCD_24BIT, LCD_30BIT, MIPI, MIPI_SLAVE, HDMI, I80

IntfSync

Interface timing.

Value range: [0, VO_OUTPUT_BUTT)。

BkClr

Background color of the device. Hex RGB888 format.

DevFrt

Device frame rate, or refresh rate, is related to timing.

VIDEO LAYER STATUS 1

LayerId

Video layer ID.

Value range: [0, VO_MAX_LAYER_NUM)。

VideoEn

Whether the video layer is enabled.

N: Prohibition;

Y: Enable.

PixFmt

Enter the pixel format of the image.

ImgW

The width of the video layer canvas.

ImgH

The height of the video layer canvas.

DispX

The starting abscissa of the display area.

DispY

The starting ordinate of the display area.

DispW

The width of the display area.

DispH

The height of the display area.

DispFrt

The display frame rate of the video layer.

VIDEO LAYER STATUS 2(continue)

LayerId

Video layer ID.

Value range: [0, VO_MAX_LAYER_NUM)。

DevId

The device ID of the video layer binding.

Value range: [0, VO_MAX_DEV_NUM)。

EnChNum

Channel enable count. That is, how many channels in the video layer are enabled.

Value range: [0, VO_MAX_CHN_NUM)。

Luma

Brightness.

Value range: [0, 100]。

Cont

Contrast.

Value range: [0, 100]。

Hue

Hue.

Value range: [0, 100]。

Satu

Saturation.

Value range: [0, 100]。

BufLen

Displays the buffer length.

CHN BASIC INFO

LayerId

Video layer ID.

Value range: [0, VO_MAX_LAYER_NUM)。

ChnId

Channel ID.

Value range: [0, VO_MAX_CHN_NUM)。

ChnEn

Whether the channel is enabled.

Y: Yes;

N: No.

Prio

Channel priority.

Value range: [0, VO_MAX_CHN_NUM)。

ChnX

The starting abscissa of the channel.

ChnY

The initial ordinate of the channel.

ChnW

Channel width.

ChnH

Channel height.

RotAngle

Channel rotation angle.

Value range: [0,ROTATION_BUTT)

CHN PLAY INFO

LayerId

Video layer ID.

Value range: [0, VO_MAX_LAYER_NUM)。

ChnId

Channel ID.

Value range: [0, VO_MAX_CHN_NUM)。

Show

Whether the channel is displayed.

N: Not displayed;

Y: Display.

Pause

Whether the channel is suspended.

N: Prohibition;

Y: Enable.

Thrshd

The maximum number of image frames that the channel buffer queue can receive.

ChnFrt

Channel frame rate. Channel playback control can be reflected by this value.

ChnGap(us)

Channel frame spacing. Inversely proportional to the channel frame rate. Unit: us。

DispPts

The timestamp of the frame currently being displayed. Unit: us。

PreDonePts

The timestamp of the previous completed display frame. Unit: us。