| 50 | : decoder_ (NULL), decodeStatus_ (OpenFile) {} |
| 51 | |
| 52 | int32_t BaseDecoderTest::SetUp() { |
| 53 | long rv = WelsCreateDecoder (&decoder_); |
| 54 | EXPECT_EQ (0, rv); |
| 55 | EXPECT_TRUE (decoder_ != NULL); |
| 56 | if (decoder_ == NULL) { |
| 57 | return rv; |
| 58 | } |
| 59 | |
| 60 | SDecodingParam decParam; |
| 61 | memset (&decParam, 0, sizeof (SDecodingParam)); |
| 62 | decParam.uiTargetDqLayer = UCHAR_MAX; |
| 63 | decParam.eEcActiveIdc = ERROR_CON_SLICE_COPY; |
| 64 | decParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT; |
| 65 | |
| 66 | rv = decoder_->Initialize (&decParam); |
| 67 | EXPECT_EQ (0, rv); |
| 68 | return (int32_t)rv; |
| 69 | } |
| 70 | |
| 71 | void BaseDecoderTest::TearDown() { |
| 72 | if (decoder_ != NULL) { |
nothing calls this directly
no test coverage detected