[FFmpeg-devel] [PATCH][H264] Record extra fields for VA API support

Michael Niedermayer michaelni
Fri Jan 30 17:20:18 CET 2009


On Fri, Jan 30, 2009 at 02:17:08PM +0100, Gwenole Beauchesne wrote:
> Hi,
>
> On Thu, 29 Jan 2009, Gwenol? Beauchesne wrote:
>
>> The following sequence parameter set fields are now recorded: 
>> bit_depth_luma_minus8, bit_depth_chroma_minus8, 
>> residual_colour_transform_flag. I haven't found much information about 
>> what the latter does exactly but I added it anyway. It seems to be only 
>> useful to 4:4:4 high profiles, which VA API does not really support.
>>
>> I also chose to record {luma,chroma}_weight_l[01]_flag because they were 
>> not reconstructable easily.
>
> Those additions are now split into another patch, in attachment.
>
> Regards,
> Gwenole
[...]

> diff --git a/libavcodec/h264.h b/libavcodec/h264.h
> index 5e879fc..c6753d0 100644
> --- a/libavcodec/h264.h
> +++ b/libavcodec/h264.h
> @@ -176,6 +176,9 @@ typedef struct SPS{
>      int time_offset_length;
>      int cpb_removal_delay_length;      ///< cpb_removal_delay_length_minus1 + 1
>      int dpb_output_delay_length;       ///< dpb_output_delay_length_minus1 + 1
> +    int bit_depth_luma_minus8;         ///< 7.4.2.1.1 bit_depth_luma_minus8
> +    int bit_depth_chroma_minus8;       ///< 7.4.2.1.1 bit_depth_chroma_minus8
> +    int residual_color_transform_flag; ///< residual_colour_transform_flag
>  }SPS;
>  
>  /**
> @@ -493,6 +496,9 @@ typedef struct H264Context{
>      SEI_PicStructType sei_pic_struct;
>  
>      int is_complex;
> +
> +    int luma_weight_flag[2];   ///< 7.4.3.2 luma_weight_lX_flag

unused

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090130/c025ada5/attachment.pgp>



More information about the ffmpeg-devel mailing list