Lines Matching defs:ctx_to_m2mctx
44 static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx)
53 return ctx_to_m2mctx(ctx)->avctx;
75 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_CROPCAP, &cropcap);
113 V4L2m2mContext *s = ctx_to_m2mctx(ctx);
164 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DECODER_CMD, &cmd);
178 V4L2m2mContext *s = ctx_to_m2mctx(ctx);
237 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DECODER_CMD, &cmd);
257 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENCODER_CMD, &cmd);
276 .fd = ctx_to_m2mctx(ctx)->fd,
293 if (!V4L2_TYPE_IS_OUTPUT(ctx->type) && ctx_to_m2mctx(ctx)->draining) {
313 if (ctx_to_m2mctx(ctx)->draining)
383 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_DQBUF, &buf);
394 if (ctx_to_m2mctx(ctx)->draining && !V4L2_TYPE_IS_OUTPUT(ctx->type)) {
459 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_REQBUFS, &req);
479 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, fmt);
502 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENUM_FMT, &fdesc);
537 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_ENUM_FMT, &fdesc);
563 ret = ioctl(ctx_to_m2mctx(ctx)->fd, cmd, &type);
574 V4L2m2mContext *s = ctx_to_m2mctx(ctx);
599 V4L2m2mContext *s = ctx_to_m2mctx(ctx);
686 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, &ctx->format);
691 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_S_FMT, &ctx->format);
710 V4L2m2mContext *s = ctx_to_m2mctx(ctx);