Unified · Split
| @@ -93,7 +93,7 @@ static void cuda_buffer_free(void *opaque, uint8_t *data) · 92 unmodified lines | ||
| 93 | 93 | CHECK_CU(cu->cuCtxPopCurrent(&dummy)); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | −static AVBufferRef *cuda_pool_alloc(void *opaque, int size) | |
| 96 | +static AVBufferRef *cuda_pool_alloc(void *opaque, buffer_size_t size) | |
| 97 | 97 | { |
| 98 | 98 | AVHWFramesContext *ctx = opaque; |
| 99 | 99 | AVHWDeviceContext *device_ctx = ctx->device_ctx; |
| @@ -202,7 +202,7 @@ static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext *ctx) · 201 unmodified lines | ||
| 202 | 202 | return wrap_texture_buf(tex, 0); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | −static AVBufferRef *d3d11va_pool_alloc(void *opaque, int size) | |
| 205 | +static AVBufferRef *d3d11va_pool_alloc(void *opaque, buffer_size_t size) | |
| 206 | 206 | { |
| 207 | 207 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; |
| 208 | 208 | D3D11VAFramesContext *s = ctx->internal->priv; |
| @@ -124,7 +124,7 @@ static void dxva2_pool_release_dummy(void *opaque, uint8_t *data) · 123 unmodified lines | ||
| 124 | 124 | // released in dxva2_frames_uninit() |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | −static AVBufferRef *dxva2_pool_alloc(void *opaque, int size) | |
| 127 | +static AVBufferRef *dxva2_pool_alloc(void *opaque, buffer_size_t size) | |
| 128 | 128 | { |
| 129 | 129 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; |
| 130 | 130 | DXVA2FramesContext *s = ctx->internal->priv; |
| @@ -1617,7 +1617,7 @@ static void opencl_pool_free(void *opaque, uint8_t *data) · 1616 unmodified lines | ||
| 1617 | 1617 | av_free(desc); |
| 1618 | 1618 | } |
| 1619 | 1619 | |
| 1620 | −static AVBufferRef *opencl_pool_alloc(void *opaque, int size) | |
| 1620 | +static AVBufferRef *opencl_pool_alloc(void *opaque, buffer_size_t size) | |
| 1621 | 1621 | { |
| 1622 | 1622 | AVHWFramesContext *hwfc = opaque; |
| 1623 | 1623 | AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; |
| @@ -194,7 +194,7 @@ static void qsv_pool_release_dummy(void *opaque, uint8_t *data) · 193 unmodified lines | ||
| 194 | 194 | { |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | −static AVBufferRef *qsv_pool_alloc(void *opaque, int size) | |
| 197 | +static AVBufferRef *qsv_pool_alloc(void *opaque, buffer_size_t size) | |
| 198 | 198 | { |
| 199 | 199 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; |
| 200 | 200 | QSVFramesContext *s = ctx->internal->priv; |
| @@ -464,7 +464,7 @@ static void vaapi_buffer_free(void *opaque, uint8_t *data) · 463 unmodified lines | ||
| 464 | 464 | } |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | −static AVBufferRef *vaapi_pool_alloc(void *opaque, int size) | |
| 467 | +static AVBufferRef *vaapi_pool_alloc(void *opaque, buffer_size_t size) | |
| 468 | 468 | { |
| 469 | 469 | AVHWFramesContext *hwfc = opaque; |
| 470 | 470 | VAAPIFramesContext *ctx = hwfc->internal->priv; |
| @@ -225,7 +225,7 @@ static void vdpau_buffer_free(void *opaque, uint8_t *data) · 224 unmodified lines | ||
| 225 | 225 | device_priv->surf_destroy(surf); |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | −static AVBufferRef *vdpau_pool_alloc(void *opaque, int size) | |
| 228 | +static AVBufferRef *vdpau_pool_alloc(void *opaque, buffer_size_t size) | |
| 229 | 229 | { |
| 230 | 230 | AVHWFramesContext *ctx = opaque; |
| 231 | 231 | VDPAUFramesContext *priv = ctx->internal->priv; |
| @@ -1693,7 +1693,7 @@ static void try_export_flags(AVHWFramesContext *hwfc, · 1692 unmodified lines | ||
| 1693 | 1693 | } |
| 1694 | 1694 | } |
| 1695 | 1695 | |
| 1696 | −static AVBufferRef *vulkan_pool_alloc(void *opaque, int size) | |
| 1696 | +static AVBufferRef *vulkan_pool_alloc(void *opaque, buffer_size_t size) | |
| 1697 | 1697 | { |
| 1698 | 1698 | int err; |
| 1699 | 1699 | AVVkFrame *f; |