X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Favcodec.h;h=447be7f5f67a76d69f20704168ec828a5e16c829;hb=e0c7ba40cf0bb521430f4a808ed1f1a408093f9c;hp=5e064327b434d693eb64ca0c0a6abda8f13863f5;hpb=beae6ac5db9deee4a93a0c8e6e965ed31463ab93;p=ffmpeg diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 5e064327b43..447be7f5f67 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -483,6 +483,7 @@ enum AVCodecID { AV_CODEC_ID_METASOUND, AV_CODEC_ID_PAF_AUDIO_DEPRECATED, AV_CODEC_ID_ON2AVC, + AV_CODEC_ID_DSS_SP, AV_CODEC_ID_FFWAVESYNTH = MKBETAG('F','F','W','S'), AV_CODEC_ID_SONIC = MKBETAG('S','O','N','C'), AV_CODEC_ID_SONIC_LS = MKBETAG('S','O','N','L'), @@ -4381,6 +4382,28 @@ typedef struct AVCodecParserContext { * For example, this corresponds to H.264 PicOrderCnt. */ int output_picture_number; + + /** + * Dimensions of the decoded video intended for presentation. + */ + int width; + int height; + + /** + * Dimensions of the coded video. + */ + int coded_width; + int coded_height; + + /** + * The format of the coded data, corresponds to enum AVPixelFormat for video + * and for enum AVSampleFormat for audio. + * + * Note that a decoder can have considerable freedom in how exactly it + * decodes the data, so the format reported here might be different from the + * one returned by a decoder. + */ + int format; } AVCodecParserContext; typedef struct AVCodecParser {