Home
last modified time | relevance | path

Searched refs:avbuf (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dv4l2_buffers.c52 static inline AVRational v4l2_get_timebase(V4L2Buffer *avbuf) in v4l2_get_timebase() argument
54 V4L2m2mContext *s = buf_to_m2mctx(avbuf); in v4l2_get_timebase()
74 static inline int64_t v4l2_get_pts(V4L2Buffer *avbuf) in v4l2_get_pts() argument
79 v4l2_pts = (int64_t)avbuf->buf.timestamp.tv_sec * USEC_PER_SEC + in v4l2_get_pts()
80 avbuf->buf.timestamp.tv_usec; in v4l2_get_pts()
82 return av_rescale_q(v4l2_pts, v4l2_timebase, v4l2_get_timebase(avbuf)); in v4l2_get_pts()
215 V4L2Buffer* avbuf = opaque; in v4l2_free_buffer() local
216 V4L2m2mContext *s = buf_to_m2mctx(avbuf); in v4l2_free_buffer()
218 if (atomic_fetch_sub(&avbuf->context_refcount, 1) == 1) { in v4l2_free_buffer()
225 if (s->draining && V4L2_TYPE_IS_OUTPUT(avbuf->context->type)) { in v4l2_free_buffer()
[all …]
Dv4l2_context.c287 V4L2Buffer *avbuf; in v4l2_dequeue_v4l2buf() local
421 avbuf = &ctx->buffers[buf.index]; in v4l2_dequeue_v4l2buf()
422 avbuf->status = V4L2BUF_AVAILABLE; in v4l2_dequeue_v4l2buf()
423 avbuf->buf = buf; in v4l2_dequeue_v4l2buf()
425 memcpy(avbuf->planes, planes, sizeof(planes)); in v4l2_dequeue_v4l2buf()
426 avbuf->buf.m.planes = avbuf->planes; in v4l2_dequeue_v4l2buf()
428 return avbuf; in v4l2_dequeue_v4l2buf()
589 V4L2Buffer* avbuf; in ff_v4l2_context_enqueue_frame() local
600 avbuf = v4l2_getfree_v4l2buf(ctx); in ff_v4l2_context_enqueue_frame()
601 if (!avbuf) in ff_v4l2_context_enqueue_frame()
[all …]
Dv4l2_buffers.h119 int ff_v4l2_buffer_initialize(V4L2Buffer* avbuf, int index);
128 int ff_v4l2_buffer_enqueue(V4L2Buffer* avbuf);
/third_party/ffmpeg/libavformat/
Dfitsdec.c80 AVBPrint *avbuf, uint64_t *data_size) in is_image() argument
94 av_bprint_append_data(avbuf, buf, FITS_BLOCK_SIZE); in is_image()
150 AVBPrint avbuf; in fits_read_packet() local
159 av_bprint_init(&avbuf, FITS_BLOCK_SIZE, AV_BPRINT_SIZE_UNLIMITED); in fits_read_packet()
160 while ((ret = is_image(s, fits, &header, &avbuf, &size)) == 0) { in fits_read_packet()
161 av_bprint_finalize(&avbuf, NULL); in fits_read_packet()
166 av_bprint_init(&avbuf, FITS_BLOCK_SIZE, AV_BPRINT_SIZE_UNLIMITED); in fits_read_packet()
172 if (!av_bprint_is_complete(&avbuf)) { in fits_read_packet()
177 av_assert0(avbuf.len <= INT64_MAX && size <= INT64_MAX); in fits_read_packet()
178 if (avbuf.len + size > INT_MAX - 80) { in fits_read_packet()
[all …]
Davidec.c1497 AVBufferRef *avbuf = pkt->buf; in avi_read_packet() local
1500 pkt->buf = avbuf; in avi_read_packet()
/third_party/selinux/libsepol/src/
Dutil.c84 static char avbuf[1024]; in sepol_av_to_string() local
91 memset(avbuf, 0, sizeof avbuf); in sepol_av_to_string()
93 p = avbuf; in sepol_av_to_string()
108 snprintf(p, sizeof(avbuf) - avlen, " %s", in sepol_av_to_string()
111 || (size_t) len >= (sizeof(avbuf) - avlen)) in sepol_av_to_string()
119 return avbuf; in sepol_av_to_string()
/third_party/ffmpeg/libavutil/
Dhwcontext_vulkan.c1700 AVBufferRef *avbuf = NULL; in vulkan_pool_alloc() local
1740 avbuf = av_buffer_create((uint8_t *)f, sizeof(AVVkFrame), in vulkan_pool_alloc()
1742 if (!avbuf) in vulkan_pool_alloc()
1745 return avbuf; in vulkan_pool_alloc()