51 if (!pic->
f || !pic->
f->
buf[0])
59 for (i = 0; i < 2; i++) {
64 memset((
uint8_t*)pic + off, 0,
sizeof(*pic) - off);
87 for (i = 0; i < 2; i++) {
103 for (i = 0; i < 2; i++)
128 #if CONFIG_ERROR_RESILIENCE
131 memset(dst, 0,
sizeof(*dst));
139 for (i = 0; i < 2; i++) {
156 if (CONFIG_H264_VDPAU_DECODER &&
175 "hardware accelerator failed to decode picture\n");
179 if (CONFIG_H264_VDPAU_DECODER &&
const struct AVCodec * codec
void ff_vdpau_h264_picture_complete(H264Context *h)
int long_ref
1->long term reference 0->short term reference
int sei_recovery_frame_cnt
void av_buffer_unref(AVBufferRef **buf)
Free a given reference and automatically free the buffer if there are no more references to it...
AVBufferRef * buf[AV_NUM_DATA_POINTERS]
AVBuffer references backing the data for this frame.
AVBufferRef * mb_type_buf
int16_t(*[2] motion_val)[2]
struct AVHWAccel * hwaccel
Hardware accelerator in use.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
void ff_h264_set_erpic(ERPicture *dst, H264Picture *src)
int field_picture
whether or not picture was encoded in separate fields
int frame_num_offset
for POC type 2
Multithreading support functions.
#define PICT_BOTTOM_FIELD
int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
#define AV_CODEC_CAP_HWACCEL_VDPAU
Codec can export data for HW decoding (VDPAU).
AVBufferRef * qscale_table_buf
high precision timer, useful to profile code
int recovered
picture at IDR or recovery point + recovery count
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void ff_thread_release_buffer(AVCodecContext *avctx, ThreadFrame *f)
Wrapper around release_buffer() frame-for multithreaded codecs.
void * hwaccel_picture_private
hardware accelerator private data
int active_thread_type
Which multithreading methods are in use by the codec.
int capabilities
Codec capabilities.
int ref_poc[2][2][32]
POCs of the frames/fields used as reference (FIXME need per slice)
simple assert() macros that are a bit more flexible than ISO C assert().
int frame_num
frame_num (raw frame_num from slice header)
AVBufferRef * hwaccel_priv_buf
useful rectangle filling function
int prev_poc_msb
poc_msb of the last reference pic for POC type 0
AVBufferRef * motion_val_buf[2]
#define FF_THREAD_FRAME
Decode more than one frame at once.
void ff_thread_report_progress(ThreadFrame *f, int n, int field)
Notify later decoding threads when part of their reference picture is ready.
Context Adaptive Binary Arithmetic Coder inline functions.
H.264 / AVC / MPEG-4 part10 codec.
Libavcodec external API header.
int field_poc[2]
top/bottom POC
main external API structure.
uint8_t * data
The data buffer.
void ff_vdpau_h264_set_reference_frames(H264Context *h)
int prev_frame_num
frame_num of the last pic for POC type 1/2
int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src)
int mmco_reset
MMCO_RESET set this 1.
H264Picture * cur_pic_ptr
int prev_poc_lsb
poc_lsb of the last reference pic for POC type 0
int mbaff
1 -> MBAFF frame 0-> not MBAFF
int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup)
common internal api header.
H.264 / AVC / MPEG-4 part10 motion vector prediction.
AVBufferRef * av_buffer_ref(AVBufferRef *buf)
Create a new reference to an AVBuffer.
int16_t(*[2] motion_val)[2]
int current_slice
current slice number, used to initialize slice_num of each thread/context
int ff_h264_execute_ref_pic_marking(H264Context *h)
Execute the reference picture marking (memory management control operations).
AVBufferRef * ref_index_buf[2]
int ref_count[2][2]
number of entries in ref_poc (FIXME need per slice)
int prev_frame_num_offset
for POC type 2
int(* end_frame)(AVCodecContext *avctx)
Called at the end of each frame or field picture.
void ff_h264_unref_picture(H264Context *h, H264Picture *pic)
Context Adaptive Binary Arithmetic Coder.