~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/thread.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:23:28 UTC
  • mfrom: (0.4.7 sid)
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: package-import@ubuntu.com-20120112222328-8jqdyodym3p84ygu
Tags: 2:1.0~rc4.dfsg1+svn34540-1
* New upstream snapshot
* upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "avcodec.h"
32
32
 
33
33
/**
34
 
 * Waits for decoding threads to finish and resets internal
35
 
 * state. Called by avcodec_flush_buffers().
 
34
 * Wait for decoding threads to finish and reset internal state.
 
35
 * Called by avcodec_flush_buffers().
36
36
 *
37
37
 * @param avctx The context.
38
38
 */
39
39
void ff_thread_flush(AVCodecContext *avctx);
40
40
 
41
41
/**
42
 
 * Submits a new frame to a decoding thread.
 
42
 * Submit a new frame to a decoding thread.
43
43
 * Returns the next available frame in picture. *got_picture_ptr
44
44
 * will be 0 if none is available.
 
45
 * The return value on success is the size of the consumed packet for
 
46
 * compatiblity with avcodec_decode_video2(). This means the decoder
 
47
 * has to consume the full packet.
45
48
 *
46
49
 * Parameters are the same as avcodec_decode_video2().
47
50
 */
59
62
void ff_thread_finish_setup(AVCodecContext *avctx);
60
63
 
61
64
/**
62
 
 * Notifies later decoding threads when part of their reference picture
63
 
 * is ready.
 
65
 * Notify later decoding threads when part of their reference picture is ready.
64
66
 * Call this when some part of the picture is finished decoding.
65
67
 * Later calls with lower values of progress have no effect.
66
68
 *
72
74
void ff_thread_report_progress(AVFrame *f, int progress, int field);
73
75
 
74
76
/**
75
 
 * Waits for earlier decoding threads to finish reference pictures
 
77
 * Wait for earlier decoding threads to finish reference pictures.
76
78
 * Call this before accessing some part of a picture, with a given
77
79
 * value for progress, and it will return after the responsible decoding
78
80
 * thread calls ff_thread_report_progress() with the same or