~ubuntu-branches/ubuntu/quantal/mplayer2/quantal-proposed

« back to all changes in this revision

Viewing changes to ffmpeg-mt/libavcodec/vaapi_mpeg4.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-04-21 09:21:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110421092139-7a21foqroxvir3wr
Tags: 2.0-54-gd33877a-1
* New upstream version
* Bug fix: "internal MP3 decoder miscompiles with gcc 4.6", thanks to
  Norbert Preining (Closes: #623279). Fixed by no longer using internal
  mp3lib copy.
* drop build host specific optimizations

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * Copyright (C) 2008-2009 Splitted-Desktop Systems
5
5
 *
6
 
 * This file is part of FFmpeg.
 
6
 * This file is part of Libav.
7
7
 *
8
 
 * FFmpeg is free software; you can redistribute it and/or
 
8
 * Libav is free software; you can redistribute it and/or
9
9
 * modify it under the terms of the GNU Lesser General Public
10
10
 * License as published by the Free Software Foundation; either
11
11
 * version 2.1 of the License, or (at your option) any later version.
12
12
 *
13
 
 * FFmpeg is distributed in the hope that it will be useful,
 
13
 * Libav is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
16
 * Lesser General Public License for more details.
17
17
 *
18
18
 * You should have received a copy of the GNU Lesser General Public
19
 
 * License along with FFmpeg; if not, write to the Free Software
 
19
 * License along with Libav; if not, write to the Free Software
20
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
21
 */
22
22
 
47
47
    VAIQMatrixBufferMPEG4 *iq_matrix;
48
48
    int i;
49
49
 
50
 
    dprintf(avctx, "vaapi_mpeg4_start_frame()\n");
 
50
    av_dlog(avctx, "vaapi_mpeg4_start_frame()\n");
51
51
 
52
52
    vactx->slice_param_size = sizeof(VASliceParameterBufferMPEG4);
53
53
 
125
125
    MpegEncContext * const s = avctx->priv_data;
126
126
    VASliceParameterBufferMPEG4 *slice_param;
127
127
 
128
 
    dprintf(avctx, "vaapi_mpeg4_decode_slice(): buffer %p, size %d\n", buffer, size);
 
128
    av_dlog(avctx, "vaapi_mpeg4_decode_slice(): buffer %p, size %d\n", buffer, size);
129
129
 
130
130
    /* video_plane_with_short_video_header() contains all GOBs
131
131
     * in-order, and this is what VA API (Intel backend) expects: only
150
150
}
151
151
 
152
152
#if CONFIG_MPEG4_VAAPI_HWACCEL
153
 
AVHWAccel mpeg4_vaapi_hwaccel = {
 
153
AVHWAccel ff_mpeg4_vaapi_hwaccel = {
154
154
    .name           = "mpeg4_vaapi",
155
155
    .type           = AVMEDIA_TYPE_VIDEO,
156
156
    .id             = CODEC_ID_MPEG4,
164
164
#endif
165
165
 
166
166
#if CONFIG_H263_VAAPI_HWACCEL
167
 
AVHWAccel h263_vaapi_hwaccel = {
 
167
AVHWAccel ff_h263_vaapi_hwaccel = {
168
168
    .name           = "h263_vaapi",
169
169
    .type           = AVMEDIA_TYPE_VIDEO,
170
170
    .id             = CODEC_ID_H263,