History

Add Auravision Aura decoding support

Originally committed as revision 20914 to svn://svn.ffmpeg.org/ffmpeg/trunk

Kostya Shishkov committed 16 years ago

Commit 588f8cd1 parent c5879106 files · +27 −2Browse files

Unified · Split

6 files
  1. Changelog +1 −0
  2. doc/general.texi +1 −0
  3. libavcodec/Makefile +1 −0
  4. libavcodec/allcodecs.c +1 −0
  5. libavcodec/avcodec.h +1 −1
  6. libavcodec/cyuv.c +22 −1
Changelog+1−0
@@ -46,6 +46,7 @@ version <next>: · 45 unmodified lines
4646 - IV8 demuxer
4747 - CDG demuxer and decoder
4848 - R210 decoder
49+- Auravision Aura decoder
4950
5051
5152
doc/general.texi+1−0
@@ -317,6 +317,7 @@ following image formats are supported: · 316 unmodified lines
317317 @tab fourcc: VCR1
318318 @item ATI VCR2 @tab @tab X
319319 @tab fourcc: VCR2
320+@item Auravision Aura @tab @tab X
320321 @item Autodesk Animator Flic video @tab @tab X
321322 @item Autodesk RLE @tab @tab X
322323 @tab fourcc: AASC
libavcodec/Makefile+1−0
@@ -60,6 +60,7 @@ OBJS-$(CONFIG_ASV2_DECODER) += asv1.o mpeg12data.o · 59 unmodified lines
6060 OBJS-$(CONFIG_ASV2_ENCODER) += asv1.o mpeg12data.o
6161 OBJS-$(CONFIG_ATRAC1_DECODER) += atrac1.o atrac.o
6262 OBJS-$(CONFIG_ATRAC3_DECODER) += atrac3.o atrac.o
63+OBJS-$(CONFIG_AURA_DECODER) += cyuv.o
6364 OBJS-$(CONFIG_AVS_DECODER) += avs.o
6465 OBJS-$(CONFIG_BETHSOFTVID_DECODER) += bethsoftvideo.o
6566 OBJS-$(CONFIG_BFI_DECODER) += bfi.o
libavcodec/allcodecs.c+1−0
@@ -65,6 +65,7 @@ void avcodec_register_all(void) · 64 unmodified lines
6565 REGISTER_DECODER (AMV, amv);
6666 REGISTER_ENCDEC (ASV1, asv1);
6767 REGISTER_ENCDEC (ASV2, asv2);
68+ REGISTER_DECODER (AURA, aura);
6869 REGISTER_DECODER (AVS, avs);
6970 REGISTER_DECODER (BETHSOFTVID, bethsoftvid);
7071 REGISTER_DECODER (BFI, bfi);
libavcodec/avcodec.h+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "libavutil/avutil.h"
3131
3232 #define LIBAVCODEC_VERSION_MAJOR 52
33−#define LIBAVCODEC_VERSION_MINOR 43
33+#define LIBAVCODEC_VERSION_MINOR 44
3434 #define LIBAVCODEC_VERSION_MICRO 0
3535
3636 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
libavcodec/cyuv.c+22−1
@@ -82,6 +82,10 @@ static int cyuv_decode_frame(AVCodecContext *avctx, · 81 unmodified lines
8282 unsigned char cur_byte;
8383 int pixel_groups;
8484
85+ if (avctx->codec_id == CODEC_ID_AURA) {
86+ y_table = u_table;
87+ u_table = v_table;
88+ }
8589 /* sanity check the buffer size: A buffer has 3x16-bytes tables
8690 * followed by (height) lines each with 3 bytes to represent groups
8791 * of 4 pixels. Thus, the total size of the buffer ought to be:
@@ -163,6 +167,23 @@ static int cyuv_decode_frame(AVCodecContext *avctx, · 75 unmodified lines
163167 return buf_size;
164168 }
165169
170+#if CONFIG_AURA_DECODER
171+AVCodec aura_decoder = {
172+ "aura",
173+ CODEC_TYPE_VIDEO,
174+ CODEC_ID_AURA,
175+ sizeof(CyuvDecodeContext),
176+ cyuv_decode_init,
177+ NULL,
178+ NULL,
179+ cyuv_decode_frame,
180+ CODEC_CAP_DR1,
181+ NULL,
182+ .long_name = NULL_IF_CONFIG_SMALL("Auravision AURA"),
183+};
184+#endif
185+
186+#if CONFIG_CYUV_DECODER
166187 AVCodec cyuv_decoder = {
167188 "cyuv",
168189 CODEC_TYPE_VIDEO,
@@ -176,4 +197,4 @@ AVCodec cyuv_decoder = { · 7 unmodified lines
176197 NULL,
177198 .long_name = NULL_IF_CONFIG_SMALL("Creative YUV (CYUV)"),
178199 };
179−
200+#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t