EPOK RUNTIME
namespace epok::fmv
5 types, 5 functions and 10 data symbols.
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Types
AcTablesStruct declared by the fmv-bitstream module for full-motion video clips and playback statistics.StructBsHeaderStruct declared by the fmv-bitstream module for full-motion video clips and playback statistics.StructBsResultStruct declared by the fmv-bitstream module for full-motion video clips and playback statistics.StructBsStatusEnum declared by the fmv-bitstream module for full-motion video clips and playback statistics.EnumQuantTables"TV levels" clips were encoded from limited-range video (luma 16..235, chroma 16..240).StructFunctions
decode_frameDecodes one frame into `out`: the MDEC decode command followed by the run-length codes, padded with end-of-block codes to whole 32-word DMA blocks.Functiondivide_roundedPerforms `divide rounded` as part of full-motion video clips and playback statistics.Functionquant_tablesPerforms `quant tables` as part of full-motion video clips and playback statistics.Functionread_headerReads header as part of full-motion video clips and playback statistics.Functiontv_dcDC levels are a quarter of the block's mean pixel offset from 128.FunctionVariables and constants
bs_magicExposes `bs_magic` on the `epok::fmv` namespace for full-motion video clips and playback statistics.Variablecapacity_marginRoom for one more block than a frame uses: `decode_frame` checks for a whole block before decoding it, so its buffer is the frame's words plus this.Variableintra_matrixMPEG-1 default intra matrix in raster order, with the DC step the BS encoders assume (2).Variablemax_block_codesCoefficients, DC and EOB of one block can never exceed this many codes.Variablemdec_decode_15bitMDEC "decode macroblocks" command, 15-bit unsigned output, word count in the low 16 bits.Variablemdec_eobExposes `mdec_eob` on the `epok::fmv` namespace for full-motion video clips and playback statistics.Variablemdec_idctMDEC "set scale table": floor(32768 * c(k) * cos((2n + 1) * k * pi / 16)), c(0) = 1/sqrt(2), c(k) = 1, row k = frequency.Variablestandard_quantExposes `standard_quant` on the `epok::fmv` namespace for full-motion video clips and playback statistics.Variabletv_quantExposes `tv_quant` on the `epok::fmv` namespace for full-motion video clips and playback statistics.Variablezigzag_rasterRaster position of each zigzag index.Variable