Mercurial > libavcodec.hg
comparison vaapi_internal.h @ 9292:f0732d44f655 libavcodec
Improve VA API buffers allocation logic. This also reduces struct vaapi_context
down to ~60 bytes vs. a few KBs before, and gets rid of explicit VA data types.
author | gb |
---|---|
date | Tue, 31 Mar 2009 08:33:02 +0000 |
parents | 85c7a028316d |
children | 3f08c340020f |
comparison
equal
deleted
inserted
replaced
9291:6220870901f5 | 9292:f0732d44f655 |
---|---|
42 } | 42 } |
43 | 43 |
44 /** Common AVHWAccel.end_frame() implementation */ | 44 /** Common AVHWAccel.end_frame() implementation */ |
45 int ff_vaapi_common_end_frame(MpegEncContext *s); | 45 int ff_vaapi_common_end_frame(MpegEncContext *s); |
46 | 46 |
47 /** Allocate a new picture parameter buffer */ | |
48 void *ff_vaapi_alloc_picture(struct vaapi_context *vactx, unsigned int size); | |
49 | |
50 /** Allocate a new IQ matrix buffer */ | |
51 void *ff_vaapi_alloc_iq_matrix(struct vaapi_context *vactx, unsigned int size); | |
52 | |
53 /** Allocate a new bit-plane buffer */ | |
54 uint8_t *ff_vaapi_alloc_bitplane(struct vaapi_context *vactx, uint32_t size); | |
55 | |
47 /** | 56 /** |
48 * Allocate a new slice descriptor for the input slice. | 57 * Allocate a new slice descriptor for the input slice. |
49 * | 58 * |
50 * @param vactx the VA API context | 59 * @param vactx the VA API context |
51 * @param buffer the slice data buffer base | 60 * @param buffer the slice data buffer base |