image.h File Reference

prototypes for image.c More...

#include "mbuffer.h"

Include dependency graph for image.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void calculate_frame_no (StorablePicture *p)
void find_snr (struct snr_par *snr, StorablePicture *p, int *p_ref)
int picture_order (ImageParameters *img)
void decode_one_slice (ImageParameters *img, Slice *currSlice, struct inp_par *inp)
int read_new_slice (Slice *currSlice)
void exit_picture (StorablePicture **dec_picture)
int decode_one_frame (ImageParameters *img, struct inp_par *inp, struct snr_par *snr)
int is_new_picture (StorablePicture *dec_picture, Slice *currSlice, OldSliceParams *p_old_slice)
void init_old_slice (OldSliceParams *p_old_slice)
void copy_dec_picture_JV (StorablePicture *dst, StorablePicture *src)
void frame_postprocessing (ImageParameters *img)
void field_postprocessing (ImageParameters *img)

Variables

StorablePicture * dec_picture
StorablePicture * dec_picture_JV [MAX_PLANE]


Detailed Description

prototypes for image.c

Definition in file image.h.


Function Documentation

void calculate_frame_no ( StorablePicture *  p  ) 

Calculate the value of frame_no.

Definition at line 725 of file image.c.

References params, and storable_picture::poc.

Referenced by direct_output(), and insert_picture_in_dpb().

void copy_dec_picture_JV ( StorablePicture *  dst,
StorablePicture *  src 
)

int decode_one_frame ( ImageParameters *  img,
struct inp_par *  inp,
struct snr_par *  snr 
)

decodes one I- or P-frame

Definition at line 551 of file image.c.

References EOS, Error_tracking(), exit_picture(), Is_primary_correct, Is_redundant_correct, Slice::next_header, previous_frame_num, read_new_slice(), ref_flag, and SOP.

Referenced by main().

Here is the call graph for this function:

void decode_one_slice ( ImageParameters *  img,
Slice *  currSlice,
struct inp_par *  inp 
)

void exit_picture ( StorablePicture **  dec_picture  ) 

finish decoding of a picture, conceal errors and store it into the DPB

this is always true at the beginning of a picture

mark the start of the first segment

generate the segments according to the macroblock map

stop current segment

mark current segment as lost or OK

next segment

start new segment

save start MB for this segment

mark end of the last segment

call the right error concealment function depending on the frame type.

Definition at line 1281 of file image.c.

References change_plane_JV(), DeblockPicture(), ercConcealInterFrame(), ercConcealIntraFrame(), ercMarkCurrSegmentLost(), ercMarkCurrSegmentOK(), ercStartSegment(), ercStopSegment(), field_postprocessing(), frame_postprocessing(), make_frame_picture_JV(), p_ref, params, snr, store_picture_in_dpb(), frame::uptr, frame::vptr, frame::yptr, and YUV400.

Referenced by decode_one_frame(), and init_picture().

Here is the call graph for this function:

void field_postprocessing ( ImageParameters *  img  ) 

Prepare field and frame buffer after field decoding.

Definition at line 1704 of file image.c.

Referenced by exit_picture().

void find_snr ( struct snr_par *  snr,
StorablePicture *  p,
int *  p_ref 
)

void frame_postprocessing ( ImageParameters *  img  ) 

Prepare field and frame buffer after frame decoding.

Definition at line 1694 of file image.c.

Referenced by exit_picture().

void init_old_slice ( OldSliceParams *  p_old_slice  ) 

set defaults for old_slice NAL unit of a picture"

Definition at line 1578 of file image.c.

Referenced by main().

int is_new_picture ( StorablePicture *  dec_picture,
Slice *  currSlice,
OldSliceParams *  p_old_slice 
)

detect if current slice is "first VCL NAL unit of a picture"

Definition at line 1645 of file image.c.

References Slice::pic_parameter_set_id.

Referenced by read_new_slice().

int picture_order ( ImageParameters *  img  ) 

return the poc of img as per (8-1) JVT-F100d2 POC200301

Definition at line 845 of file header.c.

int read_new_slice ( Slice *  currSlice  ) 


Variable Documentation

dec_picture to be used during 4:4:4 independent mode decoding

Definition at line 72 of file image.c.

Referenced by change_plane_JV(), and make_frame_picture_JV().


Documentation generated with DoxyGen