Lines Matching defs:format
40 int format;
53 ret = av_image_check_size2(frame->width, frame->height, INT_MAX, frame->format, 0, avctx);
57 if (ctx->format == VBN_FORMAT_DXT1 || ctx->format == VBN_FORMAT_DXT5) {
62 if (frame->format != AV_PIX_FMT_RGBA) {
63 av_log(avctx, AV_LOG_ERROR, "DXT formats only support RGBA pixel format\n");
70 switch (ctx->format) {
82 linesize = av_image_get_linesize(frame->format, frame->width, 0);
87 av_log(avctx, AV_LOG_ERROR, "Invalid format %02X\n", ctx->format);
105 bytestream2_put_le32u(pb, frame->format == AV_PIX_FMT_RGBA ? 4 : 3);
106 bytestream2_put_le32u(pb, ctx->format);
107 bytestream2_put_le32u(pb, frame->format == AV_PIX_FMT_RGBA ? VBN_PIX_RGBA : VBN_PIX_RGB);
113 if (ctx->format == VBN_FORMAT_DXT1 || ctx->format == VBN_FORMAT_DXT5) {
137 { "format", "Texture format", OFFSET(format), AV_OPT_TYPE_INT, { .i64 = VBN_FORMAT_DXT5 }, VBN_FORMAT_RAW, VBN_FORMAT_DXT5, FLAGS, "format" },
138 { "raw", "RAW texture", 0, AV_OPT_TYPE_CONST, { .i64 = VBN_FORMAT_RAW }, 0, 0, FLAGS, "format" },
139 { "dxt1", "DXT1 texture", 0, AV_OPT_TYPE_CONST, { .i64 = VBN_FORMAT_DXT1 }, 0, 0, FLAGS, "format" },
140 { "dxt5", "DXT5 texture", 0, AV_OPT_TYPE_CONST, { .i64 = VBN_FORMAT_DXT5 }, 0, 0, FLAGS, "format" },