~ubuntu-branches/ubuntu/utopic/libav/utopic-proposed

« back to all changes in this revision

Viewing changes to libavcodec/hevc_sei.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler, Reinhard Tartler, Rico Tzschichholz
  • Date: 2014-08-30 11:02:45 UTC
  • mfrom: (1.3.47 sid)
  • Revision ID: package-import@ubuntu.com-20140830110245-io3dg7q85wfr7125
Tags: 6:11~beta1-2
[ Reinhard Tartler ]
* Make libavcodec-dev depend on libavresample-dev

[ Rico Tzschichholz ]
* Some fixes and leftovers from soname bumps

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    skip_bits1(gb);             // upsampled_aspect_ratio_flag
72
72
}
73
73
 
 
74
static void decode_nal_sei_display_orientation(HEVCContext *s)
 
75
{
 
76
    GetBitContext *gb = &s->HEVClc.gb;
 
77
 
 
78
    s->sei_display_orientation_present = !get_bits1(gb);
 
79
 
 
80
    if (s->sei_display_orientation_present) {
 
81
        s->sei_hflip = get_bits1(gb);     // hor_flip
 
82
        s->sei_vflip = get_bits1(gb);     // ver_flip
 
83
 
 
84
        s->sei_anticlockwise_rotation = get_bits(gb, 16);
 
85
        skip_bits1(gb);     // display_orientation_persistence_flag
 
86
    }
 
87
}
 
88
 
74
89
static int decode_nal_sei_message(HEVCContext *s)
75
90
{
76
91
    GetBitContext *gb = &s->HEVClc.gb;
94
109
            decode_nal_sei_decoded_picture_hash(s);
95
110
        else if (payload_type == 45)
96
111
            decode_nal_sei_frame_packing_arrangement(s);
 
112
        else if (payload_type == 47)
 
113
            decode_nal_sei_display_orientation(s);
97
114
        else {
98
115
            av_log(s->avctx, AV_LOG_DEBUG, "Skipped PREFIX SEI %d\n", payload_type);
99
116
            skip_bits(gb, 8 * payload_size);