FFmpeg
Data Structures | Macros | Functions | Variables
mobiclip.c File Reference
#include <inttypes.h>
#include "libavutil/avassert.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "golomb.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  BlockXY
 
struct  MotionXY
 
struct  MobiClipContext
 

Macros

#define MOBI_RL_VLC_BITS   12
 
#define MOBI_MV_VLC_BITS   6
 

Functions

static av_cold void mobiclip_init_static (void)
 
static av_cold int mobiclip_init (AVCodecContext *avctx)
 
static int setup_qtables (AVCodecContext *avctx, int64_t quantizer)
 
static void inverse4 (unsigned *rs)
 
static void idct (int *arr, int size)
 
static void read_run_encoding (AVCodecContext *avctx, int *last, int *run, int *level)
 
static int add_coefficients (AVCodecContext *avctx, AVFrame *frame, int bx, int by, int size, int plane)
 
static int add_pframe_coefficients (AVCodecContext *avctx, AVFrame *frame, int bx, int by, int size, int plane)
 
static int adjust (int x, int size)
 
static uint8_t pget (BlockXY b)
 
static uint8_t half (int a, int b)
 
static uint8_t half3 (int a, int b, int c)
 
static uint8_t pick_above (BlockXY bxy)
 
static uint8_t pick_left (BlockXY bxy)
 
static uint8_t half_horz (BlockXY bxy)
 
static uint8_t half_vert (BlockXY bxy)
 
static uint8_t pick_4 (BlockXY bxy)
 
static uint8_t pick_5 (BlockXY bxy)
 
static uint8_t pick_6 (BlockXY bxy)
 
static uint8_t pick_7 (BlockXY bxy)
 
static uint8_t pick_8 (BlockXY bxy)
 
static void block_fill_simple (uint8_t *block, int size, int linesize, int fill)
 
static void block_fill (uint8_t *block, int size, int linesize, int w, int h, int ax, int ay, uint8_t(*pick)(BlockXY bxy))
 
static int block_sum (const uint8_t *block, int w, int h, int linesize)
 
static int predict_intra (AVCodecContext *avctx, AVFrame *frame, int ax, int ay, int pmode, int add_coeffs, int size, int plane)
 
static int get_prediction (AVCodecContext *avctx, int x, int y, int size)
 
static int process_block (AVCodecContext *avctx, AVFrame *frame, int x, int y, int pmode, int has_coeffs, int plane)
 
static int decode_macroblock (AVCodecContext *avctx, AVFrame *frame, int x, int y, int predict)
 
static int get_index (int x)
 
static int predict_motion (AVCodecContext *avctx, int width, int height, int index, int offsetm, int offsetx, int offsety)
 
static int mobiclip_decode (AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *pkt)
 
static void mobiclip_flush (AVCodecContext *avctx)
 
static av_cold int mobiclip_close (AVCodecContext *avctx)
 

Variables

static const uint8_t zigzag4x4_tab []
 
static const uint8_t quant4x4_tab [][16]
 
static const uint8_t quant8x8_tab [][64]
 
static const uint8_t block4x4_coefficients_tab []
 
static const uint8_t pframe_block4x4_coefficients_tab []
 
static const uint8_t block8x8_coefficients_tab []
 
static const uint8_t pframe_block8x8_coefficients_tab []
 
static const uint8_t run_residue [2][256]
 
static const uint8_t bits0 []
 
static const uint16_t syms0 []
 
static const uint16_t syms1 []
 
static const uint8_t mv_len [16]
 
static const uint8_t mv_bits [2][16][10]
 
static const uint8_t mv_syms [2][16][10]
 
static const VLCElemrl_vlc [2]
 
static const VLCElemmv_vlc [2][16]
 
const FFCodec ff_mobiclip_decoder
 

Macro Definition Documentation

◆ MOBI_RL_VLC_BITS

#define MOBI_RL_VLC_BITS   12

Definition at line 37 of file mobiclip.c.

◆ MOBI_MV_VLC_BITS

#define MOBI_MV_VLC_BITS   6

Definition at line 38 of file mobiclip.c.

Function Documentation

◆ mobiclip_init_static()

static av_cold void mobiclip_init_static ( void  )
static

Definition at line 280 of file mobiclip.c.

Referenced by mobiclip_init().

◆ mobiclip_init()

static av_cold int mobiclip_init ( AVCodecContext avctx)
static

Definition at line 301 of file mobiclip.c.

◆ setup_qtables()

static int setup_qtables ( AVCodecContext avctx,
int64_t  quantizer 
)
static

Definition at line 331 of file mobiclip.c.

Referenced by mobiclip_decode().

◆ inverse4()

static void inverse4 ( unsigned *  rs)
static

Definition at line 356 of file mobiclip.c.

Referenced by idct().

◆ idct()

static void idct ( int arr,
int  size 
)
static

Definition at line 369 of file mobiclip.c.

Referenced by add_coefficients().

◆ read_run_encoding()

static void read_run_encoding ( AVCodecContext avctx,
int last,
int run,
int level 
)
static

Definition at line 406 of file mobiclip.c.

Referenced by add_coefficients().

◆ add_coefficients()

static int add_coefficients ( AVCodecContext avctx,
AVFrame frame,
int  bx,
int  by,
int  size,
int  plane 
)
static

Definition at line 418 of file mobiclip.c.

Referenced by add_pframe_coefficients(), and predict_intra().

◆ add_pframe_coefficients()

static int add_pframe_coefficients ( AVCodecContext avctx,
AVFrame frame,
int  bx,
int  by,
int  size,
int  plane 
)
static

Definition at line 484 of file mobiclip.c.

Referenced by mobiclip_decode().

◆ adjust()

static int adjust ( int  x,
int  size 
)
static

Definition at line 512 of file mobiclip.c.

Referenced by comp_adjust(), fir_to_phase(), init_gaussian_filter(), and predict_intra().

◆ pget()

static uint8_t pget ( BlockXY  b)
static

Definition at line 517 of file mobiclip.c.

Referenced by half_horz(), half_vert(), pick_4(), pick_5(), pick_6(), pick_7(), pick_8(), pick_above(), and pick_left().

◆ half()

static uint8_t half ( int  a,
int  b 
)
static

Definition at line 538 of file mobiclip.c.

Referenced by clear_slice16(), clear_slice8(), combine_fft(), do_hsvhold16_slice(), do_hsvkey_pixel(), ff_avg_h264_qpel16_mc01_lasx(), ff_avg_h264_qpel16_mc01_lsx(), ff_avg_h264_qpel16_mc01_mmi(), ff_avg_h264_qpel16_mc03_lasx(), ff_avg_h264_qpel16_mc03_lsx(), ff_avg_h264_qpel16_mc03_mmi(), ff_avg_h264_qpel16_mc10_lasx(), ff_avg_h264_qpel16_mc10_mmi(), ff_avg_h264_qpel16_mc30_lasx(), ff_avg_h264_qpel16_mc30_mmi(), ff_avg_h264_qpel4_mc01_mmi(), ff_avg_h264_qpel4_mc03_mmi(), ff_avg_h264_qpel4_mc10_mmi(), ff_avg_h264_qpel4_mc30_mmi(), ff_avg_h264_qpel8_mc01_mmi(), ff_avg_h264_qpel8_mc03_mmi(), ff_avg_h264_qpel8_mc10_lasx(), ff_avg_h264_qpel8_mc10_lsx(), ff_avg_h264_qpel8_mc10_mmi(), ff_avg_h264_qpel8_mc30_lasx(), ff_avg_h264_qpel8_mc30_lsx(), ff_avg_h264_qpel8_mc30_mmi(), ff_put_h264_qpel16_mc01_lasx(), ff_put_h264_qpel16_mc01_mmi(), ff_put_h264_qpel16_mc03_lasx(), ff_put_h264_qpel16_mc03_mmi(), ff_put_h264_qpel16_mc10_lasx(), ff_put_h264_qpel16_mc10_mmi(), ff_put_h264_qpel16_mc30_lasx(), ff_put_h264_qpel16_mc30_mmi(), ff_put_h264_qpel4_mc01_mmi(), ff_put_h264_qpel4_mc03_mmi(), ff_put_h264_qpel4_mc10_mmi(), ff_put_h264_qpel4_mc30_mmi(), ff_put_h264_qpel8_mc01_lasx(), ff_put_h264_qpel8_mc01_lsx(), ff_put_h264_qpel8_mc01_mmi(), ff_put_h264_qpel8_mc03_lasx(), ff_put_h264_qpel8_mc03_lsx(), ff_put_h264_qpel8_mc03_mmi(), ff_put_h264_qpel8_mc10_lasx(), ff_put_h264_qpel8_mc10_lsx(), ff_put_h264_qpel8_mc10_mmi(), ff_put_h264_qpel8_mc30_lasx(), ff_put_h264_qpel8_mc30_lsx(), ff_put_h264_qpel8_mc30_mmi(), fill_ltable(), init(), init_axis_color(), pick_4(), pick_5(), pick_6(), pick_8(), premultiply16(), premultiply16offset(), premultiply16yuv(), put_mspel8_mc10_c(), put_mspel8_mc30_c(), subtract_mean_new(), subtract_mean_old(), transform(), and unpremultiply16yuv().

◆ half3()

static uint8_t half3 ( int  a,
int  b,
int  c 
)
static

Definition at line 543 of file mobiclip.c.

Referenced by half_horz(), half_vert(), and pick_7().

◆ pick_above()

static uint8_t pick_above ( BlockXY  bxy)
static

Definition at line 548 of file mobiclip.c.

Referenced by predict_intra().

◆ pick_left()

static uint8_t pick_left ( BlockXY  bxy)
static

Definition at line 555 of file mobiclip.c.

Referenced by predict_intra().

◆ half_horz()

static uint8_t half_horz ( BlockXY  bxy)
static

Definition at line 562 of file mobiclip.c.

Referenced by pick_5(), pick_6(), and pick_8().

◆ half_vert()

static uint8_t half_vert ( BlockXY  bxy)
static

Definition at line 572 of file mobiclip.c.

Referenced by mm_decode_inter(), mm_decode_intra(), pick_4(), pick_5(), and pick_6().

◆ pick_4()

static uint8_t pick_4 ( BlockXY  bxy)
static

Definition at line 582 of file mobiclip.c.

Referenced by predict_intra().

◆ pick_5()

static uint8_t pick_5 ( BlockXY  bxy)
static

Definition at line 613 of file mobiclip.c.

Referenced by predict_intra().

◆ pick_6()

static uint8_t pick_6 ( BlockXY  bxy)
static

Definition at line 653 of file mobiclip.c.

Referenced by predict_intra().

◆ pick_7()

static uint8_t pick_7 ( BlockXY  bxy)
static

Definition at line 693 of file mobiclip.c.

Referenced by predict_intra().

◆ pick_8()

static uint8_t pick_8 ( BlockXY  bxy)
static

Definition at line 725 of file mobiclip.c.

Referenced by predict_intra().

◆ block_fill_simple()

static void block_fill_simple ( uint8_t *  block,
int  size,
int  linesize,
int  fill 
)
static

Definition at line 776 of file mobiclip.c.

Referenced by predict_intra().

◆ block_fill()

static void block_fill ( uint8_t *  block,
int  size,
int  linesize,
int  w,
int  h,
int  ax,
int  ay,
uint8_t(*)(BlockXY bxy)  pick 
)
static

Definition at line 784 of file mobiclip.c.

Referenced by predict_intra().

◆ block_sum()

static int block_sum ( const uint8_t *  block,
int  w,
int  h,
int  linesize 
)
static

Definition at line 812 of file mobiclip.c.

Referenced by encode_block(), and predict_intra().

◆ predict_intra()

static int predict_intra ( AVCodecContext avctx,
AVFrame frame,
int  ax,
int  ay,
int  pmode,
int  add_coeffs,
int  size,
int  plane 
)
static

Definition at line 826 of file mobiclip.c.

Referenced by decode_macroblock(), and process_block().

◆ get_prediction()

static int get_prediction ( AVCodecContext avctx,
int  x,
int  y,
int  size 
)
static

Definition at line 926 of file mobiclip.c.

Referenced by process_block().

◆ process_block()

static int process_block ( AVCodecContext avctx,
AVFrame frame,
int  x,
int  y,
int  pmode,
int  has_coeffs,
int  plane 
)
static

Definition at line 948 of file mobiclip.c.

Referenced by decode_macroblock().

◆ decode_macroblock()

static int decode_macroblock ( AVCodecContext avctx,
AVFrame frame,
int  x,
int  y,
int  predict 
)
static

Definition at line 989 of file mobiclip.c.

Referenced by mobiclip_decode().

◆ get_index()

static int get_index ( int  x)
static

Definition at line 1069 of file mobiclip.c.

Referenced by predict_motion().

◆ predict_motion()

static int predict_motion ( AVCodecContext avctx,
int  width,
int  height,
int  index,
int  offsetm,
int  offsetx,
int  offsety 
)
static

Definition at line 1074 of file mobiclip.c.

Referenced by mobiclip_decode().

◆ mobiclip_decode()

static int mobiclip_decode ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket pkt 
)
static

Definition at line 1207 of file mobiclip.c.

◆ mobiclip_flush()

static void mobiclip_flush ( AVCodecContext avctx)
static

Definition at line 1317 of file mobiclip.c.

◆ mobiclip_close()

static av_cold int mobiclip_close ( AVCodecContext avctx)
static

Definition at line 1325 of file mobiclip.c.

Variable Documentation

◆ zigzag4x4_tab

const uint8_t zigzag4x4_tab[]
static
Initial value:
=
{
0x00, 0x04, 0x01, 0x02, 0x05, 0x08, 0x0C, 0x09, 0x06, 0x03, 0x07, 0x0A,
0x0D, 0x0E, 0x0B, 0x0F
}

Definition at line 40 of file mobiclip.c.

Referenced by add_coefficients().

◆ quant4x4_tab

const uint8_t quant4x4_tab[][16]
static
Initial value:
=
{
{ 10, 13, 13, 10, 16, 10, 13, 13, 13, 13, 16, 10, 16, 13, 13, 16 },
{ 11, 14, 14, 11, 18, 11, 14, 14, 14, 14, 18, 11, 18, 14, 14, 18 },
{ 13, 16, 16, 13, 20, 13, 16, 16, 16, 16, 20, 13, 20, 16, 16, 20 },
{ 14, 18, 18, 14, 23, 14, 18, 18, 18, 18, 23, 14, 23, 18, 18, 23 },
{ 16, 20, 20, 16, 25, 16, 20, 20, 20, 20, 25, 16, 25, 20, 20, 25 },
{ 18, 23, 23, 18, 29, 18, 23, 23, 23, 23, 29, 18, 29, 23, 23, 29 },
}

Definition at line 46 of file mobiclip.c.

Referenced by setup_qtables().

◆ quant8x8_tab

const uint8_t quant8x8_tab[][64]
static
Initial value:
=
{
{ 20, 19, 19, 25, 18, 25, 19, 24, 24, 19, 20, 18, 32, 18, 20, 19, 19, 24, 24, 19, 19, 25, 18, 25, 18, 25, 18, 25, 19, 24, 24, 19,
19, 24, 24, 19, 18, 32, 18, 20, 18, 32, 18, 24, 24, 19, 19, 24, 24, 18, 25, 18, 25, 18, 19, 24, 24, 19, 18, 32, 18, 24, 24, 18,},
{ 22, 21, 21, 28, 19, 28, 21, 26, 26, 21, 22, 19, 35, 19, 22, 21, 21, 26, 26, 21, 21, 28, 19, 28, 19, 28, 19, 28, 21, 26, 26, 21,
21, 26, 26, 21, 19, 35, 19, 22, 19, 35, 19, 26, 26, 21, 21, 26, 26, 19, 28, 19, 28, 19, 21, 26, 26, 21, 19, 35, 19, 26, 26, 19,},
{ 26, 24, 24, 33, 23, 33, 24, 31, 31, 24, 26, 23, 42, 23, 26, 24, 24, 31, 31, 24, 24, 33, 23, 33, 23, 33, 23, 33, 24, 31, 31, 24,
24, 31, 31, 24, 23, 42, 23, 26, 23, 42, 23, 31, 31, 24, 24, 31, 31, 23, 33, 23, 33, 23, 24, 31, 31, 24, 23, 42, 23, 31, 31, 23,},
{ 28, 26, 26, 35, 25, 35, 26, 33, 33, 26, 28, 25, 45, 25, 28, 26, 26, 33, 33, 26, 26, 35, 25, 35, 25, 35, 25, 35, 26, 33, 33, 26,
26, 33, 33, 26, 25, 45, 25, 28, 25, 45, 25, 33, 33, 26, 26, 33, 33, 25, 35, 25, 35, 25, 26, 33, 33, 26, 25, 45, 25, 33, 33, 25,},
{ 32, 30, 30, 40, 28, 40, 30, 38, 38, 30, 32, 28, 51, 28, 32, 30, 30, 38, 38, 30, 30, 40, 28, 40, 28, 40, 28, 40, 30, 38, 38, 30,
30, 38, 38, 30, 28, 51, 28, 32, 28, 51, 28, 38, 38, 30, 30, 38, 38, 28, 40, 28, 40, 28, 30, 38, 38, 30, 28, 51, 28, 38, 38, 28,},
{ 36, 34, 34, 46, 32, 46, 34, 43, 43, 34, 36, 32, 58, 32, 36, 34, 34, 43, 43, 34, 34, 46, 32, 46, 32, 46, 32, 46, 34, 43, 43, 34,
34, 43, 43, 34, 32, 58, 32, 36, 32, 58, 32, 43, 43, 34, 34, 43, 43, 32, 46, 32, 46, 32, 34, 43, 43, 34, 32, 58, 32, 43, 43, 32,},
}

Definition at line 56 of file mobiclip.c.

Referenced by setup_qtables().

◆ block4x4_coefficients_tab

const uint8_t block4x4_coefficients_tab[]
static
Initial value:
=
{
15, 0, 2, 1, 4, 8, 12, 3, 11, 13, 14, 7, 10, 5, 9, 6,
}

Definition at line 72 of file mobiclip.c.

Referenced by process_block().

◆ pframe_block4x4_coefficients_tab

const uint8_t pframe_block4x4_coefficients_tab[]
static
Initial value:
=
{
0, 4, 1, 8, 2, 12, 3, 5, 10, 15, 7, 13, 14, 11, 9, 6,
}

Definition at line 77 of file mobiclip.c.

Referenced by add_pframe_coefficients().

◆ block8x8_coefficients_tab

const uint8_t block8x8_coefficients_tab[]
static
Initial value:
=
{
0x00, 0x1F, 0x3F, 0x0F, 0x08, 0x04, 0x02, 0x01, 0x0B, 0x0E, 0x1B, 0x0D,
0x03, 0x07, 0x0C, 0x17, 0x1D, 0x0A, 0x1E, 0x05, 0x10, 0x2F, 0x37, 0x3B,
0x13, 0x3D, 0x3E, 0x09, 0x1C, 0x06, 0x15, 0x1A, 0x33, 0x11, 0x12, 0x14,
0x18, 0x20, 0x3C, 0x35, 0x19, 0x16, 0x3A, 0x30, 0x31, 0x32, 0x27, 0x34,
0x2B, 0x2D, 0x39, 0x38, 0x23, 0x36, 0x2E, 0x21, 0x25, 0x22, 0x24, 0x2C,
0x2A, 0x28, 0x29, 0x26,
}

Definition at line 82 of file mobiclip.c.

Referenced by decode_macroblock().

◆ pframe_block8x8_coefficients_tab

const uint8_t pframe_block8x8_coefficients_tab[]
static
Initial value:
=
{
0x00, 0x0F, 0x04, 0x01, 0x08, 0x02, 0x0C, 0x03, 0x05, 0x0A, 0x0D, 0x07, 0x0E, 0x0B, 0x1F, 0x09,
0x06, 0x10, 0x3F, 0x1E, 0x17, 0x1D, 0x1B, 0x1C, 0x13, 0x18, 0x1A, 0x12, 0x11, 0x14, 0x15, 0x20,
0x2F, 0x16, 0x19, 0x37, 0x3D, 0x3E, 0x3B, 0x3C, 0x33, 0x35, 0x21, 0x24, 0x22, 0x28, 0x23, 0x2C,
0x30, 0x27, 0x2D, 0x25, 0x3A, 0x2B, 0x2E, 0x2A, 0x31, 0x34, 0x38, 0x32, 0x29, 0x26, 0x39, 0x36
}

Definition at line 92 of file mobiclip.c.

Referenced by mobiclip_decode().

◆ run_residue

const uint8_t run_residue[2][256]
static
Initial value:
=
{
{
12, 6, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 27, 11, 7, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 41, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
},
{
27, 10, 5, 4, 3, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
8, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 15, 10, 8, 4, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 21, 7, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
},
}

Definition at line 100 of file mobiclip.c.

Referenced by add_coefficients().

◆ bits0

const uint8_t bits0[]
static
Initial value:
= {
9, 11, 11, 11, 11, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7, 10, 10, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 5, 5, 5, 4, 2, 3, 4, 4,
}

Definition at line 124 of file mobiclip.c.

Referenced by mobiclip_init_static().

◆ syms0

const uint16_t syms0[]
static
Initial value:
= {
0x0, 0x822, 0x803, 0xB, 0xA, 0xB81, 0xB61, 0xB41, 0xB21, 0x122,
0x102, 0xE2, 0xC2, 0xA2, 0x63, 0x43, 0x24, 0xC, 0x25, 0x2E1, 0x301,
0xBA1, 0xBC1, 0xBE1, 0xC01, 0x26, 0x44, 0x83, 0xA3, 0xC3, 0x142,
0x321, 0x341, 0xC21, 0xC41, 0xC61, 0xC81, 0xCA1, 0xCC1, 0xCE1, 0xD01,
0x0, 0x9, 0x8, 0xB01, 0xAE1, 0xAC1, 0xAA1, 0xA81, 0xA61, 0xA41, 0xA21,
0x802, 0x2C1, 0x2A1, 0x281, 0x261, 0x241, 0x221, 0x201, 0x1E1, 0x82,
0x62, 0x7, 0x6, 0xA01, 0x9E1, 0x9C1, 0x9A1, 0x981, 0x961, 0x941, 0x921,
0x1C1, 0x1A1, 0x42, 0x23, 0x5, 0x901, 0x8E1, 0x8C1, 0x8A1, 0x181, 0x161,
0x141, 0x4, 0x881, 0x861, 0x841, 0x821, 0x121, 0x101, 0xE1, 0xC1, 0x22,
0x3, 0xA1, 0x81, 0x61, 0x801, 0x1, 0x21, 0x41, 0x2,
}

Definition at line 134 of file mobiclip.c.

Referenced by mobiclip_init_static().

◆ syms1

const uint16_t syms1[]
static
Initial value:
= {
0x0, 0x807, 0x806, 0x16, 0x15, 0x842, 0x823, 0x805, 0x1A1, 0xA3, 0x102, 0x83,
0x64, 0x44, 0x27, 0x14, 0x13, 0x17, 0x18, 0x28, 0x122, 0x862, 0x882, 0x9E1, 0xA01,
0x19, 0x1A, 0x1B, 0x29, 0xC3, 0x2A, 0x45, 0xE3, 0x1C1, 0x808, 0x8A2, 0x8C2, 0xA21,
0xA41, 0xA61, 0xA81, 0x0, 0x12, 0x11, 0x9C1, 0x9A1, 0x981, 0x961, 0x941, 0x822, 0x804,
0x181, 0x161, 0xE2, 0xC2, 0xA2, 0x63, 0x43, 0x26, 0x25, 0x10, 0x82, 0xF, 0xE, 0xD, 0x901,
0x8E1, 0x8C1, 0x803, 0x141, 0x121, 0x101, 0x921, 0x62, 0x24, 0xC, 0xB, 0xA, 0x881, 0x861,
0xC1, 0x8A1, 0xE1, 0x42, 0x23, 0x9, 0x802, 0xA1, 0x841, 0x821, 0x81, 0x61, 0x8, 0x7, 0x22,
0x6, 0x41, 0x5, 0x4, 0x801, 0x1, 0x2, 0x21, 0x3,
}

Definition at line 147 of file mobiclip.c.

Referenced by mobiclip_init_static().

◆ mv_len

const uint8_t mv_len[16]
static
Initial value:
=
{
10, 8, 8, 7, 8, 8, 8, 7, 8, 8, 8, 7, 7, 7, 7, 6,
}

Definition at line 158 of file mobiclip.c.

Referenced by mobiclip_init_static().

◆ mv_bits

const uint8_t mv_bits[2][16][10]
static

Definition at line 163 of file mobiclip.c.

Referenced by merge_context_after_encode(), and mobiclip_init_static().

◆ mv_syms

const uint8_t mv_syms[2][16][10]
static

Definition at line 203 of file mobiclip.c.

Referenced by clv_init_static(), and mobiclip_init_static().

◆ rl_vlc

const VLCElem* rl_vlc[2]
static

◆ mv_vlc

const VLCElem* mv_vlc[2][16]
static

Definition at line 278 of file mobiclip.c.

Referenced by mobiclip_decode(), mobiclip_init_static(), and predict_motion().

◆ ff_mobiclip_decoder

const FFCodec ff_mobiclip_decoder
Initial value:
= {
.p.name = "mobiclip",
CODEC_LONG_NAME("MobiClip Video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(MobiClipContext),
.flush = mobiclip_flush,
.close = mobiclip_close,
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 1341 of file mobiclip.c.

mobiclip_flush
static void mobiclip_flush(AVCodecContext *avctx)
Definition: mobiclip.c:1317
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
AV_CODEC_ID_MOBICLIP
@ AV_CODEC_ID_MOBICLIP
Definition: codec_id.h:304
MobiClipContext
Definition: mobiclip.c:256
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
mobiclip_close
static av_cold int mobiclip_close(AVCodecContext *avctx)
Definition: mobiclip.c:1325
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
mobiclip_decode
static int mobiclip_decode(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *pkt)
Definition: mobiclip.c:1207
mobiclip_init
static av_cold int mobiclip_init(AVCodecContext *avctx)
Definition: mobiclip.c:301
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201