Unified · Split
| @@ -93,7 +93,7 @@ static void cuda_buffer_free(void *opaque, uint8_t *data) · 92 unmodified lines | |||
| 93 | CHECK_CU(cu->cuCtxPopCurrent(&dummy)); | 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 | AVHWFramesContext *ctx = opaque; | 98 | AVHWFramesContext *ctx = opaque; |
| 99 | AVHWDeviceContext *device_ctx = ctx->device_ctx; | 99 | AVHWDeviceContext *device_ctx = ctx->device_ctx; |
| @@ -202,7 +202,7 @@ static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext *ctx) · 201 unmodified lines | |||
| 202 | return wrap_texture_buf(tex, 0); | 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 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; | 207 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; |
| 208 | D3D11VAFramesContext *s = ctx->internal->priv; | 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 | // released in dxva2_frames_uninit() | 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 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; | 129 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; |
| 130 | DXVA2FramesContext *s = ctx->internal->priv; | 130 | DXVA2FramesContext *s = ctx->internal->priv; |
| @@ -1617,7 +1617,7 @@ static void opencl_pool_free(void *opaque, uint8_t *data) · 1616 unmodified lines | |||
| 1617 | av_free(desc); | 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 | AVHWFramesContext *hwfc = opaque; | 1622 | AVHWFramesContext *hwfc = opaque; |
| 1623 | AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; | 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 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; | 199 | AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; |
| 200 | QSVFramesContext *s = ctx->internal->priv; | 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 | AVHWFramesContext *hwfc = opaque; | 469 | AVHWFramesContext *hwfc = opaque; |
| 470 | VAAPIFramesContext *ctx = hwfc->internal->priv; | 470 | VAAPIFramesContext *ctx = hwfc->internal->priv; |
| @@ -225,7 +225,7 @@ static void vdpau_buffer_free(void *opaque, uint8_t *data) · 224 unmodified lines | |||
| 225 | device_priv->surf_destroy(surf); | 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 | AVHWFramesContext *ctx = opaque; | 230 | AVHWFramesContext *ctx = opaque; |
| 231 | VDPAUFramesContext *priv = ctx->internal->priv; | 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 | int err; | 1698 | int err; |
| 1699 | AVVkFrame *f; | 1699 | AVVkFrame *f; |