EPOK RUNTIME
Fmv Bitstream
fmv_bitstream.hpp · full-motion video clips and playback statistics
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.
Module
full-motion video clips and playback statistics.
Include this module
C++ include
#include "fmv_bitstream.hpp"Types
AcBuildStruct declared by the fmv-bitstream module for full-motion video clips and playback statistics.StructAcCodeStruct declared by the fmv-bitstream module for full-motion video clips and playback statistics.StructAcTablesStruct declared by the fmv-bitstream module for full-motion video clips and playback statistics.StructBitReaderReads 16-bit little-endian words most significant bit first.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 and methods
ac_buildPerforms `ac build` as part of full-motion video clips and playback statistics.Functionac_entryPerforms `ac entry` as part of full-motion video clips and playback statistics.Functionac_fillFills every table slot whose leading bits are `code`.FunctionBitReaderConstructs `epok::fmv::detail::BitReader` for full-motion video clips and playback statistics.constructordc_sizeMPEG-1 DC size: the number of differential bits that follow.Functiondecode_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.FunctionextendPerforms `extend` as part of full-motion video clips and playback statistics.Functionfast_fillPerforms `fast fill` as part of full-motion video clips and playback statistics.FunctionoverrunPerforms `overrun` as part of full-motion video clips and playback statistics.Methodpeek16Performs `peek16` as part of full-motion video clips and playback statistics.Methodquant_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.FunctionrefillPerforms `refill` as part of full-motion video clips and playback statistics.MethodskipPerforms `skip` as part of full-motion video clips and playback statistics.MethodtakePerforms `take` as part of full-motion video clips and playback statistics.Methodtv_dcDC levels are a quarter of the block's mean pixel offset from 128.FunctionFields, variables and values
ac_builtExposes `ac_built` on the `epok::fmv::detail` namespace for full-motion video clips and playback statistics.Variableac_codesMPEG-1 DCT coefficient codes without their trailing sign bit.VariableavailableExposes `available` on `epok::fmv::detail::BitReader` for full-motion video clips and playback statistics.FieldBLOCKNamed value `BLOCK` in `epok::fmv::BsStatus`.Enum valuebs_magicExposes `bs_magic` on the `epok::fmv` namespace for full-motion video clips and playback statistics.VariableCAPACITYNamed value `CAPACITY` in `epok::fmv::BsStatus`.Enum valuecapacity_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.Variablechromazigzag order, as MDEC command 2 expectsFieldcodeExposes `code` on `epok::fmv::detail::AcCode` for full-motion video clips and playback statistics.FieldCODENamed value `CODE` in `epok::fmv::BsStatus`.Enum valueendExposes `end` on `epok::fmv::detail::BitReader` for full-motion video clips and playback statistics.FieldfastCodes of 2..8 bits (first three bits not all zero), indexed by nine bits so the sign comes with them: the MDEC code (16 bits) | bits consumed << 16 | coefficients advanced << 20.FieldHEADERNamed value `HEADER` in `epok::fmv::BsStatus`.Enum valueintra_matrixMPEG-1 default intra matrix in raster order, with the DC step the BS encoders assume (2).VariablelengthExposes `length` on `epok::fmv::detail::AcCode` for full-motion video clips and playback statistics.FieldlevelExposes `level` on `epok::fmv::detail::AcCode` for full-motion video clips and playback statistics.Fieldlowseven leading zeros: codes of 12..16 bitsFieldlumazigzag order, as MDEC command 2 expectsFieldmagicExposes `magic` on `epok::fmv::BsHeader` for full-motion video clips and playback statistics.Fieldmax_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.Variablemiddle0000001..FieldnextExposes `next` on `epok::fmv::detail::BitReader` for full-motion video clips and playback statistics.FieldOKNamed value `OK` in `epok::fmv::BsStatus`.Enum valueOVERRUNNamed value `OVERRUN` in `epok::fmv::BsStatus`.Enum valuephantomExposes `phantom` on `epok::fmv::detail::BitReader` for full-motion video clips and playback statistics.FieldquantExposes `quant` on `epok::fmv::BsHeader` for full-motion video clips and playback statistics.FieldrunExposes `run` on `epok::fmv::detail::AcCode` for full-motion video clips and playback statistics.FieldSIZENamed value `SIZE` in `epok::fmv::BsStatus`.Enum valuestandard_quantExposes `standard_quant` on the `epok::fmv` namespace for full-motion video clips and playback statistics.VariablestatusExposes `status` on `epok::fmv::BsResult` for full-motion video clips and playback statistics.FieldtablesExposes `tables` on `epok::fmv::detail::AcBuild` for full-motion video clips and playback statistics.Fieldtv_quantExposes `tv_quant` on the `epok::fmv` namespace for full-motion video clips and playback statistics.VariablevalidExposes `valid` on `epok::fmv::detail::AcBuild` for full-motion video clips and playback statistics.FieldversionExposes `version` on `epok::fmv::BsHeader` for full-motion video clips and playback statistics.FieldVERSIONNamed value `VERSION` in `epok::fmv::BsStatus`.Enum valuewindowExposes `window` on `epok::fmv::detail::BitReader` for full-motion video clips and playback statistics.FieldwordsExposes `words` on `epok::fmv::BsHeader` for full-motion video clips and playback statistics.FieldwordsMDEC words written to `out`, including the leading decode command.Fieldzigzag_rasterRaster position of each zigzag index.Variable