diff options
author | Christian König <[email protected]> | 2013-07-15 03:48:04 -0600 |
---|---|---|
committer | Christian König <[email protected]> | 2013-08-19 10:21:15 +0200 |
commit | f2f7064e560a83fc78d0e5b1d3a7d4aaac119a49 (patch) | |
tree | de24046b5c46851ca3ef8507fd396cc0fb69abad /src/gallium/auxiliary/vl | |
parent | 8e423ab98403135140a093be3c66c88b9a36ad5c (diff) |
vl: rename pipe_video_decoder to pipe_video_codec
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.h | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_decoder.c | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_decoder.h | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mpeg12_decoder.c | 16 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mpeg12_decoder.h | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_video_buffer.c | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_video_buffer.h | 6 |
9 files changed, 32 insertions, 32 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.h b/src/gallium/auxiliary/vl/vl_compositor.h index 2a1f66cfb16..8e01901765a 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.h +++ b/src/gallium/auxiliary/vl/vl_compositor.h @@ -29,7 +29,7 @@ #define vl_compositor_h #include "pipe/p_state.h" -#include "pipe/p_video_decoder.h" +#include "pipe/p_video_codec.h" #include "pipe/p_video_state.h" #include "util/u_rect.h" diff --git a/src/gallium/auxiliary/vl/vl_decoder.c b/src/gallium/auxiliary/vl/vl_decoder.c index 60e0ce995e6..f19834fb3d5 100644 --- a/src/gallium/auxiliary/vl/vl_decoder.c +++ b/src/gallium/auxiliary/vl/vl_decoder.c @@ -25,7 +25,7 @@ * **************************************************************************/ -#include "pipe/p_video_decoder.h" +#include "pipe/p_video_codec.h" #include "util/u_video.h" @@ -59,12 +59,12 @@ vl_level_supported(struct pipe_screen *screen, enum pipe_video_profile profile) } } -struct pipe_video_decoder * +struct pipe_video_codec * vl_create_decoder(struct pipe_context *pipe, - const struct pipe_video_decoder *templat) + const struct pipe_video_codec *templat) { unsigned width = templat->width, height = templat->height; - struct pipe_video_decoder temp; + struct pipe_video_codec temp; bool pot_buffers; assert(pipe); diff --git a/src/gallium/auxiliary/vl/vl_decoder.h b/src/gallium/auxiliary/vl/vl_decoder.h index 64a1b14df6f..124315f073f 100644 --- a/src/gallium/auxiliary/vl/vl_decoder.h +++ b/src/gallium/auxiliary/vl/vl_decoder.h @@ -29,7 +29,7 @@ #ifndef vl_decoder_h #define vl_decoder_h -#include "pipe/p_video_decoder.h" +#include "pipe/p_video_codec.h" /** * check if a given profile is supported with shader based decoding @@ -44,10 +44,10 @@ int vl_level_supported(struct pipe_screen *screen, enum pipe_video_profile profile); /** - * standard implementation of pipe->create_video_decoder + * standard implementation of pipe->create_video_codec */ -struct pipe_video_decoder * +struct pipe_video_codec * vl_create_decoder(struct pipe_context *pipe, - const struct pipe_video_decoder *templat); + const struct pipe_video_codec *templat); #endif /* vl_decoder_h */ diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c index d8c53117db4..cfa5eab94d6 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c @@ -26,7 +26,7 @@ * **************************************************************************/ -#include "pipe/p_video_decoder.h" +#include "pipe/p_video_codec.h" #include "util/u_memory.h" #include "vl_vlc.h" @@ -965,7 +965,7 @@ decode_slice(struct vl_mpg12_bs *bs, struct pipe_video_buffer *target) } void -vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_decoder *decoder) +vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_codec *decoder) { static bool tables_initialized = false; diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h index 0a34814f61c..ffbe11f10b7 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h +++ b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h @@ -33,7 +33,7 @@ struct vl_mpg12_bs { - struct pipe_video_decoder *decoder; + struct pipe_video_codec *decoder; struct pipe_mpeg12_picture_desc *desc; struct dct_coeff *intra_dct_tbl; @@ -43,7 +43,7 @@ struct vl_mpg12_bs }; void -vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_decoder *decoder); +vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_codec *decoder); void vl_mpg12_bs_decode(struct vl_mpg12_bs *bs, diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c index 9349b5e171c..b60b22fc265 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c @@ -399,7 +399,7 @@ vl_mpeg12_destroy_buffer(void *buffer) } static void -vl_mpeg12_destroy(struct pipe_video_decoder *decoder) +vl_mpeg12_destroy(struct pipe_video_codec *decoder) { struct vl_mpeg12_decoder *dec = (struct vl_mpeg12_decoder*)decoder; unsigned i; @@ -503,7 +503,7 @@ error_vertex_buffer: } static void -vl_mpeg12_begin_frame(struct pipe_video_decoder *decoder, +vl_mpeg12_begin_frame(struct pipe_video_codec *decoder, struct pipe_video_buffer *target, struct pipe_picture_desc *picture) { @@ -568,7 +568,7 @@ vl_mpeg12_begin_frame(struct pipe_video_decoder *decoder, } static void -vl_mpeg12_decode_macroblock(struct pipe_video_decoder *decoder, +vl_mpeg12_decode_macroblock(struct pipe_video_codec *decoder, struct pipe_video_buffer *target, struct pipe_picture_desc *picture, const struct pipe_macroblock *macroblocks, @@ -638,7 +638,7 @@ vl_mpeg12_decode_macroblock(struct pipe_video_decoder *decoder, } static void -vl_mpeg12_decode_bitstream(struct pipe_video_decoder *decoder, +vl_mpeg12_decode_bitstream(struct pipe_video_codec *decoder, struct pipe_video_buffer *target, struct pipe_picture_desc *picture, unsigned num_buffers, @@ -664,7 +664,7 @@ vl_mpeg12_decode_bitstream(struct pipe_video_decoder *decoder, } static void -vl_mpeg12_end_frame(struct pipe_video_decoder *decoder, +vl_mpeg12_end_frame(struct pipe_video_codec *decoder, struct pipe_video_buffer *target, struct pipe_picture_desc *picture) { @@ -757,7 +757,7 @@ vl_mpeg12_end_frame(struct pipe_video_decoder *decoder, } static void -vl_mpeg12_flush(struct pipe_video_decoder *decoder) +vl_mpeg12_flush(struct pipe_video_codec *decoder) { assert(decoder); @@ -1016,9 +1016,9 @@ mc_frag_shader_callback(void *priv, struct vl_mc *mc, } } -struct pipe_video_decoder * +struct pipe_video_codec * vl_create_mpeg12_decoder(struct pipe_context *context, - const struct pipe_video_decoder *templat) + const struct pipe_video_codec *templat) { const unsigned block_size_pixels = VL_BLOCK_WIDTH * VL_BLOCK_HEIGHT; const struct format_config *format_config; diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h index dd284ee6531..c7fe5e6b5d3 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h +++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h @@ -28,7 +28,7 @@ #ifndef vl_mpeg12_decoder_h #define vl_mpeg12_decoder_h -#include "pipe/p_video_decoder.h" +#include "pipe/p_video_codec.h" #include "vl_mpeg12_bitstream.h" #include "vl_zscan.h" @@ -43,7 +43,7 @@ struct pipe_context; struct vl_mpeg12_decoder { - struct pipe_video_decoder base; + struct pipe_video_codec base; unsigned chroma_width, chroma_height; @@ -102,8 +102,8 @@ struct vl_mpeg12_buffer /** * creates a shader based mpeg12 decoder */ -struct pipe_video_decoder * +struct pipe_video_codec * vl_create_mpeg12_decoder(struct pipe_context *pipe, - const struct pipe_video_decoder *templat); + const struct pipe_video_codec *templat); #endif /* vl_mpeg12_decoder_h */ diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c b/src/gallium/auxiliary/vl/vl_video_buffer.c index 6ef95e44be7..16c7649388b 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.c +++ b/src/gallium/auxiliary/vl/vl_video_buffer.c @@ -186,11 +186,11 @@ vl_video_buffer_max_size(struct pipe_screen *screen) void vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, - struct pipe_video_decoder *vdec, + struct pipe_video_codec *vcodec, void *associated_data, void (*destroy_associated_data)(void *)) { - vbuf->decoder = vdec; + vbuf->codec = vcodec; if (vbuf->associated_data == associated_data) return; @@ -204,9 +204,9 @@ vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, void * vl_video_buffer_get_associated_data(struct pipe_video_buffer *vbuf, - struct pipe_video_decoder *vdec) + struct pipe_video_codec *vcodec) { - if (vbuf->decoder == vdec) + if (vbuf->codec == vcodec) return vbuf->associated_data; else return NULL; diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.h b/src/gallium/auxiliary/vl/vl_video_buffer.h index 178f429830e..e92e2703116 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.h +++ b/src/gallium/auxiliary/vl/vl_video_buffer.h @@ -29,7 +29,7 @@ #define vl_video_buffer_h #include "pipe/p_context.h" -#include "pipe/p_video_decoder.h" +#include "pipe/p_video_codec.h" #include "vl_defines.h" @@ -80,7 +80,7 @@ vl_video_buffer_is_format_supported(struct pipe_screen *screen, */ void vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, - struct pipe_video_decoder *vdec, + struct pipe_video_codec *vcodec, void *associated_data, void (*destroy_associated_data)(void *)); @@ -89,7 +89,7 @@ vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, */ void * vl_video_buffer_get_associated_data(struct pipe_video_buffer *vbuf, - struct pipe_video_decoder *vdec); + struct pipe_video_codec *vcodec); /** * fill a resource template for the given plane |