/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/hevcswdecoder/src/ |
H A D | videodec_api11_sample.cpp | 115 int32_t sliceHeight = 0; in VdecAPI11FormatChanged() local 121 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in VdecAPI11FormatChanged() 127 dec_sample->sliceHeight_ = sliceHeight; in VdecAPI11FormatChanged() 139 if (stride <= 0 || sliceHeight <= 0) { in VdecAPI11FormatChanged() 761 int32_t sliceHeight = 0; in CheckOutputDescription() local 769 OH_AVFormat_GetIntValue(newFormat, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in CheckOutputDescription() 776 if (stride <= 0 || sliceHeight <= 0) { in CheckOutputDescription() 778 std::cout << "stride:" << stride << " sliceHeight:" << sliceHeight << std::endl; in CheckOutputDescription() 843 int32_t sliceHeight = 0; in GetStride() local 849 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in GetStride() [all …]
|
H A D | videodec_ndk_sample.cpp | 110 int32_t sliceHeight = 0; in VdecFormatChanged() local 116 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in VdecFormatChanged() 122 dec_sample->sliceHeight_ = sliceHeight; in VdecFormatChanged() 135 if (stride <= 0 || sliceHeight <= 0) { in VdecFormatChanged()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/ |
H A D | videodec_api11_sample.cpp | 121 int32_t sliceHeight = 0; in VdecAPI11FormatChanged() local 127 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in VdecAPI11FormatChanged() 133 dec_sample->sliceHeight_ = sliceHeight; in VdecAPI11FormatChanged() 145 if (stride <= 0 || sliceHeight <= 0) { in VdecAPI11FormatChanged() 749 int32_t sliceHeight = 0; in CheckOutputDescription() local 757 OH_AVFormat_GetIntValue(newFormat, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in CheckOutputDescription() 764 if (cropRight != expectCropRight || stride <= 0 || sliceHeight <= 0) { in CheckOutputDescription() 766 std::cout << "stride:" << stride << " sliceHeight:" << sliceHeight << std::endl; in CheckOutputDescription() 830 int32_t sliceHeight = 0; in GetStride() local 836 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in GetStride() [all …]
|
H A D | videodec_ndk_sample.cpp | 113 int32_t sliceHeight = 0; in VdecFormatChanged() local 117 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in VdecFormatChanged() 121 if (stride <= 0 || sliceHeight <= 0) { in VdecFormatChanged() 626 int32_t sliceHeight = 0; in CheckOutputDescription() local 634 OH_AVFormat_GetIntValue(newFormat, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in CheckOutputDescription() 641 if (cropRight != expectCropRight || stride <= 0 || sliceHeight <= 0) { in CheckOutputDescription() 643 std::cout << "stride:" << stride << " sliceHeight:" << sliceHeight << std::endl; in CheckOutputDescription()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/ |
H A D | videodec_api11_sample.cpp | 111 int32_t sliceHeight = 0; in VdecAPI11FormatChanged() local 115 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in VdecAPI11FormatChanged() 119 if (stride <= 0 || sliceHeight <= 0) { in VdecAPI11FormatChanged() 626 int32_t sliceHeight = 0; in CheckOutputDescription() local 634 OH_AVFormat_GetIntValue(newFormat, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &sliceHeight); in CheckOutputDescription() 641 if (cropRight != expectCropRight || stride <= 0 || sliceHeight <= 0) { in CheckOutputDescription() 643 std::cout << "stride:" << stride << " sliceHeight:" << sliceHeight << std::endl; in CheckOutputDescription()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/ |
H A D | image_decoder.cpp | 328 int32_t sliceHeight = static_cast<int32_t>(def.format.video.nSliceHeight); in UpdateFormatFromSurfaceBuffer() local 329 if (ret == IC_ERR_OK && sliceHeight >= surfaceBuffer->GetHeight()) { in UpdateFormatFromSurfaceBuffer() 330 outputFormat_->SetValue(ImageCodecDescriptionKey::HEIGHT, sliceHeight); in UpdateFormatFromSurfaceBuffer()
|
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | hdecoder.cpp | 601 …int32_t sliceHeight = static_cast<int32_t>(static_cast<int64_t>(planes->planes[1].offset) / stride… in UpdateFormatFromSurfaceBuffer() local 602 …LOGI("[%dx%d][%dx%d]", surfaceBuffer->GetWidth(), surfaceBuffer->GetHeight(), stride, sliceHeight); in UpdateFormatFromSurfaceBuffer() 603 outputFormat_->PutIntValue(OHOS::Media::Tag::VIDEO_SLICE_HEIGHT, sliceHeight); in UpdateFormatFromSurfaceBuffer() 604 outputFormat_->PutIntValue(MediaDescriptionKey::MD_KEY_HEIGHT, sliceHeight); in UpdateFormatFromSurfaceBuffer()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/ |
H A D | videodec_hdrvivid2sdr_unit_test.cpp | 200 int32_t sliceHeight = 0; in CheckFormatKey() local 208 EXPECT_TRUE(format->GetIntValue(Media::Tag::VIDEO_SLICE_HEIGHT, sliceHeight)); in CheckFormatKey() 216 EXPECT_GE(sliceHeight, originalVideoHeight); in CheckFormatKey()
|
/ohos5.0/foundation/multimedia/av_codec/services/services/codec/server/ |
H A D | codec_server.cpp | 1450 int32_t sliceHeight = 0; in PostProcessingOnOutputFormatChanged() local 1451 if (format.GetIntValue(Media::Tag::VIDEO_SLICE_HEIGHT, sliceHeight)) { in PostProcessingOnOutputFormatChanged() 1452 outputFormatChanged_.PutIntValue(Media::Tag::VIDEO_SLICE_HEIGHT, sliceHeight); in PostProcessingOnOutputFormatChanged()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-avcodec-kit/ |
H A D | _codec_base.md | 2661 高跨距是指从Y平面顶部到U平面顶部必须偏移的行数。本质上,U平面的偏移量是sliceHeight \* stride。
|
/ohos5.0/docs/en/application-dev/reference/apis-avcodec-kit/ |
H A D | _codec_base.md | 2924 …Y plane to the top of the U plane. Essentially, the offset of the U plane is sliceHeight \* stride.
|