On Tue, Sep 15, 2015 at 8:21 PM, Vittorio Giovara
<[email protected]> wrote:
> On Tue, Sep 15, 2015 at 4:36 PM, Steve Lhomme <[email protected]> wrote:
>> From: Steve Lhomme <[email protected]>
>>
>> --
>> now with an allocation function for the structure
>> ---
>>  libavcodec/Makefile  |  2 +-
>>  libavcodec/d3d11va.c | 33 +++++++++++++++++++++++++++++++++
>>  libavcodec/d3d11va.h | 17 +++++++++++++++--
>>  libavcodec/dxva2.c   | 15 +++++++++++++--
>>  libavcodec/version.h |  2 +-
>>  5 files changed, 63 insertions(+), 6 deletions(-)
>>  create mode 100644 libavcodec/d3d11va.c
>>
>> diff --git a/libavcodec/d3d11va.h b/libavcodec/d3d11va.h
>> index f5777c2..df06275 100644
>> --- a/libavcodec/d3d11va.h
>> +++ b/libavcodec/d3d11va.h
>> @@ -54,7 +54,7 @@
>>   *
>>   * The application must make it available as AVCodecContext.hwaccel_context.
>>   */
>> -struct AVD3D11VAContext {
>> +typedef struct AVD3D11VAContext {
>>      /**
>>       * D3D11 decoder object
>>       */
>> @@ -89,7 +89,20 @@ struct AVD3D11VAContext {
>>       * Private to the Libav AVHWAccel implementation
>>       */
>>      unsigned report_id;
>> -};
>> +
>> +    /**
>> +      * Mutex to access video_context
>> +      */
>> +    HANDLE  context_mutex;
>> +} AVD3D11VAContext;
>> +
>> +/**
>> + * Allocate an AVD3D11VAContext.
>> + *
>> + * @return Newly-allocated AVD3D11VAContext or NULL on failure.
>> + */
>> +AVD3D11VAContext *av_d3d11va_alloc_context(void);
>> +
>
> this should be added to doc/APIChanges.

I do not understand how this file works. There's no mention of 57.x.x
which is what's the current libavcodec/version.h

> nit: stray line?
> --
> Vittorio
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to