comparison avcodec.h @ 8890:21e7e2e89379 libavcodec

Another attempt to clarify draw_horiz_band() usage.
author iive
date Sat, 14 Feb 2009 22:22:55 +0000
parents 62342da1ec78
children 233fda721f1b
comparison
equal deleted inserted replaced
8889:b4838c71d52a 8890:21e7e2e89379
958 /** 958 /**
959 * If non NULL, 'draw_horiz_band' is called by the libavcodec 959 * If non NULL, 'draw_horiz_band' is called by the libavcodec
960 * decoder to draw a horizontal band. It improves cache usage. Not 960 * decoder to draw a horizontal band. It improves cache usage. Not
961 * all codecs can do that. You must check the codec capabilities 961 * all codecs can do that. You must check the codec capabilities
962 * beforehand. 962 * beforehand.
963 * The functino is also used by hardware acceleration APIs as a callback 963 * The function is also used by hardware acceleration APIs.
964 * to pass specific (partially decoded) data to the calling application 964 * It is called at least once during frame decoding to pass
965 * so that the data can be passed to the rendering hardware. 965 * the data needed for hardware render.
966 * In that mode all relevant function parameters are inside a special 966 * In that mode instead of pixel data, AVFrame points to
967 * structure passed by AVFrame in place of the pixel data. 967 * a structure specific to the acceleration API. The application
968 * The exact structure depends on the acceleration API. 968 * reads the structure and can change some fields to indicate progress
969 * The application is allowed to make changes in the structure. 969 * or mark state.
970 * - encoding: unused 970 * - encoding: unused
971 * - decoding: Set by user. 971 * - decoding: Set by user.
972 * @param height the height of the slice 972 * @param height the height of the slice
973 * @param y the y position of the slice 973 * @param y the y position of the slice
974 * @param type 1->top field, 2->bottom field, 3->frame 974 * @param type 1->top field, 2->bottom field, 3->frame