1 /*
2 * - CrystalHD decoder module -
3 *
4 * Copyright(C) 2010,2011 Philip Langdale <ffmpeg.philipl@overt.org>
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 /*
24 * - Principles of Operation -
25 *
26 * The CrystalHD decoder operates at the bitstream level - which is an even
27 * higher level than the decoding hardware you typically see in modern GPUs.
28 * This means it has a very simple interface, in principle. You feed demuxed
29 * packets in one end and get decoded picture (fields/frames) out the other.
30 *
31 * Of course, nothing is ever that simple. Due, at the very least, to b-frame
32 * dependencies in the supported formats, the hardware has a delay between
33 * when a packet goes in, and when a picture comes out. Furthermore, this delay
34 * is not just a function of time, but also one of the dependency on additional
35 * frames being fed into the decoder to satisfy the b-frame dependencies.
36 *
37 * As such, a pipeline will build up that is roughly equivalent to the required
38 * DPB for the file being played. If that was all it took, things would still
39 * be simple - so, of course, it isn't.
40 *
41 * The hardware has a way of indicating that a picture is ready to be copied out,
42 * but this is unreliable - and sometimes the attempt will still fail so, based
43 * on testing, the code will wait until 3 pictures are ready before starting
44 * to copy out - and this has the effect of extending the pipeline.
45 *
46 * Finally, while it is tempting to say that once the decoder starts outputting
47 * frames, the software should never fail to return a frame from a decode(),
48 * this is a hard assertion to make, because the stream may switch between
49 * differently encoded content (number of b-frames, interlacing, etc) which
50 * might require a longer pipeline than before. If that happened, you could
51 * deadlock trying to retrieve a frame that can't be decoded without feeding
52 * in additional packets.
53 *
54 * As such, the code will return in the event that a picture cannot be copied
55 * out, leading to an increase in the length of the pipeline. This in turn,
56 * means we have to be sensitive to the time it takes to decode a picture;
57 * We do not want to give up just because the hardware needed a little more
58 * time to prepare the picture! For this reason, there are delays included
59 * in the decode() path that ensure that, under normal conditions, the hardware
60 * will only fail to return a frame if it really needs additional packets to
61 * complete the decoding.
62 *
63 * Finally, to be explicit, we do not want the pipeline to grow without bound
64 * for two reasons: 1) The hardware can only buffer a finite number of packets,
65 * and 2) The client application may not be able to cope with arbitrarily long
66 * delays in the video path relative to the audio path. For example. MPlayer
67 * can only handle a 20 picture delay (although this is arbitrary, and needs
68 * to be extended to fully support the CrystalHD where the delay could be up
69 * to 32 pictures - consider PAFF H.264 content with 16 b-frames).
70 */
71
72 /*****************************************************************************
73 * Includes
74 ****************************************************************************/
75
76 #define _XOPEN_SOURCE 600
77 #include <inttypes.h>
78 #include <stdio.h>
79 #include <stdlib.h>
80 #include <unistd.h>
81
82 #include <libcrystalhd/bc_dts_types.h>
83 #include <libcrystalhd/bc_dts_defs.h>
84 #include <libcrystalhd/libcrystalhd_if.h>
85
92
93 /** Timeout parameter passed to DtsProcOutput() in us */
94 #define OUTPUT_PROC_TIMEOUT 50
95 /** Step between fake timestamps passed to hardware in units of 100ns */
96 #define TIMESTAMP_UNIT 100000
97 /** Initial value in us of the wait in decode() */
98 #define BASE_WAIT 10000
99 /** Increment in us to adjust wait in decode() */
100 #define WAIT_UNIT 1000
101
102
103 /*****************************************************************************
104 * Module private data
105 ****************************************************************************/
106
114
121
127
130
133
142
144
147
148 /* Options */
152
154 { "crystalhd_downscale_width",
155 "Turn on downscaling to the specified width",
159 { NULL, },
160 };
161
162
163 /*****************************************************************************
164 * Helper functions
165 ****************************************************************************/
166
168 {
169 switch (id) {
171 return BC_MSUBTYPE_DIVX;
173 return BC_MSUBTYPE_DIVX311;
175 return BC_MSUBTYPE_MPEG2VIDEO;
177 return BC_MSUBTYPE_VC1;
179 return BC_MSUBTYPE_WMV3;
181 return priv->
is_nal ? BC_MSUBTYPE_AVC1 : BC_MSUBTYPE_H264;
182 default:
183 return BC_MSUBTYPE_INVALID;
184 }
185 }
186
188 {
191 output->YBuffDoneSz);
193 output->UVBuffDoneSz);
195 output->PicInfo.timeStamp);
197 output->PicInfo.picture_number);
199 output->PicInfo.width);
201 output->PicInfo.height);
203 output->PicInfo.chroma_format);
205 output->PicInfo.pulldown);
207 output->PicInfo.flags);
209 output->PicInfo.frame_rate);
211 output->PicInfo.aspect_ratio);
213 output->PicInfo.colour_primaries);
215 output->PicInfo.picture_meta_payload);
217 output->PicInfo.sess_num);
219 output->PicInfo.ycom);
221 output->PicInfo.custom_aspect_ratio_width_height);
223 output->PicInfo.n_drop);
225 output->PicInfo.other.h264.valid);
226 }
227
228
229 /*****************************************************************************
230 * OpaqueList functions
231 ****************************************************************************/
232
235 {
237 if (!newNode) {
239 "Unable to allocate new node in OpaqueList.\n");
240 return 0;
241 }
244 priv->
head = newNode;
245 } else {
248 }
249 priv->
tail = newNode;
252
254 }
255
256 /*
257 * The OpaqueList is built in decode order, while elements will be removed
258 * in presentation order. If frames are reordered, this means we must be
259 * able to remove elements that are not the first element.
260 *
261 * Returned node must be freed by caller.
262 */
264 {
266
269 "CrystalHD: Attempted to query non-existent timestamps.\n");
270 return NULL;
271 }
272
273 /*
274 * The first element is special-cased because we have to manipulate
275 * the head pointer rather than the previous element in the list.
276 */
279
282
284 return node;
285 }
286
287 /*
288 * The list is processed at arm's length so that we have the
289 * previous element available to rewrite its next pointer.
290 */
295
298
299 current->
next = NULL;
300 return current;
301 } else {
302 node = current;
303 }
304 }
305
307 "CrystalHD: Couldn't match fake_timestamp.\n");
308 return NULL;
309 }
310
311
312 /*****************************************************************************
313 * Video decoder API function definitions
314 ****************************************************************************/
315
317 {
319
326
328
329 /* Flush mode 4 flushes all software and hardware buffers. */
330 DtsFlushInput(priv->
dev, 4);
331 }
332
333
335 {
338
340 DtsStopDecoder(device);
341 DtsCloseDecoder(device);
342 DtsDeviceClose(device);
343
344 /*
345 * Restore original extradata, so that if the decoder is
346 * reinitialised, the bitstream detection and filtering
347 * will work as expected.
348 */
355 }
356
360 }
361
363
365
368 while (node) {
371 node = next;
372 }
373 }
374
375 return 0;
376 }
377
378
380 {
384 BC_INPUT_FORMAT format = {
387 .OptFlags = 0x80000000 | vdecFrameRate59_94 | 0x40,
388 .width = avctx->
width,
390 };
391
392 BC_MEDIA_SUBTYPE subtype;
393
394 uint32_t
mode = DTS_PLAYBACK_MODE |
395 DTS_LOAD_FILE_PLAY_FW |
396 DTS_SKIP_TX_CHK_CPB |
397 DTS_PLAYBACK_DROP_RPT_MODE |
398 DTS_SINGLE_THREADED_MODE |
399 DTS_DFLT_RESOLUTION(vdecRESOLUTION_1080p23_976);
400
403
405
406 /* Initialize the library */
413
415 switch (subtype) {
416 case BC_MSUBTYPE_AVC1:
417 {
419 int dummy_int;
420
421 /* Back up the extradata so it can be restored at close time. */
425 "Failed to allocate copy of extradata\n");
427 }
430
434 "Cannot open the h264_mp4toannexb BSF!\n");
436 }
438 &dummy_int, NULL, 0, 0);
439 }
440 subtype = BC_MSUBTYPE_H264;
441 // Fall-through
442 case BC_MSUBTYPE_H264:
443 format.startCodeSz = 4;
444 // Fall-through
445 case BC_MSUBTYPE_VC1:
446 case BC_MSUBTYPE_WVC1:
447 case BC_MSUBTYPE_WMV3:
448 case BC_MSUBTYPE_WMVA:
449 case BC_MSUBTYPE_MPEG2VIDEO:
450 case BC_MSUBTYPE_DIVX:
451 case BC_MSUBTYPE_DIVX311:
454 break;
455 default:
458 }
459 format.mSubtype = subtype;
460
462 format.bEnableScaling = 1;
463 format.ScalingParams.sWidth = priv->
sWidth;
464 }
465
466 /* Get a decoder instance */
468 // Initialize the Link and Decoder devices
469 ret = DtsDeviceOpen(&priv->
dev, mode);
470 if (ret != BC_STS_SUCCESS) {
472 goto fail;
473 }
474
475 ret = DtsCrystalHDVersion(priv->
dev, &version);
476 if (ret != BC_STS_SUCCESS) {
478 "CrystalHD: DtsCrystalHDVersion failed\n");
479 goto fail;
480 }
481 priv->
is_70012 = version.device == 0;
482
484 (subtype == BC_MSUBTYPE_DIVX || subtype == BC_MSUBTYPE_DIVX311)) {
486 "CrystalHD: BCM70012 doesn't support MPEG4-ASP/DivX/Xvid\n");
487 goto fail;
488 }
489
490 ret = DtsSetInputFormat(priv->
dev, &format);
491 if (ret != BC_STS_SUCCESS) {
493 goto fail;
494 }
495
496 ret = DtsOpenDecoder(priv->
dev, BC_STREAM_TYPE_ES);
497 if (ret != BC_STS_SUCCESS) {
499 goto fail;
500 }
501
502 ret = DtsSetColorSpace(priv->
dev, OUTPUT_MODE422_YUY2);
503 if (ret != BC_STS_SUCCESS) {
505 goto fail;
506 }
507 ret = DtsStartDecoder(priv->
dev);
508 if (ret != BC_STS_SUCCESS) {
510 goto fail;
511 }
512 ret = DtsStartCapture(priv->
dev);
513 if (ret != BC_STS_SUCCESS) {
515 goto fail;
516 }
517
522 "Cannot open the h.264 parser! Interlaced h.264 content "
523 "will not be detected reliably.\n");
525 }
527
528 return 0;
529
530 fail:
532 return -1;
533 }
534
535
537 BC_DTS_PROC_OUT *output,
538 void *
data,
int *got_frame)
539 {
541 BC_DTS_STATUS decoder_status = { 0, };
544
548
549 uint8_t bottom_field = (output->PicInfo.flags & VDEC_FLAG_BOTTOMFIELD) ==
550 VDEC_FLAG_BOTTOMFIELD;
551 uint8_t bottom_first = !!(output->PicInfo.flags & VDEC_FLAG_BOTTOM_FIRST);
552
553 int width = output->PicInfo.width;
554 int height = output->PicInfo.height;
555 int bwidth;
557 int sStride;
559 int dStride;
560
561 if (output->PicInfo.timeStamp != 0) {
563 if (node) {
567 } else {
568 /*
569 * We will encounter a situation where a timestamp cannot be
570 * popped if a second field is being returned. In this case,
571 * each field has the same timestamp and the first one will
572 * cause it to be popped. To keep subsequent calculations
573 * simple, pic_type should be set a FIELD value - doesn't
574 * matter which, but I chose BOTTOM.
575 */
577 }
579 output->PicInfo.timeStamp);
581 pic_type);
582 }
583
584 ret = DtsGetDriverStatus(priv->
dev, &decoder_status);
585 if (ret != BC_STS_SUCCESS) {
587 "CrystalHD: GetDriverStatus failed: %u\n", ret);
589 }
590
591 /*
592 * For most content, we can trust the interlaced flag returned
593 * by the hardware, but sometimes we can't. These are the
594 * conditions under which we can trust the flag:
595 *
596 * 1) It's not h.264 content
597 * 2) The UNKNOWN_SRC flag is not set
598 * 3) We know we're expecting a second field
599 * 4) The hardware reports this picture and the next picture
600 * have the same picture number.
601 *
602 * Note that there can still be interlaced content that will
603 * fail this check, if the hardware hasn't decoded the next
604 * picture or if there is a corruption in the stream. (In either
605 * case a 0 will be returned for the next picture number)
606 */
608 !(output->PicInfo.flags & VDEC_FLAG_UNKNOWN_SRC) ||
610 (decoder_status.picNumFlags & ~0x40000000) ==
611 output->PicInfo.picture_number;
612
613 /*
614 * If we got a false negative for trust_interlaced on the first field,
615 * we will realise our mistake here when we see that the picture number is that
616 * of the previous picture. We cannot recover the frame and should discard the
617 * second field to keep the correct number of output frames.
618 */
621 "Incorrectly guessed progressive frame. Discarding second field\n");
622 /* Returning without providing a picture. */
624 }
625
626 interlaced = (output->PicInfo.flags & VDEC_FLAG_INTERLACED_SRC) &&
627 trust_interlaced;
628
629 if (!trust_interlaced && (decoder_status.picNumFlags & ~0x40000000) == 0) {
631 "Next picture number unknown. Assuming progressive frame.\n");
632 }
633
635 interlaced, trust_interlaced);
636
639
641
645 }
646
649 int pStride;
650
651 if (width <= 720)
652 pStride = 720;
653 else if (width <= 1280)
654 pStride = 1280;
655 else pStride = 1920;
657 } else {
658 sStride = bwidth;
659 }
660
663
665
666 if (interlaced) {
667 int dY = 0;
668 int sY = 0;
669
670 height /= 2;
671 if (bottom_field) {
673 dY = 1;
674 } else {
676 dY = 0;
677 }
678
679 for (sY = 0; sY <
height; dY++, sY++) {
680 memcpy(&(dst[dY * dStride]), &(src[sY * sStride]), bwidth);
681 dY++;
682 }
683 } else {
685 }
686
688 if (interlaced)
690
692
694 *got_frame = 1;
697 }
698 }
699
700 /*
701 * Two types of PAFF content have been observed. One form causes the
702 * hardware to return a field pair and the other individual fields,
703 * even though the input is always individual fields. We must skip
704 * copying on the next decode() call to maintain pipeline length in
705 * the first case.
706 */
707 if (!interlaced && (output->PicInfo.flags & VDEC_FLAG_UNKNOWN_SRC) &&
711 }
712
713 /*
714 * The logic here is purely based on empirical testing with samples.
715 * If we need a second field, it could come from a second input packet,
716 * or it could come from the same field-pair input packet at the current
717 * field. In the first case, we should return and wait for the next time
718 * round to get the second field, while in the second case, we should
719 * ask the decoder for it immediately.
720 *
721 * Testing has shown that we are dealing with the fieldpair -> two fields
722 * case if the VDEC_FLAG_UNKNOWN_SRC is not set or if the input picture
723 * type was PICT_FRAME (in this second case, the flag might still be set)
724 */
726 (!(output->PicInfo.flags & VDEC_FLAG_UNKNOWN_SRC) ||
729 }
730
731
733 void *
data,
int *got_frame)
734 {
736 BC_DTS_PROC_OUT output = {
737 .PicInfo.width = avctx->
width,
738 .PicInfo.height = avctx->
height,
739 };
742
743 *got_frame = 0;
744
745 // Request decoded data from the driver
747 if (ret == BC_STS_FMT_CHANGE) {
749 avctx->
width = output.PicInfo.width;
750 avctx->
height = output.PicInfo.height;
751 switch ( output.PicInfo.aspect_ratio ) {
752 case vdecAspectRatioSquare:
754 break;
755 case vdecAspectRatio12_11:
757 break;
758 case vdecAspectRatio10_11:
760 break;
761 case vdecAspectRatio16_11:
763 break;
764 case vdecAspectRatio40_33:
766 break;
767 case vdecAspectRatio24_11:
769 break;
770 case vdecAspectRatio20_11:
772 break;
773 case vdecAspectRatio32_11:
775 break;
776 case vdecAspectRatio80_33:
778 break;
779 case vdecAspectRatio18_11:
781 break;
782 case vdecAspectRatio15_11:
784 break;
785 case vdecAspectRatio64_33:
787 break;
788 case vdecAspectRatio160_99:
790 break;
791 case vdecAspectRatio4_3:
793 break;
794 case vdecAspectRatio16_9:
796 break;
797 case vdecAspectRatio221_1:
799 break;
800 }
802 } else if (ret == BC_STS_SUCCESS) {
803 int copy_ret = -1;
804 if (output.PoutFlags & BC_POUT_FLAGS_PIB_VALID) {
806 /*
807 * Init to one less, so that the incrementing code doesn't
808 * need to be special-cased.
809 */
811 }
812
814 output.PicInfo.timeStamp == 0 && priv->
bframe_bug) {
816 "CrystalHD: Not returning packed frame twice.\n");
818 DtsReleaseOutputBuffs(dev, NULL,
FALSE);
820 }
821
823
824 if (priv->
last_picture + 1 < output.PicInfo.picture_number) {
826 "CrystalHD: Picture Number discontinuity\n");
827 /*
828 * Have we lost frames? If so, we need to shrink the
829 * pipeline length appropriately.
830 *
831 * XXX: I have no idea what the semantics of this situation
832 * are so I don't even know if we've lost frames or which
833 * ones.
834 *
835 * In any case, only warn the first time.
836 */
838 }
839
840 copy_ret =
copy_frame(avctx, &output, data, got_frame);
841 if (*got_frame > 0) {
846 }
847 } else {
848 /*
849 * An invalid frame has been consumed.
850 */
852 "invalid PIB\n");
855 }
856 DtsReleaseOutputBuffs(dev, NULL,
FALSE);
857
858 return copy_ret;
859 } else if (ret == BC_STS_BUSY) {
861 } else {
864 }
865 }
866
867
869 {
871 BC_DTS_STATUS decoder_status = { 0, };
877 int free_data = 0;
879
881
883 /*
884 * The use of a drop frame triggers the bug
885 */
887 "CrystalHD: Enabling work-around for packed b-frame bug\n");
890 /*
891 * Delay frames don't trigger the bug
892 */
894 "CrystalHD: Disabling work-around for packed b-frame bug\n");
896 }
897
898 if (len) {
900
902 int ret = 0;
903
906 &in_data, &len,
907 avpkt->
data, len, 0);
908 }
909 free_data = ret > 0;
910
911 if (ret >= 0) {
913 int psize;
916
918 in_data, len, avctx->
pkt->
pts,
920 if (index < 0) {
922 "CrystalHD: Failed to parse h.264 packet to "
923 "detect interlacing.\n");
924 } else if (index != len) {
926 "CrystalHD: Failed to parse h.264 packet "
927 "completely. Interlaced frames may be "
928 "incorrectly detected.\n");
929 } else {
931 "CrystalHD: parser picture type %d\n",
934 }
935 } else {
937 "CrystalHD: mp4toannexb filter failed to filter "
938 "packet. Interlaced frames may be incorrectly "
939 "detected.\n");
940 }
941 }
942
943 if (len < tx_free - 1024) {
944 /*
945 * Despite being notionally opaque, either libcrystalhd or
946 * the hardware itself will mangle pts values that are too
947 * small or too large. The docs claim it should be in units
948 * of 100ns. Given that we're nominally dealing with a black
949 * box on both sides, any transform we do has no guarantee of
950 * avoiding mangling so we need to build a mapping to values
951 * we know will not be mangled.
952 */
954 if (!pts) {
955 if (free_data) {
957 }
959 }
961 "input \"pts\": %"PRIu64"\n", pts);
962 ret = DtsProcInput(dev, in_data, len, pts, 0);
963 if (free_data) {
965 }
966 if (ret == BC_STS_BUSY) {
968 "CrystalHD: ProcInput returned busy\n");
971 } else if (ret != BC_STS_SUCCESS) {
973 "CrystalHD: ProcInput failed: %u\n", ret);
974 return -1;
975 }
977 } else {
979 len = 0; // We didn't consume any bytes.
980 }
981 } else {
983 }
984
990 }
991
992 ret = DtsGetDriverStatus(dev, &decoder_status);
993 if (ret != BC_STS_SUCCESS) {
995 return -1;
996 }
997
998 /*
999 * No frames ready. Don't try to extract.
1000 *
1001 * Empirical testing shows that ReadyListCount can be a damn lie,
1002 * and ProcOut still fails when count > 0. The same testing showed
1003 * that two more iterations were needed before ProcOutput would
1004 * succeed.
1005 */
1007 if (decoder_status.ReadyListCount != 0)
1012 } else if (decoder_status.ReadyListCount == 0) {
1013 /*
1014 * After the pipeline is established, if we encounter a lack of frames
1015 * that probably means we're not giving the hardware enough time to
1016 * decode them, so start increasing the wait time at the end of a
1017 * decode call.
1018 */
1023 }
1024
1025 do {
1027 if (rec_ret ==
RET_OK && *got_frame == 0) {
1028 /*
1029 * This case is for when the encoded fields are stored
1030 * separately and we get a separate avpkt for each one. To keep
1031 * the pipeline stable, we should return nothing and wait for
1032 * the next time round to grab the second field.
1033 * H.264 PAFF is an example of this.
1034 */
1038 /*
1039 * This case is for when the encoded fields are stored in a
1040 * single avpkt but the hardware returns then separately. Unless
1041 * we grab the second field before returning, we'll slip another
1042 * frame in the pipeline and if that happens a lot, we're sunk.
1043 * So we have to get that second field now.
1044 * Interlaced mpeg2 and vc1 are examples of this.
1045 */
1047 while (1) {
1049 ret = DtsGetDriverStatus(dev, &decoder_status);
1050 if (ret == BC_STS_SUCCESS &&
1051 decoder_status.ReadyListCount > 0) {
1053 if ((rec_ret ==
RET_OK && *got_frame > 0) ||
1055 break;
1056 }
1057 }
1060 /*
1061 * Two input packets got turned into a field pair. Gawd.
1062 */
1064 "Don't output on next decode call.\n");
1066 }
1067 /*
1068 * If rec_ret == RET_COPY_AGAIN, that means that either we just handled
1069 * a FMT_CHANGE event and need to go around again for the actual frame,
1070 * we got a busy status and need to try again, or we're dealing with
1071 * packed b-frames, where the hardware strangely returns the packed
1072 * p-frame twice. We choose to keep the second copy as it carries the
1073 * valid pts.
1074 */
1078 }
1079
1080
1081 #if CONFIG_H264_CRYSTALHD_DECODER
1083 "h264_crystalhd",
1087 };
1088
1089 AVCodec ff_h264_crystalhd_decoder = {
1090 .
name =
"h264_crystalhd",
1099 .long_name =
NULL_IF_CONFIG_SMALL(
"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (CrystalHD acceleration)"),
1102 };
1103 #endif
1104
1105 #if CONFIG_MPEG2_CRYSTALHD_DECODER
1106 static AVClass mpeg2_class = {
1107 "mpeg2_crystalhd",
1111 };
1112
1113 AVCodec ff_mpeg2_crystalhd_decoder = {
1114 .
name =
"mpeg2_crystalhd",
1125 .priv_class = &mpeg2_class,
1126 };
1127 #endif
1128
1129 #if CONFIG_MPEG4_CRYSTALHD_DECODER
1131 "mpeg4_crystalhd",
1135 };
1136
1137 AVCodec ff_mpeg4_crystalhd_decoder = {
1138 .
name =
"mpeg4_crystalhd",
1150 };
1151 #endif
1152
1153 #if CONFIG_MSMPEG4_CRYSTALHD_DECODER
1154 static AVClass msmpeg4_class = {
1155 "msmpeg4_crystalhd",
1159 };
1160
1161 AVCodec ff_msmpeg4_crystalhd_decoder = {
1162 .
name =
"msmpeg4_crystalhd",
1171 .long_name =
NULL_IF_CONFIG_SMALL(
"MPEG-4 Part 2 Microsoft variant version 3 (CrystalHD acceleration)"),
1173 .priv_class = &msmpeg4_class,
1174 };
1175 #endif
1176
1177 #if CONFIG_VC1_CRYSTALHD_DECODER
1179 "vc1_crystalhd",
1183 };
1184
1185 AVCodec ff_vc1_crystalhd_decoder = {
1186 .
name =
"vc1_crystalhd",
1197 .priv_class = &vc1_class,
1198 };
1199 #endif
1200
1201 #if CONFIG_WMV3_CRYSTALHD_DECODER
1203 "wmv3_crystalhd",
1207 };
1208
1209 AVCodec ff_wmv3_crystalhd_decoder = {
1210 .
name =
"wmv3_crystalhd",
1221 .priv_class = &wmv3_class,
1222 };
1223 #endif