• J
    media: aspeed: Support aspeed mode to reduce compressed data · d4b9fd00
    Jammy Huang 提交于
    aspeed supports differential jpeg format which only compress the parts
    which are changed. In this way, it reduces both the amount of data to be
    transferred by network and those to be decoded on the client side.
    
    2 new ctrls are added:
    * Aspeed HQ Mode: to control aspeed's high quality(2-pass) compression mode
      This only works with yuv444 subsampling.
    * Aspeed HQ Quality: to control the quality of aspeed's HQ mode
      only useful if Aspeed HQ mode is enabled
    
    Aspeed JPEG Format requires an additional buffer, called bcd, to store
    the information about which macro block in the new frame is different
    from the previous one.
    
    To have bcd correctly working, we need to swap the buffers for src0/1 to
    make src1 refer to previous frame and src0 to the coming new frame.
    Signed-off-by: NJammy Huang <jammy_huang@aspeedtech.com>
    Reported-by: Nkernel test robot <lkp@intel.com>
    Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
    [hverkuil: fix logging dma_addr_t, use %pad for that]
    d4b9fd00
aspeed-video.h 404 字节