FFmpeg
Functions
mpegutils.c File Reference
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/frame.h"
#include "libavutil/pixdesc.h"
#include "libavutil/motion_vector.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "mpegutils.h"

Go to the source code of this file.

Functions

static int add_mb (AVMotionVector *mb, uint32_t mb_type, int dst_x, int dst_y, int motion_x, int motion_y, int motion_scale, int direction)
 
void ff_draw_horiz_band (AVCodecContext *avctx, const AVFrame *cur, const AVFrame *last, int y, int h, int picture_structure, int first_field, int low_delay)
 Draw a horizontal band if supported. More...
 
static char get_type_mv_char (int mb_type)
 
static char get_segmentation_char (int mb_type)
 
static char get_interlacement_char (int mb_type)
 
void ff_print_debug_info2 (AVCodecContext *avctx, AVFrame *pict, const uint8_t *mbskip_table, const uint32_t *mbtype_table, const int8_t *qscale_table, int16_t(*const motion_val[2])[2], int mb_width, int mb_height, int mb_stride, int quarter_sample)
 Print debugging info for the given picture. More...
 

Function Documentation

◆ add_mb()

static int add_mb ( AVMotionVector mb,
uint32_t  mb_type,
int  dst_x,
int  dst_y,
int  motion_x,
int  motion_y,
int  motion_scale,
int  direction 
)
static

Definition at line 32 of file mpegutils.c.

Referenced by ff_print_debug_info2().

◆ ff_draw_horiz_band()

void ff_draw_horiz_band ( AVCodecContext avctx,
const AVFrame cur,
const AVFrame last,
int  y,
int  h,
int  picture_structure,
int  first_field,
int  low_delay 
)

Draw a horizontal band if supported.

Parameters
his the normal height, this will be reduced automatically if needed

Definition at line 51 of file mpegutils.c.

Referenced by ff_intrax8_decode_picture(), ff_mpeg_draw_horiz_band(), and svq3_decode_frame().

◆ get_type_mv_char()

static char get_type_mv_char ( int  mb_type)
static

Definition at line 103 of file mpegutils.c.

Referenced by ff_print_debug_info2().

◆ get_segmentation_char()

static char get_segmentation_char ( int  mb_type)
static

Definition at line 134 of file mpegutils.c.

Referenced by ff_print_debug_info2().

◆ get_interlacement_char()

static char get_interlacement_char ( int  mb_type)
static

Definition at line 148 of file mpegutils.c.

Referenced by ff_print_debug_info2().

◆ ff_print_debug_info2()

void ff_print_debug_info2 ( AVCodecContext avctx,
AVFrame pict,
const uint8_t *  mbskip_table,
const uint32_t *  mbtype_table,
const int8_t *  qscale_table,
int16_t(*[2])  motion_val[2],
int  mb_width,
int  mb_height,
int  mb_stride,
int  quarter_sample 
)

Print debugging info for the given picture.

Definition at line 156 of file mpegutils.c.

Referenced by ff_print_debug_info(), and finalize_frame().