comparison avcodec.h @ 9155:9e66ada64b76 libavcodec

Add private HW accel data infrastructure.
author gb
date Mon, 09 Mar 2009 08:04:41 +0000
parents 788aa0c09382
children 3a54ad453dbf
comparison
equal deleted inserted replaced
9154:aa459306ee59 9155:9e66ada64b76
805 * output in AVFrame.reordered_opaque\ 805 * output in AVFrame.reordered_opaque\
806 * - encoding: unused\ 806 * - encoding: unused\
807 * - decoding: Read by user.\ 807 * - decoding: Read by user.\
808 */\ 808 */\
809 int64_t reordered_opaque;\ 809 int64_t reordered_opaque;\
810 \
811 /**\
812 * hardware accelerator private data (FFmpeg allocated)\
813 * - encoding: unused\
814 * - decoding: Set by libavcodec\
815 */\
816 void *hwaccel_data_private;\
810 817
811 818
812 #define FF_QSCALE_TYPE_MPEG1 0 819 #define FF_QSCALE_TYPE_MPEG1 0
813 #define FF_QSCALE_TYPE_MPEG2 1 820 #define FF_QSCALE_TYPE_MPEG2 1
814 #define FF_QSCALE_TYPE_H264 2 821 #define FF_QSCALE_TYPE_H264 2
2454 * 2461 *
2455 * @param avctx the codec context 2462 * @param avctx the codec context
2456 * @return zero if successful, a negative value otherwise 2463 * @return zero if successful, a negative value otherwise
2457 */ 2464 */
2458 int (*end_frame)(AVCodecContext *avctx); 2465 int (*end_frame)(AVCodecContext *avctx);
2466
2467 /**
2468 * Size of HW accelerator private data.
2469 *
2470 * Private data is allocated with av_malloc() before
2471 * AVCodecContext::get_buffer() and deallocated after
2472 * AVCodecContext::release_buffer().
2473 */
2474 int priv_data_size;
2459 } AVHWAccel; 2475 } AVHWAccel;
2460 2476
2461 /** 2477 /**
2462 * four components are given, that's all. 2478 * four components are given, that's all.
2463 * the last component is alpha 2479 * the last component is alpha