Searched refs:avci (Results 1 – 3 of 3) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | decode.c | 160 static int extract_packet_props(AVCodecInternal *avci, const AVPacket *pkt) in extract_packet_props() argument 165 if (IS_EMPTY(avci->last_pkt_props)) { in extract_packet_props() 166 if (av_fifo_size(avci->pkt_props) >= sizeof(*pkt)) { in extract_packet_props() 167 av_fifo_generic_read(avci->pkt_props, avci->last_pkt_props, in extract_packet_props() 168 sizeof(*avci->last_pkt_props), NULL); in extract_packet_props() 170 return copy_packet_props(avci->last_pkt_props, pkt); in extract_packet_props() 173 if (av_fifo_space(avci->pkt_props) < sizeof(*pkt)) { in extract_packet_props() 174 ret = av_fifo_grow(avci->pkt_props, sizeof(*pkt)); in extract_packet_props() 183 av_fifo_generic_write(avci->pkt_props, &tmp, sizeof(tmp), NULL); in extract_packet_props() 190 AVCodecInternal *avci = avctx->internal; in decode_bsfs_init() local [all …]
|
D | avcodec.c | 149 AVCodecInternal *avci; in avcodec_open2() local 174 avci = av_mallocz(sizeof(*avci)); in avcodec_open2() 175 if (!avci) { in avcodec_open2() 179 avctx->internal = avci; in avcodec_open2() 182 avci->to_free = av_frame_alloc(); in avcodec_open2() 183 avci->compat_decode_frame = av_frame_alloc(); in avcodec_open2() 184 avci->compat_encode_packet = av_packet_alloc(); in avcodec_open2() 185 if (!avci->to_free || !avci->compat_decode_frame || !avci->compat_encode_packet) { in avcodec_open2() 190 avci->buffer_frame = av_frame_alloc(); in avcodec_open2() 191 avci->buffer_pkt = av_packet_alloc(); in avcodec_open2() [all …]
|
D | encode.c | 162 AVCodecInternal *avci = avctx->internal; in ff_encode_get_frame() local 164 if (avci->draining) in ff_encode_get_frame() 167 if (!avci->buffer_frame->buf[0]) in ff_encode_get_frame() 170 av_frame_move_ref(frame, avci->buffer_frame); in ff_encode_get_frame() 177 AVCodecInternal *avci = avctx->internal; in encode_simple_internal() local 178 EncodeSimpleContext *es = &avci->es; in encode_simple_internal() 183 if (avci->draining_done) in encode_simple_internal() 186 if (!frame->buf[0] && !avci->draining) { in encode_simple_internal() 195 (avci->frame_thread_encoder && avctx->active_thread_type & FF_THREAD_FRAME))) in encode_simple_internal() 207 avci->frame_thread_encoder && (avctx->active_thread_type & FF_THREAD_FRAME)) in encode_simple_internal() [all …]
|