FFmpeg
Functions | Variables
speedhqenc.c File Reference
#include "libavutil/pixdesc.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "mpeg12.h"
#include "mpegvideo.h"
#include "speedhqenc.h"

Go to the source code of this file.

Functions

static av_cold void speedhq_init_static_data (void)
 
av_cold int ff_speedhq_encode_init (MpegEncContext *s)
 
void ff_speedhq_encode_picture_header (MpegEncContext *s)
 
void ff_speedhq_end_slice (MpegEncContext *s)
 
static void encode_dc (PutBitContext *pb, int diff, int component)
 
static void encode_block (MpegEncContext *s, int16_t *block, int n)
 
void ff_speedhq_encode_mb (MpegEncContext *s, int16_t block[12][64])
 
static int ff_speedhq_mb_rows_in_slice (int slice_num, int mb_height)
 
int ff_speedhq_mb_y_order_to_mb (int mb_y_order, int mb_height, int *first_in_slice)
 

Variables

RLTable ff_rl_speedhq
 
static uint8_t speedhq_static_rl_table_store [2][2 *MAX_RUN+MAX_LEVEL+3]
 
static const uint16_t mpeg12_vlc_dc_lum_code_reversed [12]
 
static const uint16_t mpeg12_vlc_dc_chroma_code_reversed [12]
 
static uint32_t speedhq_lum_dc_uni [512]
 
static uint32_t speedhq_chr_dc_uni [512]
 
static uint8_t uni_speedhq_ac_vlc_len [64 *64 *2]
 

Detailed Description

SpeedHQ encoder.

Definition in file speedhqenc.c.

Function Documentation

◆ speedhq_init_static_data()

static av_cold void speedhq_init_static_data ( void  )
static

Definition at line 56 of file speedhqenc.c.

Referenced by ff_speedhq_encode_init().

◆ ff_speedhq_encode_init()

av_cold int ff_speedhq_encode_init ( MpegEncContext s)

Definition at line 85 of file speedhqenc.c.

Referenced by ff_mpv_encode_init().

◆ ff_speedhq_encode_picture_header()

void ff_speedhq_encode_picture_header ( MpegEncContext s)

Definition at line 123 of file speedhqenc.c.

Referenced by encode_picture().

◆ ff_speedhq_end_slice()

void ff_speedhq_end_slice ( MpegEncContext s)

Definition at line 133 of file speedhqenc.c.

Referenced by encode_thread(), and write_slice_end().

◆ encode_dc()

static void encode_dc ( PutBitContext pb,
int  diff,
int  component 
)
inlinestatic

Definition at line 146 of file speedhqenc.c.

Referenced by encode_block().

◆ encode_block()

static void encode_block ( MpegEncContext s,
int16_t *  block,
int  n 
)
static

Definition at line 180 of file speedhqenc.c.

Referenced by ff_speedhq_encode_mb().

◆ ff_speedhq_encode_mb()

void ff_speedhq_encode_mb ( MpegEncContext s,
int16_t  block[12][64] 
)

Definition at line 228 of file speedhqenc.c.

Referenced by encode_mb_internal().

◆ ff_speedhq_mb_rows_in_slice()

static int ff_speedhq_mb_rows_in_slice ( int  slice_num,
int  mb_height 
)
static

Definition at line 251 of file speedhqenc.c.

Referenced by ff_speedhq_mb_y_order_to_mb().

◆ ff_speedhq_mb_y_order_to_mb()

int ff_speedhq_mb_y_order_to_mb ( int  mb_y_order,
int  mb_height,
int first_in_slice 
)

Definition at line 256 of file speedhqenc.c.

Referenced by encode_thread().

Variable Documentation

◆ ff_rl_speedhq

RLTable ff_rl_speedhq

Definition at line 137 of file speedhq.c.

Referenced by encode_block(), and speedhq_init_static_data().

◆ speedhq_static_rl_table_store

uint8_t speedhq_static_rl_table_store[2][2 *MAX_RUN+MAX_LEVEL+3]
static

Definition at line 39 of file speedhqenc.c.

Referenced by speedhq_init_static_data().

◆ mpeg12_vlc_dc_lum_code_reversed

const uint16_t mpeg12_vlc_dc_lum_code_reversed[12]
static
Initial value:
= {
0x1, 0x0, 0x2, 0x5, 0x3, 0x7, 0xF, 0x1F, 0x3F, 0x7F, 0xFF, 0x1FF
}

Definition at line 42 of file speedhqenc.c.

Referenced by encode_dc(), and speedhq_init_static_data().

◆ mpeg12_vlc_dc_chroma_code_reversed

const uint16_t mpeg12_vlc_dc_chroma_code_reversed[12]
static
Initial value:
= {
0x0, 0x2, 0x1, 0x3, 0x7, 0xF, 0x1F, 0x3F, 0x7F, 0xFF, 0x1FF, 0x3FF
}

Definition at line 45 of file speedhqenc.c.

Referenced by encode_dc(), and speedhq_init_static_data().

◆ speedhq_lum_dc_uni

uint32_t speedhq_lum_dc_uni[512]
static

Definition at line 51 of file speedhqenc.c.

Referenced by encode_dc(), and speedhq_init_static_data().

◆ speedhq_chr_dc_uni

uint32_t speedhq_chr_dc_uni[512]
static

Definition at line 52 of file speedhqenc.c.

Referenced by encode_dc(), and speedhq_init_static_data().

◆ uni_speedhq_ac_vlc_len

uint8_t uni_speedhq_ac_vlc_len[64 *64 *2]
static

Definition at line 54 of file speedhqenc.c.

Referenced by ff_speedhq_encode_init(), and speedhq_init_static_data().