[FFmpeg-cvslog] dnxhd: Add avpriv_dnxhd_get_frame_size()

Michael Niedermayer git at videolan.org
Sun Jan 6 14:14:37 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan  4 21:18:21 2013 +0100| [3db02b83e7d455d939e30832dbb802527c0937e2] | committer: Michael Niedermayer

dnxhd: Add avpriv_dnxhd_get_frame_size()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3db02b83e7d455d939e30832dbb802527c0937e2
---

 libavcodec/dnxhddata.c |    8 ++++++++
 libavcodec/dnxhddata.h |    2 ++
 2 files changed, 10 insertions(+)

diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
index 9e2e014..c433d9d 100644
--- a/libavcodec/dnxhddata.c
+++ b/libavcodec/dnxhddata.c
@@ -1027,6 +1027,14 @@ int ff_dnxhd_get_cid_table(int cid)
     return -1;
 }
 
+int avpriv_dnxhd_get_frame_size(int cid)
+{
+    int i = ff_dnxhd_get_cid_table(cid);
+    if (i<0)
+        return i;
+    return ff_dnxhd_cid_table[i].frame_size;
+}
+
 int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth)
 {
     int i, j;
diff --git a/libavcodec/dnxhddata.h b/libavcodec/dnxhddata.h
index 01c3f58..f1a6ec7 100644
--- a/libavcodec/dnxhddata.h
+++ b/libavcodec/dnxhddata.h
@@ -50,4 +50,6 @@ extern av_export const CIDEntry ff_dnxhd_cid_table[];
 int ff_dnxhd_get_cid_table(int cid);
 int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth);
 
+int avpriv_dnxhd_get_frame_size(int cid);
+
 #endif /* AVCODEC_DNXHDDATA_H */



More information about the ffmpeg-cvslog mailing list