GP2X
From DaphneWiki
Contents |
FDC
Frame Dimension Converter (13.2)
(from the Magic Eyes PDF) "The Frame Dimension Converter (FDC) transforms 2-D data made during the process of Encoding/Decoding MPEG into the 1-D data format. During this work, 4:2:0 to 4:2:2 format conversion, Rotation are performed."
ie 2D frame to 1D frame
2D separated 4:2:0, 4:2:2, or 4:4:4 --> YUY2 4:2:2
Rotation (0, 90, 180, 270 degrees).
Registers:
Control Register FDC_CNTL
Frame Size Register FDC_FRAME_SIZE
Source Address Registers FDC_LUMA_OFFSET FDC_CB_OFFSET FDC_CR_OFFSET
Destination Address Registers FDC_DST_BASE_L FDB_DST_BASE_H
Status Register FDC_STATUS (can indicate when FDC is busy)
Other Regs FDC_DERING FDC_OCC_CNTL
SC
Scale Processor (13.3)
Receives data from external memory, the ISP, or the Frame Dimensional Convertor (FDC).
Supports Coarse scale and fine scale.
Scale is split into Pre-scale and Post-scale.
PreScale
Coarse scale without filtering, more than 2x down scaling is exclusively possible.
SC_PRE_VRATIO SC_PRE_HRATIO SC_SRC_PXL_WIDTH SC_SRC_PXL_REQCNT
PostScale
Up/Down scale with filtering.
SC_POST_VRATIO SC_POST_HRATIO
Field/Frame Function
SC_SRC_ODD_ADDR SC_SRC_EVEN_ADDR SC_DST_ADDR SC_DST_WPXL_WIDTH
Y/Cb/Cr Separating Function
Only seems to be needed for mpeg or jpeg encoding.
SC_SEP_ADDR SC_DST_PXL_WIDTH
Mirror
SC_MIRROR
bits: 0 - src horizontal mirror (0 = disable, 1 = mirror) 1 - src vertical mirror 2 - dst horizontal mirror 3 - dst vertical mirror 4-5 - scale _source_ data format (0 = yuy2, 1 = yvyu, 2 = uyvy, 3 = vyuy)
Scale Status
SC_STATUS (has "busy" and "done" bits)
Output
Outputs to either external memory or the external display directly.
Other Registers
SC_CMD (Scale control register) SC_SEP_LUMA_ADDR SC_SEP_CB_ADDR SC_SEP_CR_ADDR SC_DELAY SC_MEM_CNTR SC_IRQ