FFmpeg
|
H.264 / AVC / MPEG4 part10 reference picture handling. More...
#include "libavutil/avassert.h"
#include "internal.h"
#include "avcodec.h"
#include "h264.h"
#include "golomb.h"
#include <assert.h>
Go to the source code of this file.
Functions | |
static void | pic_as_field (Picture *pic, const int parity) |
static int | split_field_copy (Picture *dest, Picture *src, int parity, int id_add) |
static int | build_def_list (Picture *def, Picture **in, int len, int is_long, int sel) |
static int | add_sorted (Picture **sorted, Picture **src, int len, int limit, int dir) |
int | ff_h264_fill_default_ref_list (H264Context *h) |
Fill the default_ref_list. | |
static void | print_short_term (H264Context *h) |
print short term list | |
static void | print_long_term (H264Context *h) |
print long term list | |
static int | pic_num_extract (H264Context *h, int pic_num, int *structure) |
Extract structure information about the picture described by pic_num in the current decoding context (frame or field). | |
int | ff_h264_decode_ref_pic_list_reordering (H264Context *h) |
void | ff_h264_fill_mbaff_ref_list (H264Context *h) |
static int | unreference_pic (H264Context *h, Picture *pic, int refmask) |
Mark a picture as no longer needed for reference. | |
static Picture * | find_short (H264Context *h, int frame_num, int *idx) |
Find a Picture in the short term reference list by frame number. | |
static void | remove_short_at_index (H264Context *h, int i) |
Remove a picture from the short term reference list by its index in that list. | |
static Picture * | remove_short (H264Context *h, int frame_num, int ref_mask) |
static Picture * | remove_long (H264Context *h, int i, int ref_mask) |
Remove a picture from the long term reference list by its index in that list. | |
void | ff_h264_remove_all_refs (H264Context *h) |
static int | check_opcodes (MMCO *mmco1, MMCO *mmco2, int n_mmcos) |
int | ff_generate_sliding_window_mmcos (H264Context *h, int first_slice) |
int | ff_h264_execute_ref_pic_marking (H264Context *h, MMCO *mmco, int mmco_count) |
Execute the reference picture marking (memory management control operations). | |
int | ff_h264_decode_ref_pic_marking (H264Context *h, GetBitContext *gb, int first_slice) |
H.264 / AVC / MPEG4 part10 reference picture handling.
Definition in file h264_refs.c.
Definition at line 38 of file h264_refs.c.
Referenced by ff_h264_decode_ref_pic_list_reordering(), and split_field_copy().
Definition at line 49 of file h264_refs.c.
Referenced by build_def_list().
Definition at line 65 of file h264_refs.c.
Referenced by ff_h264_fill_default_ref_list().
Definition at line 87 of file h264_refs.c.
Referenced by ff_h264_fill_default_ref_list().
int ff_h264_fill_default_ref_list | ( | H264Context * | h | ) |
Fill the default_ref_list.
Definition at line 108 of file h264_refs.c.
Referenced by decode_slice_header().
|
static |
print short term list
Definition at line 450 of file h264_refs.c.
Referenced by ff_h264_decode_ref_pic_list_reordering(), and ff_h264_execute_ref_pic_marking().
|
static |
print long term list
Definition at line 465 of file h264_refs.c.
Referenced by ff_h264_decode_ref_pic_list_reordering(), and ff_h264_execute_ref_pic_marking().
|
static |
Extract structure information about the picture described by pic_num in the current decoding context (frame or field).
Note that pic_num is picture number without wrapping (so, 0<=pic_num<max_pic_num).
pic_num | picture number for which to extract structure information |
structure | one of PICT_XXX describing structure of picture with pic_num |
Definition at line 172 of file h264_refs.c.
Referenced by ff_h264_decode_ref_pic_list_reordering(), and ff_h264_execute_ref_pic_marking().
int ff_h264_decode_ref_pic_list_reordering | ( | H264Context * | h | ) |
Definition at line 184 of file h264_refs.c.
Referenced by decode_slice_header().
void ff_h264_fill_mbaff_ref_list | ( | H264Context * | h | ) |
Definition at line 300 of file h264_refs.c.
Referenced by decode_slice_header().
|
inlinestatic |
Mark a picture as no longer needed for reference.
The refmask argument allows unreferencing of individual fields or the whole frame. If the picture becomes entirely unreferenced, but is being held for display purposes, it is marked as such.
refmask | mask of fields to unreference; the mask is bitwise anded with the reference marking of pic |
Definition at line 338 of file h264_refs.c.
Referenced by ff_h264_remove_all_refs(), remove_long(), and remove_short().
|
static |
Find a Picture in the short term reference list by frame number.
frame_num | frame number to search for |
idx | the index into h->short_ref where returned picture is found undefined if no picture found. |
Definition at line 360 of file h264_refs.c.
Referenced by ff_h264_execute_ref_pic_marking(), and remove_short().
|
static |
Remove a picture from the short term reference list by its index in that list.
This does no checking on the provided index; it is assumed to be valid. Other list entries are shifted down.
i | index into h->short_ref of picture to remove. |
Definition at line 381 of file h264_refs.c.
Referenced by ff_h264_execute_ref_pic_marking(), and remove_short().
|
static |
Definition at line 392 of file h264_refs.c.
Referenced by ff_h264_execute_ref_pic_marking().
|
static |
Remove a picture from the long term reference list by its index in that list.
Definition at line 413 of file h264_refs.c.
Referenced by ff_h264_execute_ref_pic_marking(), and ff_h264_remove_all_refs().
void ff_h264_remove_all_refs | ( | H264Context * | h | ) |
Definition at line 429 of file h264_refs.c.
Referenced by h264_decode_end(), and idr().
Definition at line 479 of file h264_refs.c.
Referenced by ff_generate_sliding_window_mmcos(), and ff_h264_decode_ref_pic_marking().
int ff_generate_sliding_window_mmcos | ( | H264Context * | h, |
int | first_slice | ||
) |
Definition at line 494 of file h264_refs.c.
Referenced by decode_slice_header(), and ff_h264_decode_ref_pic_marking().
int ff_h264_execute_ref_pic_marking | ( | H264Context * | h, |
MMCO * | mmco, | ||
int | mmco_count | ||
) |
Execute the reference picture marking (memory management control operations).
Definition at line 526 of file h264_refs.c.
Referenced by decode_slice_header(), decode_update_thread_context(), and field_end().
int ff_h264_decode_ref_pic_marking | ( | H264Context * | h, |
GetBitContext * | gb, | ||
int | first_slice | ||
) |
Definition at line 692 of file h264_refs.c.
Referenced by decode_slice_header().