Lines Matching refs:ctx_to_m2mctx
44 static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx) in ctx_to_m2mctx() function
53 return ctx_to_m2mctx(ctx)->avctx; in logger()
75 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_CROPCAP, &cropcap); in v4l2_get_sar()
113 V4L2m2mContext *s = ctx_to_m2mctx(ctx); in v4l2_get_framesize_compressed()
163 V4L2m2mContext *s = ctx_to_m2mctx(ctx); in v4l2_handle_event()
251 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DECODER_CMD, &cmd); in v4l2_stop_decode()
271 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENCODER_CMD, &cmd); in v4l2_stop_encode()
290 .fd = ctx_to_m2mctx(ctx)->fd, in v4l2_dequeue_v4l2buf()
307 if (!V4L2_TYPE_IS_OUTPUT(ctx->type) && ctx_to_m2mctx(ctx)->draining) { in v4l2_dequeue_v4l2buf()
327 if (ctx_to_m2mctx(ctx)->draining) in v4l2_dequeue_v4l2buf()
397 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DQBUF, &buf); in v4l2_dequeue_v4l2buf()
408 if (ctx_to_m2mctx(ctx)->draining && !V4L2_TYPE_IS_OUTPUT(ctx->type)) { in v4l2_dequeue_v4l2buf()
473 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_REQBUFS, &req); in v4l2_release_buffers()
493 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, fmt); in v4l2_try_raw_format()
516 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENUM_FMT, &fdesc); in v4l2_get_raw_format()
551 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENUM_FMT, &fdesc); in v4l2_get_coded_format()
577 ret = ioctl(ctx_to_m2mctx(ctx)->fd, cmd, &type); in ff_v4l2_context_set_status()
588 V4L2m2mContext *s = ctx_to_m2mctx(ctx); in ff_v4l2_context_enqueue_frame()
613 V4L2m2mContext *s = ctx_to_m2mctx(ctx); in ff_v4l2_context_enqueue_packet()
700 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, &ctx->format); in ff_v4l2_context_get_format()
705 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_S_FMT, &ctx->format); in ff_v4l2_context_set_format()
724 V4L2m2mContext *s = ctx_to_m2mctx(ctx); in ff_v4l2_context_init()