Samsung S5PC100 User Manual page 1588

Table of Contents

Advertisement

MFC (MULTI FORMAT CODEC)
Check whether all the channels are flushed from CH_ID control buffer. End the F/W if all the channel IDs are
checked out or get into the command waiting state if all the channels are not flushed.
Set OPERATION_DONE = 1
6.2.3 INIT_CODEC
This INIT_CODEC command does different functions for encoder and decoder.
For encoder this command parses the configuration file in host and the firmware stores all the parameters from
host through the host interface registers.
For decoder this command does the Header Parsing for the coded bit stream. Host needs image size when
calculates DPB buffer's size or recon buffer. HOST processor waits until HEADER_DONE register will be high
after writing to FRAME_START register. If HEADER_DONE register is high, HOST processor reads IMG_SIZE_X
and IMG_SIZE_Y register and calculates the SDRAM areas according to image size and write DEC_DPB_ADDR,
DPB_COMV_ADDR, POST_ADDR register. HOST processor waits until OPERATION_DONE regitser will be high
after wrting to SEQ_START regitser.
This command has to be executed once for a particular channel and it is an error if it is tried to be executed after
that.
Host process
Channel ID write (Host Interface Register CH_ID)
Aloocated channel working buffer(VSP_BUF_ADDR,DB_STT_ADDR).
Write the
♦ Start address of stream header
♦ Framesize of stream header
♦ Display delay and number of extra buffer(NUM_EXTRA_BUF)
♦ Decoding/Encoding (STANDARD_SEL)
♦ Command type (MFC_COMMAND_TYPE)
Set the FRAME_START = 1
It starts the header decoding in the firmware side and waits for the signal HEADER_DONE to be set to 1
After this it gets the DPB sizes, height, and width value. And allocated other buffers
Set the SEQ_START = 1
The host waits for OPERATION_DONE = 1
ARM7 process
Does the header decoding of the stream
Set the status of the INIT_CODEC command to set.
Sends the signal HEADER_DONE = '1' and OPERATION_DONE = '1' once it finished
9.11-20
S5PC100 USER'S MANUAL (REV1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents