assert(vpipe);
- switch (param) {
- case PIPE_CAP_NPOT_TEXTURES:
- return !ctx->pot_buffers;
- case PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT:
- return ctx->decode_format;
- default:
- {
- debug_printf("vl_mpeg12_context: Unknown PIPE_CAP %d\n", param);
- return 0;
- }
- }
+ if (param == PIPE_CAP_NPOT_TEXTURES)
+ return !ctx->pot_buffers;
+
+ debug_printf("vl_mpeg12_context: Unknown PIPE_CAP %d\n", param);
+ return 0;
}
static struct pipe_surface *
enum pipe_video_profile profile,
enum pipe_video_chroma_format chroma_format,
unsigned width, unsigned height,
- bool pot_buffers,
- enum pipe_format decode_format)
+ bool pot_buffers)
{
struct vl_mpeg12_context *ctx;
ctx->base.set_csc_matrix = vl_mpeg12_set_csc_matrix;
ctx->pipe = pipe;
- ctx->decode_format = decode_format;
ctx->pot_buffers = pot_buffers;
ctx->quads = vl_vb_upload_quads(ctx->pipe, 2, 2);
{
struct pipe_video_context base;
struct pipe_context *pipe;
- enum pipe_format decode_format;
bool pot_buffers;
unsigned buffer_width, buffer_height;
enum pipe_video_profile profile,
enum pipe_video_chroma_format chroma_format,
unsigned width, unsigned height,
- bool pot_buffers,
- enum pipe_format decode_format);
+ bool pot_buffers);
#endif /* VL_MPEG12_CONTEXT_H */