FFmpeg
|
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "motion_est.h"
#include "mpegpicture.h"
#include "mpegutils.h"
Go to the source code of this file.
Macros | |
#define | MAKE_WRITABLE(table) |
#define | UPDATE_TABLE(table) |
#define MAKE_WRITABLE | ( | table | ) |
Referenced by make_tables_writable().
#define UPDATE_TABLE | ( | table | ) |
Referenced by ff_update_picture_tables().
Definition at line 31 of file mpegpicture.c.
Referenced by ff_alloc_picture().
int ff_mpeg_framesize_alloc | ( | AVCodecContext * | avctx, |
MotionEstContext * | me, | ||
ScratchpadContext * | sc, | ||
int | linesize | ||
) |
Definition at line 56 of file mpegpicture.c.
Referenced by alloc_frame_buffer(), ff_mpeg_update_thread_context(), and ff_update_duplicate_context().
|
static |
Allocate a frame buffer.
Definition at line 98 of file mpegpicture.c.
Referenced by ff_alloc_picture().
|
static |
Definition at line 181 of file mpegpicture.c.
Referenced by ff_alloc_picture().
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
Definition at line 228 of file mpegpicture.c.
Referenced by alloc_picture().
void ff_mpeg_unref_picture | ( | AVCodecContext * | avctx, |
Picture * | pic | ||
) |
Deallocate a picture.
Definition at line 291 of file mpegpicture.c.
Referenced by alloc_frame_buffer(), ff_alloc_picture(), ff_find_unused_picture(), ff_mpeg_flush(), ff_mpeg_ref_picture(), ff_mpeg_update_thread_context(), ff_mpv_common_end(), ff_mpv_encode_end(), ff_mpv_encode_picture(), ff_mpv_frame_start(), frame_start(), and select_input_picture().
Definition at line 313 of file mpegpicture.c.
Referenced by ff_mpeg_ref_picture().
int ff_mpeg_ref_picture | ( | AVCodecContext * | avctx, |
Picture * | dst, | ||
Picture * | src | ||
) |
Definition at line 358 of file mpegpicture.c.
Referenced by ff_mpeg_update_thread_context(), ff_mpv_frame_start(), frame_start(), and select_input_picture().
Definition at line 399 of file mpegpicture.c.
Referenced by find_unused_picture().
|
static |
Definition at line 408 of file mpegpicture.c.
Referenced by ff_find_unused_picture().
int ff_find_unused_picture | ( | AVCodecContext * | avctx, |
Picture * | picture, | ||
int | shared | ||
) |
Definition at line 441 of file mpegpicture.c.
Referenced by ff_h263_decode_frame(), ff_mpv_frame_start(), load_input_picture(), and select_input_picture().
Definition at line 455 of file mpegpicture.c.
Referenced by ff_alloc_picture(), ff_find_unused_picture(), ff_mpeg_unref_picture(), ff_mpv_common_end(), and ff_mpv_encode_end().