#include <assert.h>
+#include <pipe/p_compiler.h>
#include <pipe/p_context.h>
#include <util/u_memory.h>
pipe_resource_reference(&c->csc_matrix, NULL);
}
-static inline struct pipe_video_rect
+static INLINE struct pipe_video_rect
default_rect(struct vl_compositor_layer *layer)
{
struct pipe_resource *res = layer->sampler_views[0]->texture;
return rect;
}
-static inline struct vertex2f
+static INLINE struct vertex2f
calc_topleft(struct vertex2f size, struct pipe_video_rect rect)
{
struct vertex2f res = { rect.x / size.x, rect.y / size.y };
return res;
}
-static inline struct vertex2f
+static INLINE struct vertex2f
calc_bottomright(struct vertex2f size, struct pipe_video_rect rect)
{
struct vertex2f res = { (rect.x + rect.w) / size.x, (rect.y + rect.h) / size.y };
return res;
}
-static inline void
+static INLINE void
calc_src_and_dst(struct vl_compositor_layer *layer, unsigned width, unsigned height,
struct pipe_video_rect src, struct pipe_video_rect dst)
{
#include <stdint.h>
+#include <pipe/p_compiler.h>
#include <pipe/p_video_state.h>
#include "vl_vlc.h"
56, 64, 72, 80, 88, 96, 104, 112
};
-static inline int
+static INLINE int
get_macroblock_modes(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture)
{
int macroblock_modes;
}
}
-static inline enum pipe_mpeg12_dct_type
+static INLINE enum pipe_mpeg12_dct_type
get_dct_type(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture, int macroblock_modes)
{
enum pipe_mpeg12_dct_type dct_type = PIPE_MPEG12_DCT_TYPE_FRAME;
return dct_type;
}
-static inline int
+static INLINE int
get_quantizer_scale(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture)
{
int quantizer_scale_code;
return quantizer_scale_code << 1;
}
-static inline int
+static INLINE int
get_motion_delta(struct vl_mpg12_bs *bs, unsigned f_code)
{
int delta;
}
}
-static inline int
+static INLINE int
bound_motion_vector(int vec, unsigned f_code)
{
#if 1
#endif
}
-static inline int
+static INLINE int
get_dmv(struct vl_mpg12_bs *bs)
{
const DMVtab * tab;
return tab->dmv;
}
-static inline int
+static INLINE int
get_coded_block_pattern(struct vl_mpg12_bs *bs)
{
const CBPtab * tab;
}
}
-static inline int
+static INLINE int
get_luma_dc_dct_diff(struct vl_mpg12_bs *bs)
{
const DCtab * tab;
}
}
-static inline int
+static INLINE int
get_chroma_dc_dct_diff(struct vl_mpg12_bs *bs)
{
const DCtab * tab;
}
}
-static inline void
+static INLINE void
get_intra_block_B14(struct vl_mpg12_bs *bs, int quantizer_scale, short *dest)
{
int i, val;
vl_vlc_dumpbits(&bs->vlc, 2); /* dump end of block code */
}
-static inline void
+static INLINE void
get_intra_block_B15(struct vl_mpg12_bs *bs, int quantizer_scale, short *dest)
{
int i, val;
vl_vlc_dumpbits(&bs->vlc, 4); /* dump end of block code */
}
-static inline void
+static INLINE void
get_non_intra_block(struct vl_mpg12_bs *bs, int quantizer_scale, short *dest)
{
int i, val;
vl_vlc_dumpbits(&bs->vlc, 2); /* dump end of block code */
}
-static inline void
+static INLINE void
get_mpeg1_intra_block(struct vl_mpg12_bs *bs, int quantizer_scale, short *dest)
{
int i, val;
vl_vlc_dumpbits(&bs->vlc, 2); /* dump end of block code */
}
-static inline void
+static INLINE void
get_mpeg1_non_intra_block(struct vl_mpg12_bs *bs, int quantizer_scale, short *dest)
{
int i, val;
vl_vlc_dumpbits(&bs->vlc, 2); /* dump end of block code */
}
-static inline void
+static INLINE void
slice_intra_DCT(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture, int cc,
unsigned x, unsigned y, enum pipe_mpeg12_dct_type coding, int quantizer_scale, int dc_dct_pred[3])
{
bs->ycbcr_buffer[cc] += 64;
}
-static inline void
+static INLINE void
slice_non_intra_DCT(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture, int cc,
unsigned x, unsigned y, enum pipe_mpeg12_dct_type coding, int quantizer_scale)
{
bs->ycbcr_buffer[cc] += 64;
}
-static inline void
+static INLINE void
motion_mp1(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
mv->top.y = mv->bottom.y = motion_y;
}
-static inline void
+static INLINE void
motion_fr_frame(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
mv->top.y = mv->bottom.y = motion_y;
}
-static inline void
+static INLINE void
motion_fr_field(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
mv->bottom.y = motion_y << 1;
}
-static inline void
+static INLINE void
motion_fr_dmv(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
}
/* like motion_frame, but parsing without actual motion compensation */
-static inline void
+static INLINE void
motion_fr_conceal(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int tmp;
vl_vlc_dumpbits(&bs->vlc, 1); /* remove marker_bit */
}
-static inline void
+static INLINE void
motion_fi_field(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
mv->top.y = mv->bottom.y = motion_y;
}
-static inline void
+static INLINE void
motion_fi_16x8(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
mv->bottom.y = motion_y;
}
-static inline void
+static INLINE void
motion_fi_dmv(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int motion_x, motion_y;
}
-static inline void
+static INLINE void
motion_fi_conceal(struct vl_mpg12_bs *bs, unsigned f_code[2], struct pipe_motionvector *mv)
{
int tmp;
routine(bs, picture->f_code[1], &mv_bwd); \
} while (0)
-static inline void
+static INLINE void
store_motionvectors(struct vl_mpg12_bs *bs, unsigned *mv_pos,
struct pipe_motionvector *mv_fwd,
struct pipe_motionvector *mv_bwd)
(*mv_pos)++;
}
-static inline bool
+static INLINE bool
slice_init(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture,
int *quantizer_scale, unsigned *x, unsigned *y, unsigned *mv_pos)
{
return true;
}
-static inline bool
+static INLINE bool
decode_slice(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc *picture)
{
enum pipe_video_field_select default_field_select;