FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mpegpicture.h File Reference
#include <stdint.h>
#include "libavutil/frame.h"
#include "avcodec.h"
#include "motion_est.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  ScratchpadContext
 
struct  Picture
 Picture. More...
 

Macros

#define MAX_PICTURE_COUNT   36
 
#define EDGE_WIDTH   16
 

Functions

int ff_alloc_picture (AVCodecContext *avctx, Picture *pic, MotionEstContext *me, ScratchpadContext *sc, int shared, int encoding, int chroma_x_shift, int chroma_y_shift, int out_format, int mb_stride, int mb_width, int mb_height, int b8_stride, ptrdiff_t *linesize, ptrdiff_t *uvlinesize)
 Allocate a Picture. More...
 
int ff_mpeg_framesize_alloc (AVCodecContext *avctx, MotionEstContext *me, ScratchpadContext *sc, int linesize)
 
int ff_mpeg_ref_picture (AVCodecContext *avctx, Picture *dst, Picture *src)
 
void ff_mpeg_unref_picture (AVCodecContext *avctx, Picture *picture)
 Deallocate a picture. More...
 
void ff_free_picture_tables (Picture *pic)
 
int ff_update_picture_tables (Picture *dst, Picture *src)
 
int ff_find_unused_picture (AVCodecContext *avctx, Picture *picture, int shared)
 

Macro Definition Documentation

#define MAX_PICTURE_COUNT   36
#define EDGE_WIDTH   16

Function Documentation

int ff_alloc_picture ( AVCodecContext avctx,
Picture pic,
MotionEstContext me,
ScratchpadContext sc,
int  shared,
int  encoding,
int  chroma_x_shift,
int  chroma_y_shift,
int  out_format,
int  mb_stride,
int  mb_width,
int  mb_height,
int  b8_stride,
ptrdiff_t *  linesize,
ptrdiff_t *  uvlinesize 
)

Allocate a Picture.

The pixels are allocated/set by calling get_buffer() if shared = 0.

The pixels are allocated/set by calling get_buffer() if shared = 0

Definition at line 231 of file mpegpicture.c.

Referenced by alloc_picture().

int ff_mpeg_framesize_alloc ( AVCodecContext avctx,
MotionEstContext me,
ScratchpadContext sc,
int  linesize 
)
int ff_mpeg_ref_picture ( AVCodecContext avctx,
Picture dst,
Picture src 
)
void ff_mpeg_unref_picture ( AVCodecContext avctx,
Picture picture 
)
void ff_free_picture_tables ( Picture pic)
int ff_update_picture_tables ( Picture dst,
Picture src 
)

Definition at line 316 of file mpegpicture.c.

Referenced by ff_mpeg_ref_picture().

int ff_find_unused_picture ( AVCodecContext avctx,
Picture picture,
int  shared 
)